aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/callbacks.c')
-rw-r--r--src/callbacks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 0145f20..a35cee4 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -333,7 +333,11 @@ void prefs_func(GtkWidget *okbutton, cam_t *cam)
void on_quit_activate(GtkMenuItem *menuitem, cam_t *cam)
{
+#if GTK_MAJOR_VERSION >= 3
g_application_quit(G_APPLICATION(cam->app));
+#else
+ gtk_main_quit();
+#endif
}
void on_preferences1_activate(GtkMenuItem *menuitem, gpointer user_data)

Privacy Policy