SF.net SVN: geany:[2887] trunk/src/notebook.c

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Aug 14 15:48:11 UTC 2008


Revision: 2887
          http://geany.svn.sourceforge.net/geany/?rev=2887&view=rev
Author:   ntrel
Date:     2008-08-14 15:48:11 +0000 (Thu, 14 Aug 2008)

Log Message:
-----------
Don't look up "scroll_arrow_hlength" and "scroll_arrow_vlength"
GtkWidget properties on GTK < 2.10.

Modified Paths:
--------------
    trunk/src/notebook.c

Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c	2008-08-13 18:44:09 UTC (rev 2886)
+++ trunk/src/notebook.c	2008-08-14 15:48:11 UTC (rev 2887)
@@ -141,8 +141,12 @@
 	tab_pos = gtk_notebook_get_tab_pos(notebook);
 	nb = GTK_WIDGET(notebook);
 
+#if GTK_CHECK_VERSION(2, 10, 0)
 	gtk_widget_style_get(GTK_WIDGET(notebook), "scroll-arrow-hlength", &scroll_arrow_hlength,
 		"scroll-arrow-vlength", &scroll_arrow_vlength, NULL);
+#else
+	scroll_arrow_hlength = scroll_arrow_vlength = 16;
+#endif
 
 	if (! gdk_event_get_coords((GdkEvent*) event, &x, &y))
 	{


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list