diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-16 04:29:42 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-16 06:04:45 +0100 |
commit | cbe40f5f46d8358ec944b00037d73482d2d6b4a2 (patch) | |
tree | eccce9d4a465291f86afafcd35d498f3a4ab4726 /gtk/gtkheaderbar.c | |
parent | 2935ef81286e8b70e1e03cf1eeca4666834c8490 (diff) | |
download | gtk+-cbe40f5f46d8358ec944b00037d73482d2d6b4a2.tar.gz |
image: Remove gtk_image_set_texture()
gtk_image_get_paintable() is a perfect replacement, so use that one.
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r-- | gtk/gtkheaderbar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 0a67447961..a919fc8235 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -228,7 +228,8 @@ _gtk_header_bar_update_window_icon (GtkHeaderBar *bar, if (texture) { - gtk_image_set_from_texture (GTK_IMAGE (priv->titlebar_icon), texture); + gtk_image_set_from_paintable (GTK_IMAGE (priv->titlebar_icon), + GDK_PAINTABLE (texture)); g_object_unref (texture); gtk_widget_show (priv->titlebar_icon); |