[epiphany] ephy-shell: Go to homepage when opening a new window
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-shell: Go to homepage when opening a new window
- Date: Mon, 17 Feb 2020 17:26:25 +0000 (UTC)
commit 17e3abea977085132154c733b21fbc48d974a7f3
Author: Yetizone <andreii lisita gmail com>
Date: Sat Feb 15 18:08:55 2020 +0200
ephy-shell: Go to homepage when opening a new window
Fixes https://gitlab.gnome.org/GNOME/epiphany/issues/1090
src/ephy-shell.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index e8776687f..95e4e5b94 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -125,7 +125,8 @@ ephy_shell_startup_continue (EphyShell *shell,
ephy_session_load (session, (const char *)ctx->session_filename,
ctx->user_time, NULL, NULL, NULL);
} else if (new_window_option) {
- static const char *default_uris[] = { "", NULL };
+ char *homepage_url = g_settings_get_string (EPHY_SETTINGS_MAIN, EPHY_PREFS_HOMEPAGE_URL);
+ const char *default_uris[] = { homepage_url, NULL };
const char **uris = NULL;
if (ctx->arguments)
@@ -136,6 +137,7 @@ ephy_shell_startup_continue (EphyShell *shell,
uris = default_uris;
ephy_shell_open_uris (shell, uris, ctx->startup_mode, ctx->user_time);
+ g_free (homepage_url);
} else if (active_window && !ctx->arguments) {
/* If the application already has an active window and the --new-window */
/* option was not passed, then we should just present it */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]