mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-12-22 23:14:36 +02:00
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.) git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5853 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
parent
aaba06fb24
commit
8e9001644c
@ -358,6 +358,8 @@ void debug_save_pixbuf(GdkPixbuf *buf)
|
||||
* the widget being dumped.
|
||||
*/
|
||||
|
||||
#if GTK_CHECK_VERSION(2, 14, 0)
|
||||
|
||||
void debug_save_widget(GtkWidget *widget)
|
||||
{
|
||||
GdkPixmap *pixmap;
|
||||
@ -373,6 +375,8 @@ void debug_save_widget(GtkWidget *widget)
|
||||
g_object_unref(pixbuf);
|
||||
}
|
||||
|
||||
#endif /* GTK_CHECK_VERSION(2, 14, 0) */
|
||||
|
||||
|
||||
/* ----- kill the content of a container ----------------------------------- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user