[svn-commits] seanbright: trunk r384 - in /trunk: ./ menuselect_gtk.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 5 10:14:11 CST 2008


Author: seanbright
Date: Fri Sep 12 09:56:35 2008
New Revision: 384

URL: http://svn.digium.com/view/menuselect?view=rev&rev=384
Log:
Merged revisions 383 via svnmerge from 
https://origsvn.digium.com/svn/menuselect/branches/1.0

........
r383 | seanbright | 2008-09-12 10:53:26 -0400 (Fri, 12 Sep 2008) | 9 lines

Make sure that the user has a recent enough version of GTK2 that we can
use the GtkTreeView line settings.

(closes issue #13472)
Reported by: Zhadnost
Patches:
      13472.diff uploaded by seanbright (license 71)
Tested by: Zhadnost

........

Modified:
    trunk/   (props changed)
    trunk/menuselect_gtk.c

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.0-merged (original)
+++ branch-1.0-merged Fri Sep 12 09:56:35 2008
@@ -1,1 +1,1 @@
-/branches/1.0:1-316
+/branches/1.0:1-316,383

Modified: trunk/menuselect_gtk.c
URL: http://svn.digium.com/view/menuselect/trunk/menuselect_gtk.c?view=diff&rev=384&r1=383&r2=384
==============================================================================
--- trunk/menuselect_gtk.c (original)
+++ trunk/menuselect_gtk.c Fri Sep 12 09:56:35 2008
@@ -308,8 +308,11 @@
 	}
 
 	tree = (GtkTreeView *) gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
+
+#if GTK_CHECK_VERSION(2,10,0)
 	gtk_tree_view_set_enable_tree_lines(tree, TRUE);
 	gtk_tree_view_set_grid_lines(tree, GTK_TREE_VIEW_GRID_LINES_BOTH);
+#endif
 
 	renderer = gtk_cell_renderer_text_new();
 	column = gtk_tree_view_column_new_with_attributes("Name",




More information about the svn-commits mailing list