From 93993c7e7665e644577f3d1e31e4f5c666ff8a72 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 30 Mar 2012 14:17:34 +0000 Subject: [PATCH] Fix #1741: Build error --with-gui, gtk problem. 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c index 4913d8aa6..8b195693a 100644 --- a/loader/shp2pgsql-gui.c +++ b/loader/shp2pgsql-gui.c @@ -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 */ -- 2.50.1