[totem/wip/hadess/remove-unused-private-func: 33/33] main: Remove unused totem_interface_load_pixbuf()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/remove-unused-private-func: 33/33] main: Remove unused totem_interface_load_pixbuf()
- Date: Thu, 24 Oct 2019 10:14:53 +0000 (UTC)
commit 126c0849566a107d88b2cb5e7ddd8b2b5660c199
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 24 12:11:02 2019 +0200
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>
docs/reference/totem-sections.txt | 1 -
src/totem-interface.c | 22 ----------------------
src/totem-interface.h | 1 -
3 files changed, 24 deletions(-)
---
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index af4f79f31..b00ef9796 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -104,7 +104,6 @@ totem_interface_error_with_link
<SUBSECTION Private>
totem_interface_get_full_path
totem_interface_load
-totem_interface_load_pixbuf
totem_interface_load_with_full_path
</SECTION>
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]