]> err.no Git - mapper/commitdiff
Map widget:
authorKaj-Michael Lang <milang@tal.org>
Wed, 7 May 2008 21:35:12 +0000 (00:35 +0300)
committerKaj-Michael Lang <milang@tal.org>
Wed, 7 May 2008 21:35:12 +0000 (00:35 +0300)
- Connection motion_notify signal

src/gtkmap.c

index f182151a85cfa8cdee207c8589047d1d1401f898..8316aa37d663e26daa1990a5076a396f6d394efb 100644 (file)
@@ -257,6 +257,8 @@ static void gtk_map_get_property(GObject *object, guint prop_id, GValue *value,
 static gboolean gtk_map_button_press_cb(GtkWidget *widget, GdkEventButton *event);
 static gboolean gtk_map_button_release_cb(GtkWidget *widget, GdkEventButton *event);
 static gboolean gtk_map_scroll_event_cb(GtkWidget *widget, GdkEventScroll *event); 
+static gboolean gtk_map_motion_notify_cb(GtkWidget *widget, GdkEventMotion *event, gpointer data);
+
 
 /* Signal IDs */
 enum {
@@ -669,6 +671,7 @@ pango_layout_set_alignment(priv->speed_layout, PANGO_ALIGN_LEFT);
 g_signal_connect(G_OBJECT(map), "button_press_event", G_CALLBACK(gtk_map_button_press_cb), NULL);
 g_signal_connect(G_OBJECT(map), "button_release_event",G_CALLBACK(gtk_map_button_release_cb), NULL);
 g_signal_connect(G_OBJECT(map), "scroll_event",  G_CALLBACK(gtk_map_scroll_event_cb), NULL);
+g_signal_connect(G_OBJECT(map), "motion_notify_event", G_CALLBACK(gtk_map_motion_notify_cb), NULL);
 
 gtk_widget_queue_resize(widget);
 }
@@ -1570,6 +1573,13 @@ if (priv->zoom_to_mouse)
 return FALSE;
 }
 
+static gboolean 
+gtk_map_motion_notify_cb(GtkWidget *widget, GdkEventMotion *event, gpointer data)
+{
+
+return FALSE;
+}
+
 static gboolean
 gtk_map_button_press_cb(GtkWidget *widget, GdkEventButton *event)
 {