[network-manager-pptp] ui: fix compilation with -DGSEAL_ENABLED



commit ca504445f6c1d36dd9851caba7174ac4af25a06e
Author: Dan Williams <dcbw redhat com>
Date:   Mon Aug 2 16:19:32 2010 -0700

    ui: fix compilation with -DGSEAL_ENABLED

 configure.ac         |    2 +-
 properties/nm-pptp.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 877d93b..5fc6606 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,7 +74,7 @@ AC_SUBST(NM_UTILS_CFLAGS)
 AC_SUBST(NM_UTILS_LIBS)
 
 if test x"$with_gnome" != xno; then
-	PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6)
+	PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.18)
 	AC_SUBST(GTK_CFLAGS)
 	AC_SUBST(GTK_LIBS)
 
diff --git a/properties/nm-pptp.c b/properties/nm-pptp.c
index 62d5d48..640a839 100644
--- a/properties/nm-pptp.c
+++ b/properties/nm-pptp.c
@@ -188,7 +188,7 @@ advanced_button_clicked_cb (GtkWidget *button, gpointer user_data)
 	GtkWidget *dialog, *toplevel;
 
 	toplevel = gtk_widget_get_toplevel (priv->widget);
-	g_return_if_fail (GTK_WIDGET_TOPLEVEL (toplevel));
+	g_return_if_fail (gtk_widget_is_toplevel (toplevel));
 
 	dialog = advanced_dialog_new (priv->advanced);
 	if (!dialog) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]