[gtk+] GtkButton: Pick up images that are set early
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkButton: Pick up images that are set early
- Date: Tue, 4 Aug 2015 02:37:53 +0000 (UTC)
commit b10bfe128f8ab753137f1bd313982943df79af79
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 3 22:35:36 2015 -0400
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
gtk/gtkbutton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index bb90daf..8abbceb 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]