aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-main.c
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-30 01:55:28 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-30 01:55:28 +0800
commit4c444c0f7693b9a0f3058729bea04832b66d6214 (patch)
treed91f6fafd638bd19c9421fd1eaf56dde5db12741 /src/ephy-main.c
parent7628d25419c00d95da3e104ad6f132f4607b78c0 (diff)
downloadgsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.tar
gsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.tar.gz
gsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.tar.bz2
gsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.tar.lz
gsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.tar.xz
gsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.tar.zst
gsoc2013-epiphany-4c444c0f7693b9a0f3058729bea04832b66d6214.zip
Merge EphyApplication into Ephy(Embed)Shell
We want to use EphyApplication from embed/ too, so instead of following the EphyEmbedShell/EphyShell pattern just fold the code into the Shell itself. This makes sense since both classes have basically the same function, and we can easily leave the non-embed code in EphyShell and move to EphyEmbedShell the bits we want to be global. The better name would be EphyCoreApplication/EphyApplication for the resulting object, but we can do this later.
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r--src/ephy-main.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 323389467..2b5f10261 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -22,7 +22,6 @@
#include "config.h"
-#include "ephy-application.h"
#include "ephy-settings.h"
#include "ephy-shell.h"
#include "ephy-file-helpers.h"
@@ -239,8 +238,7 @@ main (int argc,
GError *error = NULL;
guint32 user_time;
gboolean arbitrary_url;
- EphyApplication *application;
- EphyApplicationStartupContext *ctx;
+ EphyShellStartupContext *ctx;
EphyStartupFlags startup_flags;
int status;
@@ -417,20 +415,18 @@ main (int argc,
g_setenv ("XLIB_SKIP_ARGB_VISUALS", "1", FALSE);
/* Now create the shell */
- application = ephy_application_new (private_instance);
- _ephy_shell_create_instance (application);
- g_object_unref (application);
+ _ephy_shell_create_instance (private_instance);
startup_flags = get_startup_flags ();
- ctx = ephy_application_startup_context_new (startup_flags,
- bookmarks_file,
- session_filename,
- bookmark_url,
- arguments,
- user_time);
+ ctx = ephy_shell_startup_context_new (startup_flags,
+ bookmarks_file,
+ session_filename,
+ bookmark_url,
+ arguments,
+ user_time);
g_strfreev (arguments);
- ephy_application_set_startup_context (application, ctx);
- status = g_application_run (G_APPLICATION (application), argc, argv);
+ ephy_shell_set_startup_context (ephy_shell, ctx);
+ status = g_application_run (G_APPLICATION (ephy_shell), argc, argv);
/* Shutdown */
g_object_unref (ephy_shell);