r5853 - trunk/eda/fped

werner at docs.openmoko.org werner at docs.openmoko.org
Tue Mar 16 13:37:15 CET 2010


Author: werner
Date: 2010-03-16 13:37:14 +0100 (Tue, 16 Mar 2010)
New Revision: 5853

Modified:
   trunk/eda/fped/gui_util.c
Log:
Make fped build with older versions of Gtl.

- gui_util.c: gtk_widget_get_snapshot is only available since Gtk version 2.14.
  Omit debug_save_widget if using an older version of Gtk. (Reported by Igor
  Almeida.)



Modified: trunk/eda/fped/gui_util.c
===================================================================
--- trunk/eda/fped/gui_util.c	2010-02-23 19:28:34 UTC (rev 5852)
+++ trunk/eda/fped/gui_util.c	2010-03-16 12:37:14 UTC (rev 5853)
@@ -358,6 +358,8 @@
  * the widget being dumped.
  */
 
+#if GTK_CHECK_VERSION(2, 14, 0)
+
 void debug_save_widget(GtkWidget *widget)
 {
 	GdkPixmap *pixmap;
@@ -373,7 +375,9 @@
 	g_object_unref(pixbuf);
 }
 
+#endif /* GTK_CHECK_VERSION(2, 14, 0) */
 
+
 /* ----- kill the content of a container ----------------------------------- */
 
 




More information about the commitlog mailing list