aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-application.c7
-rw-r--r--src/ephy-main.c8
2 files changed, 6 insertions, 9 deletions
diff --git a/src/ephy-application.c b/src/ephy-application.c
index c6c3a544a..a3235f8a6 100644
--- a/src/ephy-application.c
+++ b/src/ephy-application.c
@@ -402,9 +402,14 @@ ephy_application_finalize (GObject *object)
EphyApplication *
ephy_application_new (gboolean private_instance)
{
+ GApplicationFlags flags = G_APPLICATION_FLAGS_NONE;
+
+ if (private_instance)
+ flags |= G_APPLICATION_NON_UNIQUE;
+
return g_object_new (EPHY_TYPE_APPLICATION,
"application-id", "org.gnome.Epiphany",
- "flags", G_APPLICATION_FLAGS_NONE,
+ "flags", flags,
"private-instance", private_instance,
NULL);
}
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 2194e2869..323389467 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -421,14 +421,6 @@ main (int argc,
_ephy_shell_create_instance (application);
g_object_unref (application);
- if (private_instance) {
- GApplicationFlags flags;
-
- flags = g_application_get_flags (G_APPLICATION (application));
- flags |= G_APPLICATION_NON_UNIQUE;
-
- g_application_set_flags (G_APPLICATION (application), flags);
- }
startup_flags = get_startup_flags ();
ctx = ephy_application_startup_context_new (startup_flags,
bookmarks_file,