Skip to content

Commit

Permalink
examples: Use textures over pixbufs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Otte committed Sep 17, 2021
1 parent 37a7c67 commit 0428d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/bp/bloatpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0428d8c

Please sign in to comment.