[gtk+/gtk-3-0] button: Fix typo in keyboard grab's evmask



commit 636cdd2b0225d348b3e0d054d87c9ccb69291caf
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 17 13:12:26 2011 +0200

    button: Fix typo in keyboard grab's evmask
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650382, spotted
    by Alexander Larsson.

 gtk/gtkbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index ba121b5..9c5e7ab 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1871,7 +1871,7 @@ gtk_real_button_activate (GtkButton *button)
 	{
 	  if (gdk_device_grab (device, priv->event_window,
 			       GDK_OWNERSHIP_WINDOW, TRUE,
-			       GDK_KEY_PRESS | GDK_KEY_RELEASE,
+			       GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK,
 			       NULL, time) == GDK_GRAB_SUCCESS)
 	    {
 	      gtk_device_grab_add (widget, device, TRUE);



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