spacing issues with GtkTable in gtk3

Bug #825173 reported by Michael Vogt on 2011-08-12
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gtk+3.0 (Ubuntu)
Low
Unassigned

Bug Description

I have some code that I ported from gtk2 to gtk3 (pygtk -> GIR).

The attached example shows that the spacing with gtk3 is too big for GtkTables. To test run
 python lala_gtk3.py
and look at the dialog.

Then run
 python lala_gtk2.py
for the previous spacing.

Michael Vogt (mvo) wrote :
Sebastien Bacher (seb128) wrote :

interesting discussion on the topic:

"<cosimoc> Company, I seem to have found a weird size request bug between GtkLabel and GtkTable
<cosimoc> Company, apparently if wrap is set on the label, GtkTable always uses its minimum size or something
<Company> so GtkTable doesn't do width-for-height?
<Company> that's a symptom of using gtk_widget_get_preferred_size() on a label
<cosimoc> avoiding setting wrap "fixes" that
<Company> i suppose nobody ever fixed GtkTable
<Company> quickfix: use GtkGrid instead
<cosimoc> I was hoping for quickfix: Company knows the problem and fixes GtkTable! :P
<Company> indeed, GtkTable fucks everything up
<Company> it uses get_preferred_size exclusively
<Company> which mins it uses min-width x min-height-for-min-width
<Company> which for wrapping labels is one word per line
<Company> i'm not gonna fix it in any way apart from deprecating GtkTable
<Company> mclasen_: opinion on deprecating GtkTable for 3.2?
<mclasen_> the fix for gtktable is gtkgrid, as far as I'm concerned"

Changed in gtk+3.0 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers