From: Benjamin Otte Date: Fri, 17 Sep 2021 02:10:56 +0000 (+0200) Subject: examples: Use textures over pixbufs X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~5^2~340^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0428d8ccd6049e4424e7cb657859d4b2ae6b816a;p=gtk4.git examples: Use textures over pixbufs --- diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index 42d7b45f15..e923b444c9 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -603,8 +603,8 @@ bloat_pad_startup (GApplication *application) g_object_unref (icon); g_bytes_unref (bytes); - icon = G_ICON (gdk_pixbuf_new_from_resource ("/org/gtk/libgtk/icons/16x16/actions/folder-new.png", NULL)); - item = g_menu_item_new ("Pixbuf", NULL); + icon = G_ICON (gdk_texture_new_from_resource ("/org/gtk/libgtk/icons/16x16/actions/folder-new.png")); + item = g_menu_item_new ("Texture", NULL); g_menu_item_set_icon (item, icon); g_menu_append_item (menu, item); g_object_unref (item);