[Patch] Fix for bug 134134



Hi,

I just followed the guidelines at
http://developer.gnome.org/doc/guides/programming-guidelines/robust.html
and applied for the code in gnome-panel and fixed the issue.

Please review and comment if any issues.

Thanks
Srini.
Index: panel.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel.c,v
retrieving revision 1.534
diff -u -r1.534 panel.c
--- panel.c	27 Jan 2004 16:17:49 -0000	1.534
+++ panel.c	13 Feb 2004 09:07:00 -0000
@@ -377,7 +377,7 @@
 	 * activating the key bindings here.
 	 */ 
 	if (GTK_IS_SOCKET (GTK_WINDOW (widget)->focus_widget) &&
-	    event->keyval == GDK_F10 && event->state == GDK_CONTROL_MASK)
+	    event->keyval == GDK_F10 && ((event->state & GDK_CONTROL_MASK) == GDK_CONTROL_MASK))
 		return gtk_bindings_activate (GTK_OBJECT (widget),
 					      event->keyval,
 					      event->state);


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