[Glade-devel] [Glade3] Problems with GtkTable

Shane Butler shane_b@users.sourceforge.net
Tue, 24 Aug 2004 09:58:28 +1000


BTW Mickael, have you checked to see what glade2 is doing to make tables
smaller? If there is a "work around" or a better way to do it glade2
might have already figured it out...
Regards, Shane

On Tue, 2004-08-24 at 00:45, Cornet Mickael wrote:
> Thanks Shane.
> 
> I test gtk_table_resize() on line 469 and it
> effectively set the good value.
> 
> I noticed that we can increase number of rows and
> columns (4,5,....) the table is redrawn with correct
> rows and columns but if we decrease it, the display
> stay at the max value, very strange...
> 
> Glade crashes when number of column is 1.
> 
> I continue to debugging
> 
> Mickael
>  
> --- Shane Butler <shane_b@users.sourceforge.net> a
> écrit : 
> > > Hi Mickael,
> > > 
> > > To me it seems gtk_table_resize() on line 469
> > seems to get the right
> > > values but not actually resize the table!?!
> > > 
> > > Oh and BTW the values of Min in
> > widgets/gtktable.xml should be 1 not
> > > 0...
> > > 
> > > Hope this helps!?
> > > - Shane
> > > 
> > > On Mon, 2004-08-23 at 18:13, Cornet Mickael wrote:
> > > > Hello,
> > > > 
> > > > I have some problems with Glade3 when I use
> > GtkTable.
> > > > The default size is 3x3 (rows x columns) but if
> > I set
> > > > a 1x3 it draws a 3x3. if a set a number of row
> > or
> > > > column >= 3 there is not problems, but when I
> > set rows
> > > > <3, the table keep old size of 3x3 and when I
> > set <3
> > > > columns, Glade 3 crash.
> > > > 
> > > > I begin to debug it, but I am not familiar with
> > Glade
> > > > code. When it crash for column < 3, I crash in
> > this
> > > > function: 
> > > > 
> > > > file: glade-gtk.c
> > > > 
> > > > 405	void GLADEGTK_API
> > > > 406	glade_gtk_table_set_n_common (GObject
> > *object,   
> > > > GValue *value, gboolean for_rows)
> > > > 
> > > > at the line 455
> > > > 
> > > > 453 /* We need to completely remove it */
> > > > 454 if (start >= new_size) {
> > > > 455   gtk_container_remove (GTK_CONTAINER
> > (table),
> > > > 456     child->widget);
> > > > 457    continue;
> > > > 458 }
> > > > 
> > > > child = 0x0;
> > > > 
> > > > I'll try to solve it but if someboby can help me
> > (I'm
> > > > not a glade expert ;o) )
> > > > 
> > > > Thanks.
> > > > 
> > > > Mickael
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 	
> > > > 
> > > > 	
> > > > 		
> > > > Vous manquez despace pour stocker vos mails ? 
> > > > Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
> > > > Créez votre Yahoo! Mail sur
> > http://fr.benefits.yahoo.com/
> > > > 
> > > > Le nouveau Yahoo! Messenger est arrivé !
> > Découvrez toutes les nouveautés pour dialoguer
> > instantanément avec vos amis. A télécharger
> > gratuitement sur http://fr.messenger.yahoo.com
> > > > _______________________________________________
> > > > Glade-devel maillist  - 
> > Glade-devel@lists.ximian.com
> > > >
> > http://lists.ximian.com/mailman/listinfo/glade-devel
> > 
> > _______________________________________________
> > Glade-devel maillist  - 
> > Glade-devel@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/glade-devel
> >  
> 
> 
> 	
> 
> 	
> 		
> Vous manquez despace pour stocker vos mails ? 
> Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
> Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
> 
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com
> _______________________________________________
> Glade-devel maillist  -  Glade-devel@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-devel