forked from AuroraMiddleware/gtk
GtkButton: Pick up images that are set early
We were failing to construct the child if an image was set before constructed (e.g. in the init() function of a button subclass). https://bugzilla.gnome.org/show_bug.cgi?id=753048
This commit is contained in:
parent
ba45fa09b4
commit
b10bfe128f
@ -720,7 +720,7 @@ gtk_button_constructed (GObject *object)
|
||||
|
||||
priv->constructed = TRUE;
|
||||
|
||||
if (priv->label_text != NULL)
|
||||
if (priv->label_text != NULL || priv->image != NULL)
|
||||
gtk_button_construct_child (button);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user