spacing issues with GtkTable in gtk3
Bug #825173 reported by
Michael Vogt
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+3.0 (Ubuntu) |
Confirmed
|
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.
To post a comment you must log in.
interesting discussion on the topic:
"<cosimoc> Company, I seem to have found a weird size request bug between GtkLabel and GtkTable get_preferred_ size() on a label for-min- width
<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_
<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-
<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"