mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
accellabel: Initialize allocation variable
I have no idea why gcc didn't catch this.
This commit is contained in:
parent
fb43807fbb
commit
e542d411ac
@ -470,6 +470,7 @@ gtk_accel_label_snapshot (GtkWidget *widget,
|
||||
GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->snapshot (widget, snapshot);
|
||||
|
||||
ac_width = gtk_accel_label_get_accel_width (accel_label);
|
||||
gtk_widget_get_allocation (widget, &allocation);
|
||||
gtk_widget_get_preferred_size (widget, NULL, &requisition);
|
||||
|
||||
if (allocation.width >= requisition.width + ac_width)
|
||||
|
Loading…
Reference in New Issue
Block a user