path: root/src/callbacks.h
diff options
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 16:59:38 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 14:36:56 (GMT)
commitcdfeabfbafb64a9ffe0da24328552c18df5fe833 (patch)
treef249f66f9bde546e37b14e5ecf98382c635bc23c /src/callbacks.h
parent6d2adf868042fe34d8972f1c3a57883fb10f2bbf (diff)
main: make it use gtk_application_new() & friends
As with gtk 4 there's no way to pass command line arguments anymore to gtk_init, we need to change the logic, in order to use g_application() instead. It should be noticed that g_application() is not supported by gtk 2. So, this patch will temporarely break compatibility with it. The next patch will restore. I opted to add the backward compat on a separate patch as it makes easier to later drop gtk 2 compat, after we test gtk 3 support for a while. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index f52e498..a55105f 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -8,7 +8,7 @@
void on_change_size_activate(GtkWidget * widget, cam_t *cam);
-void on_quit_activate(GtkMenuItem *menuitem, gpointer user_data);
+void on_quit_activate(GtkMenuItem *menuitem, cam_t *cam);
void gconf_notify_func(GConfClient *client, guint cnxn_id,
GConfEntry *entry, char **);
void gconf_notify_func_bool(GConfClient *client, guint cnxn_id,

Privacy Policy