[nautilus] [eel] remove eel_gdk_pixbuf_list_ref()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] [eel] remove eel_gdk_pixbuf_list_ref()
- Date: Mon, 1 Nov 2010 02:25:34 +0000 (UTC)
commit 7dee3226ad6b3aa1c782cc3d2969e32c5eeae3f3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 1 03:27:11 2010 +0100
[eel] remove eel_gdk_pixbuf_list_ref()
eel/eel-gdk-pixbuf-extensions.c | 12 ------------
eel/eel-gdk-pixbuf-extensions.h | 4 ----
libnautilus-private/nautilus-icon-canvas-item.c | 3 +--
3 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/eel/eel-gdk-pixbuf-extensions.c b/eel/eel-gdk-pixbuf-extensions.c
index f7ec2db..c0d7884 100644
--- a/eel/eel-gdk-pixbuf-extensions.c
+++ b/eel/eel-gdk-pixbuf-extensions.c
@@ -42,18 +42,6 @@
#define LOAD_BUFFER_SIZE 65536
-/**
- * eel_gdk_pixbuf_list_ref
- * @pixbuf_list: A list of GdkPixbuf objects.
- *
- * Refs all the pixbufs.
- **/
-void
-eel_gdk_pixbuf_list_ref (GList *pixbuf_list)
-{
- g_list_foreach (pixbuf_list, (GFunc) g_object_ref, NULL);
-}
-
static void
pixbuf_loader_size_prepared (GdkPixbufLoader *loader,
int width,
diff --git a/eel/eel-gdk-pixbuf-extensions.h b/eel/eel-gdk-pixbuf-extensions.h
index ae30114..83e9a42 100644
--- a/eel/eel-gdk-pixbuf-extensions.h
+++ b/eel/eel-gdk-pixbuf-extensions.h
@@ -25,7 +25,6 @@
#ifndef EEL_GDK_PIXBUF_EXTENSIONS_H
#define EEL_GDK_PIXBUF_EXTENSIONS_H
-#include <eel/eel-art-extensions.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdk.h>
#include <gio/gio.h>
@@ -33,9 +32,6 @@
#define EEL_OPACITY_FULLY_TRANSPARENT 0
#define EEL_OPACITY_FULLY_OPAQUE 255
-/* Convenience functions for lists of GdkPixbuf objects. */
-void eel_gdk_pixbuf_list_ref (GList *pixbuf_list);
-
/* Loading a GdkPixbuf with a URI. */
GdkPixbuf * eel_gdk_pixbuf_load_from_stream_at_size (GInputStream *stream,
int size);
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c
index 6808d31..65e6889 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -35,7 +35,6 @@
#include <eel/eel-gdk-extensions.h>
#include <eel/eel-gdk-pixbuf-extensions.h>
#include <eel/eel-glib-extensions.h>
-#include <eel/eel-gnome-extensions.h>
#include <eel/eel-graphic-effects.h>
#include <eel/eel-gtk-macros.h>
#include <eel/eel-string.h>
@@ -633,7 +632,7 @@ nautilus_icon_canvas_item_set_emblems (NautilusIconCanvasItem *item,
}
/* Take in the new list of emblems. */
- eel_gdk_pixbuf_list_ref (emblem_pixbufs);
+ eel_g_object_list_ref (emblem_pixbufs);
g_list_free_full (item->details->emblem_pixbufs, g_object_unref);
item->details->emblem_pixbufs = g_list_copy (emblem_pixbufs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]