[maemo-commits] [maemo-commits] r13152 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Aug 13 14:54:16 EEST 2007
Author: xan
Date: 2007-08-13 14:54:14 +0300 (Mon, 13 Aug 2007)
New Revision: 13152

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtkmain.c
Log:
2007-08-13  Xan Lopez  <xan.lopez at nokia.com>

	* gtk/gtkmain.c (gtk_main_do_event): also send the insensitive-press signal
	if we are the grab widget.


Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2007-08-13 11:52:36 UTC (rev 13151)
+++ projects/haf/trunk/gtk+/ChangeLog	2007-08-13 11:54:14 UTC (rev 13152)
@@ -1,3 +1,8 @@
+2007-08-13  Xan Lopez  <xan.lopez at nokia.com>
+
+	* gtk/gtkmain.c (gtk_main_do_event): also send the insensitive-press signal
+	if we are the grab widget.
+
 2007-08-09  Xan Lopez  <xan.lopez at nokia.com>
 
 	* gtk/gtkwindow.c (gtk_window_map): do not close all other temporary windows

Modified: projects/haf/trunk/gtk+/gtk/gtkmain.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtkmain.c	2007-08-13 11:52:36 UTC (rev 13151)
+++ projects/haf/trunk/gtk+/gtk/gtkmain.c	2007-08-13 11:54:14 UTC (rev 13152)
@@ -1556,7 +1556,7 @@
     case GDK_BUTTON_PRESS:
 #ifdef MAEMO_CHANGES
       if (!GTK_WIDGET_IS_SENSITIVE (event_widget) &&
-          gtk_widget_is_ancestor (event_widget, grab_widget))
+          (event_widget == grab_widget || gtk_widget_is_ancestor (event_widget, grab_widget)))
         gtk_widget_insensitive_press (event_widget);
       /* fall through */
 #endif /* MAEMO_CHANGES */


More information about the maemo-commits mailing list