fixed build with older gtk3

Tue, 16 Feb 2016 17:39:33 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 16 Feb 2016 17:39:33 +0100
changeset 123
55adc92e7c09
parent 122
e82b01d17a78
child 124
80609f9675f1

fixed build with older gtk3

ui/gtk/tree.c file | annotate | diff | comparison | revisions
--- a/ui/gtk/tree.c	Fri Jan 29 19:11:15 2016 +0100
+++ b/ui/gtk/tree.c	Tue Feb 16 17:39:33 2016 +0100
@@ -55,9 +55,13 @@
     
     gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(view), FALSE);
 #ifdef UI_GTK3
+#if GTK_MINOR_VERSION >= 8
     gtk_tree_view_set_activate_on_single_click(GTK_TREE_VIEW(view), TRUE);
 #else
-    
+    // TODO: implement for older gtk3
+#endif
+#else
+    // TODO: implement for gtk2
 #endif
     
     UiModelInfo *modelinfo = ui_model_info(obj->ctx, UI_STRING, "", -1);

mercurial