diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-01 08:00:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-05-01 08:02:15 +0200 |
commit | 63a0ab5e73a618e4fe907f69a1bd6a74cb399dc2 (patch) | |
tree | 3501272582cd22fa4e8fdd5041165d2859eae814 /gtk/gtkaccellabel.c | |
parent | 406b2e9e5844e41547642eafbc416f4f03b0b79a (diff) | |
download | gtk+-63a0ab5e73a618e4fe907f69a1bd6a74cb399dc2.tar.gz |
accellabel: Only daw accelerator after natural size has been reached
Diffstat (limited to 'gtk/gtkaccellabel.c')
-rw-r--r-- | gtk/gtkaccellabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c index 167e6033d1..07e8820454 100644 --- a/gtk/gtkaccellabel.c +++ b/gtk/gtkaccellabel.c @@ -386,9 +386,9 @@ gtk_accel_label_draw (GtkWidget *widget, direction = gtk_widget_get_direction (widget); ac_width = gtk_accel_label_get_accel_width (accel_label); gtk_widget_get_allocation (widget, &allocation); - gtk_widget_get_preferred_size (widget, &requisition, NULL); + gtk_widget_get_preferred_size (widget, NULL, &requisition); - if (allocation.width >= requisition.width + ac_width) + if (allocation.width >= requisition.width + ac_width && FALSE) { GtkStyleContext *context; PangoLayout *label_layout; |