Re: size of table cells



Ignacio Nodal <inodal teleline es> writes: 
> table = gtk_table_new (10, 1, FALSE);
> gtk_table_attach_defaults(GTK_TABLE(table), widget, 0,1, 0,1);
> gtk_table_attach_defaults(GTK_TABLE(table), separator, 0,1, 1,2);
> 
> gtk_table_attach_defaults(GTK_TABLE(table), widget2, 0,1, 2,3);
> gtk_table_attach_defaults(GTK_TABLE(table), separator2, 0,1, 3,4);
... 
> 
> But so, all widgets have the same "height", what am I doing wrong?
> 

Don't use attach_defaults(), use plain attach(). attach_defaults() 
will set your separators to GTK_EXPAND | GTK_FILL so they'll get too
much space.

Havoc




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