Only call g_type_init() on older glibs.
Add a missing #include (that presumably used to get accidentally
pulled in by something else).
Use -DGDK_VERSION_MIN_REQUIRED to avoid deprecation warnings on
GtkTable.
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
+ GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0"
+
PKG_CHECK_MODULES(GNOMEKEYRING, gnome-keyring-1)
AC_SUBST(GNOMEKEYRING_CFLAGS)
AC_SUBST(GNOMEKEYRING_LIBS)
if (argc != 3)
FAIL ("args", "usage: %s <conf path> <tmp dir>", argv[0]);
+#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
+#endif
if (!nm_utils_init (&error))
FAIL ("nm-utils-init", "failed to initialize libnm-util: %s", error->message);
gboolean tapdev = FALSE;
char **iter;
+#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
+#endif
connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &err);
if (!connection) {
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
+#include <locale.h>
#include <NetworkManager.h>
#include <NetworkManagerVPN.h>
{NULL}
};
+#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
+#endif
/* locale will be set according to environment LC_* variables */
setlocale (LC_ALL, "");