summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/epiphany/files/epiphany-2.16.0-background-tab.patch')
-rw-r--r--www-client/epiphany/files/epiphany-2.16.0-background-tab.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/www-client/epiphany/files/epiphany-2.16.0-background-tab.patch b/www-client/epiphany/files/epiphany-2.16.0-background-tab.patch
new file mode 100644
index 0000000..29ee660
--- /dev/null
+++ b/www-client/epiphany/files/epiphany-2.16.0-background-tab.patch
@@ -0,0 +1,45 @@
+diff --exclude-from=/home/dang/.diffrc -u -ruN epiphany-2.16.0.orig/src/ephy-main.c epiphany-2.16.0/src/ephy-main.c
+--- epiphany-2.16.0.orig/src/ephy-main.c 2006-07-23 12:53:18.000000000 -0400
++++ epiphany-2.16.0/src/ephy-main.c 2006-10-05 18:36:26.000000000 -0400
+@@ -58,6 +58,7 @@
+ #define STARTUP_ERROR_QUARK (startup_error_quark)
+
+ static gboolean open_in_new_tab = FALSE;
++static gboolean open_in_background_tab = FALSE;
+ static gboolean open_in_new_window = FALSE;
+ static gboolean open_as_bookmarks_editor = FALSE;
+ //static gboolean reload_plugins = FALSE;
+@@ -76,6 +77,8 @@
+ {
+ { "new-tab", 'n', 0, G_OPTION_ARG_NONE, &open_in_new_tab,
+ N_("Open a new tab in an existing browser window"), NULL },
++ { "new-background-tab", 0, 0, G_OPTION_ARG_NONE, &open_in_background_tab,
++ N_("Open a new tab in the background of an existing browser window"), NULL },
+ { "new-window", 0, 0, G_OPTION_ARG_NONE, &open_in_new_window,
+ N_("Open a new browser window"), NULL },
+ { "bookmarks-editor", 'b', 0, G_OPTION_ARG_NONE, &open_as_bookmarks_editor,
+@@ -254,6 +257,10 @@
+ {
+ g_string_append (options, "new-window,");
+ }
++ if (open_in_background_tab)
++ {
++ g_string_append (options, "new-background-tab,");
++ }
+ if (open_in_new_tab)
+ {
+ g_string_append (options, "new-tab,");
+diff --exclude-from=/home/dang/.diffrc -u -ruN epiphany-2.16.0.orig/src/ephy-session.c epiphany-2.16.0/src/ephy-session.c
+--- epiphany-2.16.0.orig/src/ephy-session.c 2006-06-16 10:11:22.000000000 -0400
++++ epiphany-2.16.0/src/ephy-session.c 2006-10-05 18:25:04.000000000 -0400
+@@ -670,6 +670,10 @@
+ window = NULL;
+ flags |= EPHY_NEW_TAB_IN_NEW_WINDOW;
+ }
++ else if (options != NULL && strstr (options, "new-background-tab") != NULL)
++ {
++ flags |= EPHY_NEW_TAB_IN_EXISTING_WINDOW;
++ }
+ else if (options != NULL && strstr (options, "new-tab") != NULL)
+ {
+ flags |= EPHY_NEW_TAB_IN_EXISTING_WINDOW |