Re: tooltips problem in GTK+ 1.2.5




Damon Chaplin <damon@karuna.freeserve.co.uk> writes:

> I keep getting this warning when tooltips pop up, in GTK+ 1.2.5:
> 
> Gtk-CRITICAL **: file gtkcontainer.c: line 739 (gtk_container_dequeue_resize_handler): assertion `GTK_CONTAINER_RESIZE_PENDING (container)' failed.

Somebody pointed this out to me yesterday. The following patch
fixes it; I haven't applied it to CVS yet, due to hardware
upgrade instability.

We'll probably have to do a 1.2.5.1 or so for this. (But I think
worth waiting a bit longer to see what else critical pops up)

Regards,
                                        Owen 

--- gtk+-1.2.5/gtk/gtkcontainer.c.resizewarn	Sat Sep 25 17:43:51 1999
+++ gtk+-1.2.5/gtk/gtkcontainer.c	Sat Sep 25 17:43:58 1999
@@ -875,7 +875,8 @@
   
   if (resize_container)
     {
-      if (GTK_WIDGET_DRAWABLE (resize_container))
+      if (GTK_WIDGET_VISIBLE (resize_container) &&
+	  (GTK_WIDGET_TOPLEVEL (resize_container) || GTK_WIDGET_DRAWABLE (resize_container)))
 	{
 	  switch (resize_container->resize_mode)
 	    {



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