Re: gtk cvs severely broken



On Fri, 30 Mar 2001, Alexander Larsson wrote:

> The current Gtk+ cvs version is severely broken. In many tests in testgtk
> (such as clist, ctree, cursor, color selector etc) some widgets appear at
> the upper left corner of the window instead of their normal places.
> 
> I guess this is due to the aux info change.

The following patch fixes the problem (fixes use of -1 in
gtk_widget_size_allocate):

Index: gtkwidget.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkwidget.c,v
retrieving revision 1.201
diff -u -r1.201 gtkwidget.c
--- gtkwidget.c 2001/03/29 23:02:26     1.201
+++ gtkwidget.c 2001/03/30 14:19:47
@@ -2024,9 +2024,9 @@
   
   if (aux_info)
     {
-      if (aux_info->x != -1)
+      if (aux_info->x_set)
        real_allocation.x = aux_info->x;
-      if (aux_info->y != -1)
+      if (aux_info->y_set)
        real_allocation.y = aux_info->y;
     }
 

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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