From aa5365eb3fc49e6b7ffa2897b7bbd801b173b26b Mon Sep 17 00:00:00 2001 From: Benjamin <nystire@gmail.com> Date: Mon, 5 Aug 2013 14:35:36 +0200 Subject: [PATCH] Clean up code to remove false messages about errors in Eclipse Imported the subsurface project into Eclipse to try and pull apart how it all works together. Added an include for profile.h and some brackets around a condition, but didn't make any functional changes (I hope). These 2 changes should be purely cosmetic. Signed-off-by: Benjamin Fogel <benjaminfogel@yahoo.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org> --- divelist-gtk.c | 1 + gps.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/divelist-gtk.c b/divelist-gtk.c index 79613e012..49f4b143c 100644 --- a/divelist-gtk.c +++ b/divelist-gtk.c @@ -34,6 +34,7 @@ #include "display.h" #include "display-gtk.h" #include "webservice.h" +#include "profile.h" #include <gdk-pixbuf/gdk-pixdata.h> #include "satellite.h" diff --git a/gps.c b/gps.c index a3806dee8..6f62b624e 100644 --- a/gps.c +++ b/gps.c @@ -147,7 +147,7 @@ static void add_gps_point(OsmGpsMap *map, float latitude, float longitude) static void key_press_event(GtkWidget *window, GdkEventKey *event, gpointer data) { if ((event->string != NULL && event->keyval == GDK_Escape) || - (event->string != NULL && event->keyval == GDK_w && event->state & GDK_CONTROL_MASK)) { + (event->string != NULL && event->keyval == GDK_w && (event->state & GDK_CONTROL_MASK))) { gtk_widget_destroy(window); } }