After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564063 - regression: Left margin in popup menus
regression: Left margin in popup menus
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-12-11 04:54 UTC by Tristan Van Berkom
Modified: 2009-06-22 04:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tristan Van Berkom 2008-12-11 04:54:16 UTC
Combo boxes in trunk (not sure about 2.14) have big left margins in the 
popup menu items (like this: http://www.gnome.org/~tvb/left_margin.png)

I found that with my system installed gtk+ 2.12.9 there was no left
margin in combo boxes.

To reproduce:

void main () {
  GtkWidget *window, *combo;
  gtk_init (NULL, NULL);
 
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
  combo = gtk_combo_box_new_text ();
  gtk_combo_box_append_text (combo, "text1");
  gtk_combo_box_append_text (combo, "text2");
 
  gtk_container_add (window, combo);
 
  gtk_widget_show_all (window);
 
  gtk_main ();
}

Note, Ive been packing my cell renderer and setting up my
model myself, the bug is there with or without the _text*() api.

Guess: may have to do with menuitem rtl/ltr code, which does
alot of ifs and calculates the toggle size request, not sure
if toggle size request is playing into the margin or not...
Comment 1 Matthias Clasen 2008-12-13 05:02:21 UTC
Jon, this is likely a side-effect of your menu padding changes...