X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Ftests%2Fgapplication-example-cmdline2.c;h=dc25e9540ef3f3f007b3aeab72e77ff65e5a5b0e;hb=2a53b4d0e2c98a14aedf31e38f0ad1fb2e8fe26f;hp=ed8ddcdede471f202316887c3371c32d2d63035c;hpb=631d0c3534661e549f7df18fbb9832bdf19c5eaf;p=platform%2Fupstream%2Fglib.git diff --git a/gio/tests/gapplication-example-cmdline2.c b/gio/tests/gapplication-example-cmdline2.c index ed8ddcd..dc25e95 100644 --- a/gio/tests/gapplication-example-cmdline2.c +++ b/gio/tests/gapplication-example-cmdline2.c @@ -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,