[gnome-documents] lib: remove unused list store new/set wrappers
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] lib: remove unused list store new/set wrappers
- Date: Tue, 5 Jun 2012 16:54:32 +0000 (UTC)
commit 33e5ca8da81744818fefcfe0b76494b5c4894192
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jun 5 12:53:26 2012 -0400
lib: remove unused list store new/set wrappers
src/lib/gd-utils.c | 97 ----------------------------------------------------
src/lib/gd-utils.h | 24 -------------
2 files changed, 0 insertions(+), 121 deletions(-)
---
diff --git a/src/lib/gd-utils.c b/src/lib/gd-utils.c
index eb42803..da4a7b2 100644
--- a/src/lib/gd-utils.c
+++ b/src/lib/gd-utils.c
@@ -28,103 +28,6 @@
#define GNOME_DESKTOP_USE_UNSTABLE_API
#include <libgnome-desktop/gnome-desktop-thumbnail.h>
-/* FIXME: this is here only because gjs doesn't
- * support GType handling/arrays yet.
- */
-/**
- * gd_create_list_store:
- *
- * Returns: (transfer full):
- */
-GtkListStore *
-gd_create_list_store (void)
-{
- return gtk_list_store_new (7,
- G_TYPE_STRING, // URN
- G_TYPE_STRING, // URI
- G_TYPE_STRING, // TITLE
- G_TYPE_STRING, // AUTHOR
- GDK_TYPE_PIXBUF, // ICON
- G_TYPE_LONG, // MTIME
- G_TYPE_BOOLEAN); // SELECTED
-}
-
-void
-gd_store_set (GtkListStore *store,
- GtkTreeIter *iter,
- const gchar *urn,
- const gchar *uri,
- const gchar *title,
- const gchar *author,
- GdkPixbuf *icon,
- glong mtime)
-{
- gtk_list_store_set (store, iter,
- 0, urn,
- 1, uri,
- 2, title,
- 3, author,
- 4, icon,
- 5, mtime,
- -1);
-}
-
-/**
- * gd_create_item_store:
- *
- * Returns: (transfer full):
- */
-GtkListStore *
-gd_create_item_store (void)
-{
- return gtk_list_store_new (3,
- G_TYPE_STRING, // ID
- G_TYPE_STRING, // NAME
- G_TYPE_STRING); // HEADING_TEXT
-}
-
-void
-gd_item_store_set (GtkListStore *store,
- GtkTreeIter *iter,
- const gchar *id,
- const gchar *name,
- const gchar *heading_text)
-{
- gtk_list_store_set (store, iter,
- 0, id,
- 1, name,
- 2, heading_text,
- -1);
-}
-
-/**
- * gd_create_organize_store:
- *
- * Returns: (transfer full):
- */
-GtkListStore *
-gd_create_organize_store (void)
-{
- return gtk_list_store_new (3,
- G_TYPE_STRING, // ID
- G_TYPE_STRING, // NAME
- G_TYPE_INT); // STATE
-}
-
-void
-gd_organize_store_set (GtkListStore *store,
- GtkTreeIter *iter,
- const gchar *id,
- const gchar *name,
- gint state)
-{
- gtk_list_store_set (store, iter,
- 0, id,
- 1, name,
- 2, state,
- -1);
-}
-
#define ATTRIBUTES_FOR_THUMBNAIL \
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE"," \
G_FILE_ATTRIBUTE_TIME_MODIFIED
diff --git a/src/lib/gd-utils.h b/src/lib/gd-utils.h
index 5b2b335..b5b47de 100644
--- a/src/lib/gd-utils.h
+++ b/src/lib/gd-utils.h
@@ -24,30 +24,6 @@
#include <gtk/gtk.h>
-GtkListStore* gd_create_list_store (void);
-void gd_store_set (GtkListStore *store,
- GtkTreeIter *iter,
- const gchar *urn,
- const gchar *uri,
- const gchar *title,
- const gchar *author,
- GdkPixbuf *icon,
- glong mtime);
-
-GtkListStore* gd_create_item_store (void);
-void gd_item_store_set (GtkListStore *store,
- GtkTreeIter *iter,
- const gchar *id,
- const gchar *name,
- const gchar *heading_text);
-
-GtkListStore* gd_create_organize_store (void);
-void gd_organize_store_set (GtkListStore *store,
- GtkTreeIter *iter,
- const gchar *id,
- const gchar *name,
- gint state);
-
void gd_queue_thumbnail_job_for_file_async (GFile *file,
GAsyncReadyCallback callback,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]