git-svn-id: file:///svnroot/speedometer/trunk@44 df364472-da61-43ef-8a67-511c89aa921b
[speedometer] / callbacks.h
1 /****
2         Speedometer, shows your current speed using GPS
3         Copyright (C) 2008 Wellu Mäkinen <wellu@wellu.org>
4
5         This program is free software: you can redistribute it and/or modify
6         it under the terms of the GNU General Public License as published by
7         the Free Software Foundation, either version 3 of the License, or
8         (at your option) any later version.
9
10         This program is distributed in the hope that it will be useful,
11         but WITHOUT ANY WARRANTY; without even the implied warranty of
12         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13         GNU General Public License for more details.
14
15         You should have received a copy of the GNU General Public License
16         along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 ****/
18
19 #ifndef CALLBACKS_H_
20 #define CALLBACKS_H_
21
22 #include <hildon/hildon-window.h>
23 #include <location/location-gps-device.h>
24 #include <gtk/gtk.h>
25
26 // called by GPSD whenever location changes
27 void location_changed(LocationGPSDevice* device, gpointer data);
28
29 // for hardware keys
30 gboolean key_press_cb(GtkWidget* widget, GdkEventKey* event, HildonWindow* window);
31
32 // middle event box
33 gboolean middle_event_box_button_press(GtkWidget* widget, GdkEventButton* event, gpointer data);
34
35 // top event box
36 gboolean top_event_box_button_press(GtkWidget* widget, GdkEventButton* event, gpointer data);
37
38 // bottom event box
39 gboolean bottom_event_box_button_press(GtkWidget* widget, GdkEventButton* event, gpointer data);
40
41 #endif /* CALLBACKS_H_ */