diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-20 07:41:04 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-20 07:41:04 +0100 |
commit | 5b16953a2f6d7fbd6e0c62b8bb793afae0f59de2 (patch) | |
tree | eaf57ad6c30da8125bf808017506f8457065d873 /liblogdiag | |
parent | adead30747b398ea52abe6286c12164870816f2e (diff) | |
download | logdiag-5b16953a2f6d7fbd6e0c62b8bb793afae0f59de2.tar.gz logdiag-5b16953a2f6d7fbd6e0c62b8bb793afae0f59de2.tar.xz logdiag-5b16953a2f6d7fbd6e0c62b8bb793afae0f59de2.zip |
Fix drag and drop
GTK+ 3 started sending leave notifications upon starting a DND operation.
Diffstat (limited to 'liblogdiag')
-rw-r--r-- | liblogdiag/ld-category-symbol-view.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/liblogdiag/ld-category-symbol-view.c b/liblogdiag/ld-category-symbol-view.c index 4b19ca0..84f9c22 100644 --- a/liblogdiag/ld-category-symbol-view.c +++ b/liblogdiag/ld-category-symbol-view.c @@ -425,7 +425,15 @@ on_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) static gboolean on_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) { - symbol_deselect (LD_CATEGORY_SYMBOL_VIEW (widget)); + switch (event->mode) + { + case GDK_CROSSING_GRAB: + case GDK_CROSSING_GTK_GRAB: + case GDK_CROSSING_STATE_CHANGED: + break; + default: + symbol_deselect (LD_CATEGORY_SYMBOL_VIEW (widget)); + } return FALSE; } |