← Back to team overview

desktop-packages team mailing list archive

[Bug 825173] Re: spacing issues with GtkTable in gtk3

 

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

** Changed in: gtk+3.0 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtk+3.0 in Ubuntu.
https://bugs.launchpad.net/bugs/825173

Title:
  spacing issues with GtkTable in gtk3

Status in “gtk+3.0” package in Ubuntu:
  Confirmed

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/825173/+subscriptions