aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-27 14:29:27 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:22:18 (GMT)
commit7db851dbcb2fe03cbd9103dc29367fb2986b157c (patch)
tree36e08f9cc9404b6b7c1c2edbc784dccc1f430e8e
parent6b837b89488e9067cc6e0a34300b2bf20f3f372e (diff)
Remove unused function/function prototype
Neither lookup_widget nor io_func are used. As both use some Gtk 2 deprecated functions, get rid of them for good. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/callbacks.h1
-rw-r--r--src/support.c20
2 files changed, 0 insertions, 21 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index 5cde604..3b3fa98 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -40,7 +40,6 @@ void on_about_activate (GtkMenuItem * menuitem, cam *cam);
void on_show_adjustments_activate (GtkToggleButton * button, cam *);
void on_show_effects_activate (GtkMenuItem * menuitem, cam *);
void prefs_func (GtkWidget *, cam *);
-gint io_func (cam *, gint, GdkInputCondition);
void capture_func2 (GtkWidget *, cam *);
void capture_func (GtkWidget *, cam *);
gint timeout_capture_func (cam *);
diff --git a/src/support.c b/src/support.c
index 2dba596..5783b0a 100644
--- a/src/support.c
+++ b/src/support.c
@@ -31,26 +31,6 @@ GtkWidget *xpm_label_box (gchar * xpm_filename)
return box;
}
-GtkWidget *lookup_widget (GtkWidget * widget, const gchar * widget_name)
-{
- GtkWidget *parent, *found_widget;
-
- for (;;) {
- if (GTK_IS_MENU (widget))
- parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
- else
- parent = widget->parent;
- if (parent == NULL)
- break;
- widget = parent;
- }
-
- found_widget =
- (GtkWidget *) g_object_get_data (GTK_OBJECT (widget), widget_name);
- if (!found_widget)
- g_warning ("Widget not found: %s", widget_name);
- return found_widget;
-}
int error_dialog (char *message)
{

Privacy Policy