aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 06:42:14 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 11:36:56 -0300
commitbad7d0926ca7f83cc7529f4de2a6d392262ada42 (patch)
tree6be728034f88072afc01a2117b0fb3e0ae85baa7 /src/camorama-window.c
parentcdfeabfbafb64a9ffe0da24328552c18df5fe833 (diff)
Add backward support for gtk2
Support for gtk3 is too new. It is worth keeping support for gtk2 for a while, specially since the code changes to keep it are small. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/camorama-window.c')
-rw-r--r--src/camorama-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 7ea6006..0bb830e 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -183,7 +183,9 @@ void load_interface(cam_t *cam)
"main_window"));
GtkTreeView *treeview;
+#if GTK_MAJOR_VERSION >= 3
gtk_application_add_window(cam->app, GTK_WINDOW(window));
+#endif
menu_item_filter_type = g_quark_from_static_string("camorama-menu-item-filter-type");

Privacy Policy