[maemo-commits] [maemo-commits] r10901 - in projects/haf/trunk/sapwood: . demos

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Apr 2 16:51:07 EEST 2007
Author: tko
Date: 2007-04-02 16:51:03 +0300 (Mon, 02 Apr 2007)
New Revision: 10901

Modified:
   projects/haf/trunk/sapwood/ChangeLog
   projects/haf/trunk/sapwood/demos/treeview.c
Log:
Enable rubberbanding only with gtk >= 2.10.0

2007-04-02  Tommi Komulainen  <tommi.komulainen at nokia.com>

	* demos/treeview.c (create_treeview): Enable rubberbanding only with
	gtk >= 2.10.0


Modified: projects/haf/trunk/sapwood/ChangeLog
===================================================================
--- projects/haf/trunk/sapwood/ChangeLog	2007-04-02 13:49:50 UTC (rev 10900)
+++ projects/haf/trunk/sapwood/ChangeLog	2007-04-02 13:51:03 UTC (rev 10901)
@@ -1,5 +1,10 @@
 2007-04-02  Tommi Komulainen  <tommi.komulainen at nokia.com>
 
+	* demos/treeview.c (create_treeview): Enable rubberbanding only with
+	gtk >= 2.10.0
+
+2007-04-02  Tommi Komulainen  <tommi.komulainen at nokia.com>
+
 	* src/sapwood-draw.c (maybe_check_button_position): rename to
 	check_child_position and generalize to handle a list of widgets.
 	(check_buttonbox_child_position): new function to get the list of

Modified: projects/haf/trunk/sapwood/demos/treeview.c
===================================================================
--- projects/haf/trunk/sapwood/demos/treeview.c	2007-04-02 13:49:50 UTC (rev 10900)
+++ projects/haf/trunk/sapwood/demos/treeview.c	2007-04-02 13:51:03 UTC (rev 10901)
@@ -49,7 +49,9 @@
 						 "text", 0,
 						 NULL);
 
+#if GTK_CHECK_VERSION(2,10,0)
   gtk_tree_view_set_rubber_banding (GTK_TREE_VIEW (treeview), TRUE);
+#endif
   selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
   gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
 


More information about the maemo-commits mailing list