From e7b837207d14cc2a6db8d1ca0722e33b9acc201f Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 8 May 2008 00:35:12 +0300 Subject: [PATCH] Map widget: - Connection motion_notify signal --- src/gtkmap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gtkmap.c b/src/gtkmap.c index f182151..8316aa3 100644 --- a/src/gtkmap.c +++ b/src/gtkmap.c @@ -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) { -- 2.39.5