From 8446b73407dd3c9ca0b061d4c87b94e52cf94a85 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Sun, 7 Jul 2019 07:00:00 -0400 Subject: Replace gdkpixbuf with cairo_surfaces in a few more places --- eel/eel-gtk-extensions.c | 8 ++++---- eel/eel-gtk-extensions.h | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'eel') diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index 19a44085..59dd9a0b 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -479,15 +479,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 (); diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h index 87476be8..ffda2b87 100644 --- a/eel/eel-gtk-extensions.h +++ b/eel/eel-gtk-extensions.h @@ -28,7 +28,6 @@ #ifndef EEL_GTK_EXTENSIONS_H #define EEL_GTK_EXTENSIONS_H -#include #include #include @@ -71,7 +70,7 @@ void eel_gtk_message_dialog_set_details_label (GtkMessag GtkWidget * eel_image_menu_item_new_from_icon (const gchar *icon_name, const gchar *label_name); -GtkWidget * eel_image_menu_item_new_from_pixbuf (GdkPixbuf *icon_pixbuf, +GtkWidget * eel_image_menu_item_new_from_surface (cairo_surface_t *icon_surface, const gchar *label_name); #endif /* EEL_GTK_EXTENSIONS_H */ -- cgit v1.2.1