tiny messagebox patch




Hi,

gnome_message_box_new() causes a warning:
** WARNING **: Creating pixmap from xpm with NULL window and colormap

So I added gtk_widget_realize() before creating the pixmaps.  Don't
know if it's a good solution, but the warning goes away. One-line
patch appended. 

I sent a different patch this afternoon, if it doesn't show up soon I
will re-send it. It moved the bulk of gnome_property_box_new() to
gnome_property_box_init(), to allow subclassing.

Some progress on my "menu builder" thing, it can now parse in,
display, and write out icewm menu config files. Unfortunately they
can't be edited. :) 

Havoc Pennington
http://pobox.com/~hp

Index: gnome-libs/libgnomeui/gnome-messagebox.c
===================================================================
RCS file: /debian/home/gnomecvs/gnome-libs/libgnomeui/gnome-messagebox.c,v
retrieving revision 1.9
diff -u -r1.9 gnome-messagebox.c
--- gnome-messagebox.c	1998/03/21 22:21:29	1.9
+++ gnome-messagebox.c	1998/03/24 08:20:58
@@ -162,6 +162,8 @@
 	gtk_container_border_width (GTK_CONTAINER (message_box), 
 				    GNOME_MESSAGE_BOX_BORDER_WIDTH);
 
+	gtk_widget_realize(GTK_WIDGET(message_box));
+
 	style = gtk_widget_get_style (GTK_WIDGET (message_box));
 
 	if (strcmp(GNOME_MESSAGE_BOX_INFO, message_box_type) == 0)




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