]> granicus.if.org Git - postgis/commitdiff
Fix #1741: Build error --with-gui, gtk problem.
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 30 Mar 2012 14:17:34 +0000 (14:17 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 30 Mar 2012 14:17:34 +0000 (14:17 +0000)
Older versions of GTK (< 2.14.0) don't have gtk_dialog_get_content_area(). Work
around this by providing a compatibility #define for these older GTK versions.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9582 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-gui.c

index 4913d8aa620813a981f32a32d92a6d70c995a440..8b195693ab0353acfbcbb202e5925178c3161ea1 100644 (file)
@@ -37,6 +37,13 @@ static void pgui_seterr_va(const char *fmt, va_list ap);
 
 static void update_conn_ui_from_conn_config(void);
 
+/* If GTK+ version is < 2.14.0, define gtk_dialog_get_content_area() */
+#if !GTK_CHECK_VERSION(2, 14, 0)
+       #if !defined(gtk_dialog_get_content_area)
+               #define gtk_dialog_get_content_area(dialog) GTK_DIALOG(dialog)->vbox
+       #endif
+#endif
+
 /*
 ** Global variables for GUI only
 */