[gtk+/xi2] GtkHandleBox: Use GTK+ device grabs.



commit 2a180ae2d2a0e0209fa330ec6b853ee1210d1d5f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 9 18:23:50 2010 +0100

    GtkHandleBox: Use GTK+ device grabs.

 gtk/gtkhandlebox.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index ba1df53..140f0f1 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -1133,7 +1133,7 @@ gtk_handle_box_button_press (GtkWidget      *widget,
 		}
 	      else
 		{
-		  gtk_grab_add (invisible);
+                  gtk_device_grab_add (invisible, private->grab_device, TRUE);
 		  g_signal_connect (invisible, "event",
 				    G_CALLBACK (gtk_handle_box_grab_event), hb);
 		}
@@ -1428,7 +1428,7 @@ gtk_handle_box_end_drag (GtkHandleBox *hb,
 
   hb->in_drag = FALSE;
 
-  gtk_grab_remove (invisible);
+  gtk_device_grab_remove (invisible, private->grab_device);
   gdk_device_ungrab (private->grab_device, time);
   g_signal_handlers_disconnect_by_func (invisible,
 					G_CALLBACK (gtk_handle_box_grab_event),



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