Bug #54585



Hi,

the following patch fixes bug #544585 for me. I don't know
if it is the appropriate fix, though. 

And I seems I'm not allowed to put the it in bugzilla, thus I'm posting it 
here.

Matthias


Index: gtk/gtkoptionmenu.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkoptionmenu.c,v
retrieving revision 1.45
diff -u -r1.45 gtkoptionmenu.c
--- gtk/gtkoptionmenu.c	2001/05/01 01:36:33	1.45
+++ gtk/gtkoptionmenu.c	2001/05/29 19:52:16
@@ -405,10 +405,11 @@
   gtk_option_menu_get_props (GTK_OPTION_MENU (widget), &props);
 
   widget->allocation = *allocation;
-  if (GTK_WIDGET_REALIZED (widget))
-    gdk_window_move_resize (widget->window,
-			    allocation->x, allocation->y,
-			    allocation->width, allocation->height);
+
+  gtk_widget_realize (widget);
+  gdk_window_move_resize (widget->window,
+			  allocation->x, allocation->y,
+			  allocation->width, allocation->height);
 
   child = GTK_BIN (widget)->child;
   if (child && GTK_WIDGET_VISIBLE (child))




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