[gtk/image-loading] examples: Use textures over pixbufs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/image-loading] examples: Use textures over pixbufs
- Date: Fri, 17 Sep 2021 02:16:41 +0000 (UTC)
commit a0acaf86901a5934676ceffc61b88b6e03dc03c9
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 17 04:10:56 2021 +0200
examples: Use textures over pixbufs
examples/bp/bloatpad.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]