summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-07-07 07:00:00 -0400
committerraveit65 <[email protected]>2022-07-20 18:49:02 +0200
commit0124edc9296b9f0a942053d9f1ae1c778ca79185 (patch)
tree5a3befc27e69d776b93314e1e01f5be0dd2ca19d /eel
parent9f8ed147f39096125cd29a838ad0ccbbcfa7e8e5 (diff)
downloadcaja-0124edc9296b9f0a942053d9f1ae1c778ca79185.tar.bz2
caja-0124edc9296b9f0a942053d9f1ae1c778ca79185.tar.xz
Replace gdkpixbuf with cairo_surfaces in a few more places
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-gtk-extensions.c8
-rw-r--r--eel/eel-gtk-extensions.h3
2 files changed, 5 insertions, 6 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 ();
diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h
index bc02da69..c3be8940 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 <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
#include "eel-gdk-extensions.h"
@@ -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);
gboolean eel_dialog_page_scroll_event_callback (GtkWidget *widget,