diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-12 14:20:27 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-12 17:14:36 -0400 |
commit | 1263fdbd679af254d79f8f5d9017bf976871d510 (patch) | |
tree | ec6124d6d1ceffd149c2fb261e80caede0e88182 /gtk/gtkcombobox.c | |
parent | 6116bcb78e4e7a829baf0b1ef9c16674a6da4f55 (diff) | |
download | gtk+-1263fdbd679af254d79f8f5d9017bf976871d510.tar.gz |
combobox: always give the full allocation to the button in menu mode
The button is what draws the background/frame outline of the combobox,
and padding is defined as the spacing *inside* the widget between the
border and the content.
https://bugzilla.gnome.org/show_bug.cgi?id=646882
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 3caa1d74cd..98d3e0c356 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -2418,14 +2418,14 @@ gtk_combo_box_size_allocate (GtkWidget *widget, gint width; guint border_width; + gtk_widget_size_allocate (priv->button, allocation); + /* menu mode */ allocation->x += padding.left; allocation->y += padding.top; allocation->width -= padding.left + padding.right; allocation->height -= padding.top + padding.bottom; - gtk_widget_size_allocate (priv->button, allocation); - /* set some things ready */ border_width = gtk_container_get_border_width (GTK_CONTAINER (priv->button)); get_widget_padding (priv->button, &button_padding); |