path: root/src/callbacks.h
diff options
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 14:14:41 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 14:42:46 (GMT)
commitb43e75b95bbcda5cb854d29b09d8a0997efa4f04 (patch)
tree6f615d57411559e35406a29ccff2dfeca1f3e99e /src/callbacks.h
parent20e0a0798936233e7b82b2dfc68f899a70be41f6 (diff)
callbacks: prevent destroying the preferences widget
The preferences widget's logic is to hide/unride. Intercept the destroy signal, in order to prevent it to be distroyed if one clicks at the (X) button of the widget. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index a768f7f..1b55606 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -42,6 +42,8 @@ void on_about_activate(GtkMenuItem *menuitem, cam_t *cam);
void on_show_adjustments_activate(GtkToggleButton *button, cam_t *);
void on_show_effects_activate(GtkMenuItem *menuitem, cam_t *);
void prefs_func(GtkWidget *, cam_t *);
+gboolean delete_event_prefs_window(GtkWidget *widget, GdkEvent *event,
+ cam_t *cam);
void capture_func2(GtkWidget *, cam_t *);
void capture_func(GtkWidget *, cam_t *);
gint timeout_capture_func(cam_t *);

Privacy Policy