[svn-commits] seanbright: branch 1.0 r383 - /branches/1.0/menuselect_gtk.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Nov 5 10:14:10 CST 2008
Author: seanbright
Date: Fri Sep 12 09:53:26 2008
New Revision: 383
URL: http://svn.digium.com/view/menuselect?view=rev&rev=383
Log:
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:
branches/1.0/menuselect_gtk.c
Modified: branches/1.0/menuselect_gtk.c
URL: http://svn.digium.com/view/menuselect/branches/1.0/menuselect_gtk.c?view=diff&rev=383&r1=382&r2=383
==============================================================================
--- branches/1.0/menuselect_gtk.c (original)
+++ branches/1.0/menuselect_gtk.c Fri Sep 12 09:53:26 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