aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-06 17:47:55 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-06 17:47:55 +0800
commit179e6f06b178cba0aac5d8260452a03deb09146c (patch)
treecb3e75e918338fbf93e065a1802c620ea96c85dd /src
parent732bcf4bf907ae01ecb2c041d13d3ba0ec4b07bc (diff)
downloadgsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.tar
gsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.tar.gz
gsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.tar.bz2
gsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.tar.lz
gsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.tar.xz
gsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.tar.zst
gsoc2013-epiphany-179e6f06b178cba0aac5d8260452a03deb09146c.zip
Correct insertion order of new tabs.
2003-08-06 Christian Persch <chpe@cvs.gnome.org> * src/ephy-nodebook.c: (notebook_drag_data_received_cb): * src/ephy-shell.c: (ephy_shell_new_tab): Correct insertion order of new tabs.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c6
-rw-r--r--src/ephy-shell.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 53265ecb6..44284559d 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2002 Christophe Fergeau
+ * Copyright (C) 2003 Christian Persch
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +15,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
*/
#ifdef HAVE_CONFIG_H
@@ -673,7 +676,8 @@ notebook_drag_data_received_cb (GtkWidget* widget, GdkDragContext *context,
tab, url,
EPHY_NEW_TAB_OPEN_PAGE |
EPHY_NEW_TAB_IN_EXISTING_WINDOW |
- EPHY_NEW_TAB_APPEND_LAST);
+ (tab ? EPHY_NEW_TAB_APPEND_AFTER :
+ EPHY_NEW_TAB_APPEND_LAST));
}
g_free (url);
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index b97756da9..f056d66d5 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -432,9 +432,10 @@ ephy_shell_new_tab (EphyShell *shell,
previous_embed = ephy_tab_get_embed (previous_tab);
}
- grouped = (flags & EPHY_NEW_TAB_OPEN_PAGE ||
- flags & EPHY_NEW_TAB_APPEND_GROUPED ||
- flags & EPHY_NEW_TAB_CLONE_PAGE);
+ grouped = ((flags & EPHY_NEW_TAB_OPEN_PAGE ||
+ flags & EPHY_NEW_TAB_APPEND_GROUPED ||
+ flags & EPHY_NEW_TAB_CLONE_PAGE)) &&
+ !(flags & EPHY_NEW_TAB_APPEND_LAST);
if ((flags & EPHY_NEW_TAB_APPEND_AFTER) && previous_embed != NULL)
{