[kdbus] KDBUS_ITEM_PAYLOAD_OFF items are (once again) relative to msg header
[platform/upstream/glib.git] / gio / tests / gapplication-example-cmdline2.c
index ed8ddcd..dc25e95 100644 (file)
@@ -55,6 +55,7 @@ test_local_cmdline (GApplication   *application,
 typedef GApplication TestApplication;
 typedef GApplicationClass TestApplicationClass;
 
+static GType test_application_get_type (void);
 G_DEFINE_TYPE (TestApplication, test_application, G_TYPE_APPLICATION)
 
 static void
@@ -75,14 +76,12 @@ test_application_class_init (TestApplicationClass *class)
   G_APPLICATION_CLASS (class)->local_command_line = test_local_cmdline;
 }
 
-GApplication *
+static GApplication *
 test_application_new (const gchar       *application_id,
                       GApplicationFlags  flags)
 {
   g_return_val_if_fail (g_application_id_is_valid (application_id), NULL);
 
-  g_type_init ();
-
   return g_object_new (test_application_get_type (),
                        "application-id", application_id,
                        "flags", flags,