diff options
author | 2010-11-06 20:00:29 +0100 | |
---|---|---|
committer | 2010-11-06 20:00:29 +0100 | |
commit | 5799d3e36063b44c4b2cc81cb42d75f408907652 (patch) | |
tree | 72fdc64c7245980fded966dd7f141952ab0c3d3a /plugins | |
parent | 43227fce2de862de4e57e04bb0df3744fb0c7aac (diff) |
added support for gtk <2.12
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/ddblistview.c | 4 | ||||
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index 89a27cff..8fce3463 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -2268,7 +2268,9 @@ ddb_listview_header_motion_notify_event (GtkWidget *widget, ev_x = event->x; ev_y = event->y; ev_state = event->state; +#if GTK_CHECK_VERSION(2,12,0) && !defined(ULTRA_COMPATIBLE) gdk_event_request_motions (event); +#endif if ((ev_state & GDK_BUTTON1_MASK) && ps->header_prepare) { if (gtk_drag_check_threshold (widget, ev_x, ps->prev_header_x, 0, 0)) { @@ -2630,7 +2632,9 @@ ddb_listview_motion_notify_event (GtkWidget *widget, { int x = event->x; int y = event->y; +#if GTK_CHECK_VERSION(2,12,0) && !defined(ULTRA_COMPATIBLE) gdk_event_request_motions (event); +#endif DdbListview *ps = DDB_LISTVIEW (g_object_get_data (G_OBJECT (widget), "owner")); ddb_listview_list_mousemove (ps, event, x, y); return FALSE; diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c index ea7905c7..90f440dd 100644 --- a/plugins/gtkui/ddbtabstrip.c +++ b/plugins/gtkui/ddbtabstrip.c @@ -879,7 +879,9 @@ on_tabstrip_motion_notify_event (GtkWidget *widget, ev_x = event->x; ev_y = event->y; ev_state = event->state; +#if GTK_CHECK_VERSION(2,12,0) && !defined(ULTRA_COMPATIBLE) gdk_event_request_motions (event); +#endif if ((ev_state & GDK_BUTTON1_MASK) && ts->prepare) { if (gtk_drag_check_threshold (widget, ev_x, ts->prev_x, 0, 0)) { ts->prepare = 0; |