[gtk+] Make GtkSeparatorToolItem work for window-dragging again



commit d308f39268527154eeaf582c6b3665ea3d6cfa3a
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 17 23:55:53 2014 -0500

    Make GtkSeparatorToolItem work for window-dragging again
    
    This broke recently when the window dragging code was changed
    to require motion events to be propagated as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724539

 gtk/gtkseparatortoolitem.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkseparatortoolitem.c b/gtk/gtkseparatortoolitem.c
index 8921fb9..0d9ed77 100644
--- a/gtk/gtkseparatortoolitem.c
+++ b/gtk/gtkseparatortoolitem.c
@@ -130,6 +130,7 @@ gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class)
   widget_class->unmap = gtk_separator_tool_item_unmap;
   widget_class->button_press_event = gtk_separator_tool_item_button_event;
   widget_class->button_release_event = gtk_separator_tool_item_button_event;
+  widget_class->motion_notify_event = gtk_separator_tool_item_button_event;
 
   toolitem_class->create_menu_proxy = gtk_separator_tool_item_create_menu_proxy;
   
@@ -290,7 +291,8 @@ gtk_separator_tool_item_realize (GtkWidget *widget)
   attributes.visual = gtk_widget_get_visual (widget);
   attributes.event_mask = gtk_widget_get_events (widget) |
                           GDK_BUTTON_PRESS_MASK |
-                          GDK_BUTTON_RELEASE_MASK;
+                          GDK_BUTTON_RELEASE_MASK |
+                          GDK_POINTER_MOTION_MASK;
   attributes_mask = GDK_WA_X | GDK_WA_Y;
 
   window = gtk_widget_get_parent_window (widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]