diff options
author | Benjamin Otte <otte@redhat.com> | 2015-12-08 15:39:10 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-12-09 13:30:40 +0100 |
commit | c9d1a45d30ee5e131d12c8de276e3657111a578b (patch) | |
tree | f2fafdd9b74125e54fee7525b95b41bb41ca26eb /gtk/gtkimage.c | |
parent | ee5758a4e16a7957a8759abeb8fecde23e2bb6d2 (diff) | |
download | gtk+-c9d1a45d30ee5e131d12c8de276e3657111a578b.tar.gz |
iconhelper: Require a widget as construction argument
Note that the caller needs to ensure the widget lives as long as the
iconhelper as the iconhelper will not ref the widget.
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r-- | gtk/gtkimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 7a2f33fcfe..a24d0dfcc2 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -402,7 +402,7 @@ gtk_image_init (GtkImage *image) priv = image->priv; gtk_widget_set_has_window (GTK_WIDGET (image), FALSE); - priv->icon_helper = _gtk_icon_helper_new (); + priv->icon_helper = _gtk_icon_helper_new (GTK_WIDGET (image)); _gtk_icon_helper_set_icon_size (priv->icon_helper, DEFAULT_ICON_SIZE); } |