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>
This commit is contained in:
Benjamin 2013-08-05 14:35:36 +02:00 committed by Dirk Hohndel
parent e5b18db802
commit aa5365eb3f
2 changed files with 2 additions and 1 deletions

View file

@ -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"

2
gps.c
View file

@ -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);
}
}