#55310: patch



Hi,

The appended patch fixes #55310 (testgtk->itemfactory, <Alt>F, CursorRight
produces warnings).

Ok to commit?

regards,


	Kris



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.2284
diff -u -r1.2284 ChangeLog
--- ChangeLog	2001/09/13 10:00:04	1.2284
+++ ChangeLog	2001/09/18 18:46:04
@@ -1,3 +1,8 @@
+2001-09-18  Kristian Rietveld  <kristian planet nl>
+
+	* gtk/gtkmenu.c (gtk_menu_select_item): make sure the menu widget
+	has been realized. Fixes #55310
+
 2001-09-13  Jakub Steiner <jimmac ximian com>

 	* gtk/stock-icons/dialog_question.png:
Index: gtk/gtkmenu.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkmenu.c,v
retrieving revision 1.72
diff -u -r1.72 gtkmenu.c
--- gtk/gtkmenu.c	2001/08/25 03:15:26	1.72
+++ gtk/gtkmenu.c	2001/09/18 18:46:07
@@ -2204,7 +2204,6 @@
 	y += MENU_SCROLL_ARROW_HEIGHT;
     }

-
   gdk_window_move_resize (menu->view_window,
 			  x,
 			  y,
@@ -2259,6 +2258,10 @@
 	  break;
 	}
     }
+
+  /* make sure the menu widget has been realized */
+  if (!GTK_WIDGET_REALIZED (GTK_WIDGET (menu)))
+    gtk_widget_realize (GTK_WIDGET (menu));

   if (child == menu_item)
     {



-- 
Odi et amo. Quare id faciam, fortasse requiris?
	Nescio, sed fieri sentio et excrucior.

-Catullus (Carmen 85)





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