aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-05 22:12:12 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 08:19:09 -0300
commitd59975bd3666dc71c2df59a90785c64722524576 (patch)
treed0c8ed2feee64ffb90385adf4b73f319ac442c53 /src
parentde9ec52ff1cd52e2aa4d0debcfa3d1b9792459c7 (diff)
get rid of the unused xpm_label_box() function
This function is not used anywhere and produces a warning with gtk 3. So, get rid of it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src')
-rw-r--r--src/support.c22
-rw-r--r--src/support.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/src/support.c b/src/support.c
index cb90cda..c6ed34a 100644
--- a/src/support.c
+++ b/src/support.c
@@ -9,28 +9,6 @@
#include <gdk/gdkkeysyms.h>
#include <config.h>
-GtkWidget *xpm_label_box(gchar *xpm_filename)
-{
- GtkWidget *box;
- GtkWidget *image;
-
- /* Create box for image and label */
- box = gtk_hbox_new(FALSE, 0);
- gtk_container_set_border_width(GTK_CONTAINER(box), 2);
-
- /* Now on to the image stuff */
- image = gtk_image_new_from_file(xpm_filename);
-
- /* Create a label for the button */
-
- /* Pack the image and label into the box */
- gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 3);
-
- gtk_widget_show(image);
-
- return box;
-}
-
int error_dialog(char *message)
{
GtkWidget *dialog;
diff --git a/src/support.h b/src/support.h
index 2b0f400..23cf3e5 100644
--- a/src/support.h
+++ b/src/support.h
@@ -1,4 +1,3 @@
#include "v4l.h"
-GtkWidget * xpm_label_box(gchar *);
int error_dialog(char *);

Privacy Policy