summaryrefslogtreecommitdiff
blob: 29ee660c51e917e5045d572e08a7e46849343eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 |