summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-10-24 12:11:02 +0200
committerBastien Nocera <hadess@hadess.net>2019-10-24 12:14:31 +0200
commit126c0849566a107d88b2cb5e7ddd8b2b5660c199 (patch)
tree294ecf8e65cbc8cd8ae772b716127d9d39d91beb /src
parent7a27b81a5511af13e3acc8280516ff68aa9a38f1 (diff)
downloadtotem-126c0849566a107d88b2cb5e7ddd8b2b5660c199.tar.gz
main: Remove unused totem_interface_load_pixbuf()
It was marked as private in the API docs as well. Spotted by Gabor Karsay <gabor.karsay@gmx.at>
Diffstat (limited to 'src')
-rw-r--r--src/totem-interface.c22
-rw-r--r--src/totem-interface.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/src/totem-interface.c b/src/totem-interface.c
index 675bdec81..1b1c8a959 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -236,28 +236,6 @@ totem_interface_load_with_full_path (const char *filename, gboolean fatal,
return builder;
}
-/**
- * totem_interface_load_pixbuf:
- * @name: the image file name
- *
- * Load the image called @name in the directory given by totem_interface_get_full_path() into a #GdkPixbuf.
- *
- * Return value: (transfer full): the loaded pixbuf, or %NULL
- */
-GdkPixbuf*
-totem_interface_load_pixbuf (const char *name)
-{
- GdkPixbuf *pix;
- char *filename;
-
- filename = totem_interface_get_full_path (name);
- if (filename == NULL)
- return NULL;
- pix = gdk_pixbuf_new_from_file (filename, NULL);
- g_free (filename);
- return pix;
-}
-
char *
totem_interface_get_full_path (const char *name)
{
diff --git a/src/totem-interface.h b/src/totem-interface.h
index 4e65ab298..f06ec3214 100644
--- a/src/totem-interface.h
+++ b/src/totem-interface.h
@@ -28,7 +28,6 @@
G_BEGIN_DECLS
-GdkPixbuf *totem_interface_load_pixbuf (const char *name);
char *totem_interface_get_full_path (const char *name);
GtkBuilder *totem_interface_load (const char *name,
gboolean fatal,