aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-21 16:08:56 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:19:31 (GMT)
commit3dcb952d2c392d5656ccba48ab7eb125b3d75917 (patch)
treee3bab9ee8f91db50c2dbbad1b81af9033ddcef7f
parente8610bea69461b3523bc0b99fc40f1863fa3742a (diff)
support: get rid of create_pixbuf()
This function is not used anymore. Get rid of it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/support.c26
-rw-r--r--src/support.h1
2 files changed, 0 insertions, 27 deletions
diff --git a/src/support.c b/src/support.c
index 0d75b90..e12295f 100644
--- a/src/support.c
+++ b/src/support.c
@@ -52,32 +52,6 @@ GtkWidget *lookup_widget (GtkWidget * widget, const gchar * widget_name)
g_warning ("Widget not found: %s", widget_name);
return found_widget;
}
-GdkPixbuf *create_pixbuf (const gchar * filename)
-{
- gchar *pathname = NULL;
- GdkPixbuf *pixbuf;
- GError *error = NULL;
-
- if (!filename || !filename[0])
- return NULL;
-
- pathname =
- gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP,
- filename, TRUE, NULL);
-
- if (!pathname) {
- g_warning (_("Couldn't find pixmap file: %s"), filename);
- return NULL;
- }
- pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
- if (!pixbuf) {
- fprintf (stderr, "Failed to load pixbuf file: %s: %s\n", pathname,
- error->message);
- g_error_free (error);
- }
- g_free (pathname);
- return pixbuf;
-}
int error_dialog (char *message)
{
diff --git a/src/support.h b/src/support.h
index 82b0401..63fab01 100644
--- a/src/support.h
+++ b/src/support.h
@@ -1,3 +1,2 @@
GtkWidget *xpm_label_box (gchar *);
int error_dialog (char *);
-GdkPixbuf *create_pixbuf (const gchar * filename);

Privacy Policy