summaryrefslogtreecommitdiff
path: root/eel/eel-gtk-extensions.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-07-07 07:00:00 -0400
committerraveit65 <[email protected]>2019-07-10 16:23:20 +0200
commita695fec803121b8b4af2a181e98ae7ab6ef7e35a (patch)
treeae6079b72a631d3f267c7c3c170b7b0441b1cce4 /eel/eel-gtk-extensions.c
parente87dae607ad393e0b00de3f99a1a2d2f1a1637cf (diff)
downloadcaja-a695fec803121b8b4af2a181e98ae7ab6ef7e35a.tar.bz2
caja-a695fec803121b8b4af2a181e98ae7ab6ef7e35a.tar.xz
Replace gdkpixbuf with cairo_surfaces in a few more places
Diffstat (limited to 'eel/eel-gtk-extensions.c')
-rw-r--r--eel/eel-gtk-extensions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c
index 3a98c7d2..f460e24d 100644
--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -480,15 +480,15 @@ eel_image_menu_item_new_from_icon (const gchar *icon_name,
}
GtkWidget *
-eel_image_menu_item_new_from_pixbuf (GdkPixbuf *icon_pixbuf,
- const gchar *label_name)
+eel_image_menu_item_new_from_surface (cairo_surface_t *icon_surface,
+ const gchar *label_name)
{
gchar *concat;
GtkWidget *icon;
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- if (icon_pixbuf)
- icon = gtk_image_new_from_pixbuf (icon_pixbuf);
+ if (icon_surface)
+ icon = gtk_image_new_from_surface (icon_surface);
else
icon = gtk_image_new ();