aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 11:14:41 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 11:42:46 -0300
commitb43e75b95bbcda5cb854d29b09d8a0997efa4f04 (patch)
tree6f615d57411559e35406a29ccff2dfeca1f3e99e /src/camorama-window.c
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/camorama-window.c')
-rw-r--r--src/camorama-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 3108660..862f869 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -254,6 +254,9 @@ void load_interface(cam_t *cam)
gtk_window_set_icon(GTK_WINDOW(window), logo);
gtk_window_set_icon(GTK_WINDOW(prefswindow), logo);
+ g_signal_connect(G_OBJECT(prefswindow), "delete-event",
+ G_CALLBACK(delete_event_prefs_window), cam);
+
g_signal_connect(gtk_builder_get_object(cam->xml, "show_effects"),
"activate", G_CALLBACK(on_show_effects_activate),
cam);

Privacy Policy