From: Matthias Clasen Date: Sat, 23 Oct 2010 10:01:51 +0000 (+0200) Subject: Move a confusing comment to the right place X-Git-Tag: 2.27.1~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c735b05f7a00c728e23a366128ffb56fee58b4e;p=platform%2Fupstream%2Fglib.git Move a confusing comment to the right place --- diff --git a/gio/gapplication.c b/gio/gapplication.c index 6522aaa..f79302f 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -884,12 +884,6 @@ g_application_register (GApplication *application, if (!application->priv->is_registered) { gboolean is_remote; - gboolean try; - - /* don't try to be the primary instance if - * G_APPLICATION_IS_LAUNCHER was specified. - */ - try = !(application->priv->flags & G_APPLICATION_IS_LAUNCHER); application->priv->impl = g_application_impl_register (application, application->priv->id, diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c index e41f01e..893c96b 100644 --- a/gio/gapplicationimpl-dbus.c +++ b/gio/gapplicationimpl-dbus.c @@ -271,6 +271,9 @@ g_application_impl_register (GApplication *application, impl->object_path = application_path_from_appid (appid); + /* don't try to be the primary instance if + * G_APPLICATION_IS_LAUNCHER was specified. + */ if (flags & G_APPLICATION_IS_LAUNCHER) { impl->object_id = 0;