projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37a7c67
)
examples: Use textures over pixbufs
author
Benjamin Otte
<otte@redhat.com>
Fri, 17 Sep 2021 02:10:56 +0000
(
04:10
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 17 Sep 2021 02:31:46 +0000
(
04:31
+0200)
examples/bp/bloatpad.c
patch
|
blob
|
history
diff --git
a/examples/bp/bloatpad.c
b/examples/bp/bloatpad.c
index 42d7b45f151fec8a97588c48ae556f486e6d3a43..e923b444c92a3458bf613e0a9c27072be0d40d0c 100644
(file)
--- 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);