aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-07-31 03:03:49 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-07-31 03:03:49 +0800
commit0e426261da73ee87fe8563859333c3553f753ffd (patch)
tree5aa99640378c86b90be2d1b7f662b41d9ff133e4
parent140a336a5aad4e6f7b679cdeff73c12a71611dcd (diff)
downloadgsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.tar
gsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.tar.gz
gsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.tar.bz2
gsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.tar.lz
gsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.tar.xz
gsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.tar.zst
gsoc2013-epiphany-0e426261da73ee87fe8563859333c3553f753ffd.zip
Always open bookmarks in new window/tab according to pref on activate.
2003-07-30 David Bordoley <bordoley@msu.edu> * src/ephy-history-window.c: (ephy_history_window_node_activated_cb): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_node_activated_cb): Always open bookmarks in new window/tab according to pref on activate.
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c15
-rw-r--r--src/ephy-history-window.c14
3 files changed, 13 insertions, 23 deletions
diff --git a/ChangeLog b/ChangeLog
index dd8d649ad..44e6771d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-07-30 David Bordoley <bordoley@msu.edu>
+
+ * src/ephy-history-window.c: (ephy_history_window_node_activated_cb):
+ * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_node_activated_cb):
+
+ Always open bookmarks in new window/tab according to pref on activate.
+
2003-07-30 Marco Pesenti Gritti <marco@it.gnome.org>
* configure.in:
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 2556fdd99..4fd221246 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -751,18 +751,9 @@ ephy_bookmarks_editor_node_activated_cb (GtkWidget *view,
g_return_if_fail (location != NULL);
window = EPHY_WINDOW (get_target_window (editor));
- if (window != NULL)
- {
- ephy_window_load_url (EPHY_WINDOW (window), location);
- gtk_window_present (GTK_WINDOW (window));
- }
- else
- {
- /* We have to create a browser window */
- ephy_shell_new_tab (ephy_shell, NULL, NULL, location,
- EPHY_NEW_TAB_OPEN_PAGE |
- EPHY_NEW_TAB_IN_NEW_WINDOW);
- }
+
+ ephy_shell_new_tab (ephy_shell, window, NULL, location,
+ EPHY_NEW_TAB_OPEN_PAGE);
}
static void
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 6ef64dea8..03cc94467 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -608,17 +608,9 @@ ephy_history_window_node_activated_cb (GtkWidget *view,
g_return_if_fail (location != NULL);
window = EPHY_WINDOW (get_target_window (editor));
- if (window != NULL)
- {
- ephy_window_load_url (EPHY_WINDOW (window), location);
- gtk_window_present (GTK_WINDOW (window));
- }
- else
- {
- /* We have to create a browser window */
- ephy_shell_new_tab (ephy_shell, NULL, NULL, location,
- EPHY_NEW_TAB_IN_NEW_WINDOW);
- }
+
+ ephy_shell_new_tab (ephy_shell, NULL, NULL, location,
+ EPHY_NEW_TAB_OPEN_PAGE);
}
static void