[totem/wip/hadess/remove-unused-private-func] 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] main: Remove unused totem_interface_load_pixbuf()
- Date: Thu, 24 Oct 2019 10:12:14 +0000 (UTC)
commit 8ebf1b9f24cc53aa01125cdb40eaa458075d89c5
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 4e69c9f3d..45cd5dd9e 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -103,7 +103,6 @@ totem_interface_error_with_link
totem_interface_get_full_path
totem_interface_get_license
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]