summary refs log tree commit diff
path: root/clients/nm-online.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/nm-online.c')
-rw-r--r--clients/nm-online.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/clients/nm-online.c b/clients/nm-online.c
index 5a818bae..c02f9cc9 100644
--- a/clients/nm-online.c
+++ b/clients/nm-online.c
@@ -38,10 +38,10 @@
 #include <getopt.h>
 #include <locale.h>
 
-#include <glib/gi18n.h>
-
 #include <NetworkManager.h>
 
+#include "nm-default.h"
+
 #define PROGRESS_STEPS 15
 #define WAIT_STARTUP_TAG "wait-startup"
 
@@ -188,9 +188,7 @@ main (int argc, char *argv[])
 	}
 	remaining_ms = t_secs * 1000;
 
-#if !GLIB_CHECK_VERSION (2, 35, 0)
-	g_type_init ();
-#endif
+	nm_g_type_init ();
 
 	client = nm_client_new (NULL, &error);
 	if (!client) {