Author: abrander
Date: 2009-12-03 16:12:02 +0100 (Thu, 03 Dec 2009)
New Revision: 2782
Modified:
trunk/librawstudio/rs-macros.h
Log:
[311] Added compatibility macros for GTK+ <2.14.
Modified: trunk/librawstudio/rs-macros.h
===================================================================
--- trunk/librawstudio/rs-macros.h 2009-12-02 07:26:59 UTC (rev 2781)
+++ trunk/librawstudio/rs-macros.h 2009-12-03 15:12:02 UTC (rev 2782)
@@ -66,4 +66,13 @@
#define COLOR_BLACK(c) do { (c).red=0; (c).green=0; (c).blue=0; } while (0)
+/* Compatibility with GTK+ <2.14.0 */
+#if !GTK_CHECK_VERSION(2,14,0)
+#define gtk_adjustment_get_lower(adjustment) adjustment->lower
+#define gtk_adjustment_get_upper(adjustment) adjustment->upper
+#define gtk_adjustment_get_step_increment(adjustment)
adjustment->step_increment
+#define gtk_adjustment_get_page_increment(adjustment)
adjustment->page_increment
+#define gtk_adjustment_get_page_size(adjustment) adjustment->page_size
+#endif /* !GTK_CHECK_VERSION(2.14.0) */
+
#endif /* RS_MACROS_H */
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit