aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-28 07:41:52 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-28 07:41:52 +0800
commitdc615e9fff14aef2891db0bbc30af8a6ceccc9c5 (patch)
tree1865a7cc222a7f935e67103ec34765caca808e71 /src
parent580daffd3de3bb9585b2caeb2a358f8b6e1da675 (diff)
downloadgsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.tar
gsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.tar.gz
gsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.tar.bz2
gsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.tar.lz
gsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.tar.xz
gsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.tar.zst
gsoc2013-epiphany-dc615e9fff14aef2891db0bbc30af8a6ceccc9c5.zip
Revert the earlier patch: don't emit tabs-reordered when the tab-added
2004-11-28 Christian Persch <chpe@cvs.gnome.org> * src/ephy-notebook.c: (ephy_notebook_add_tab): Revert the earlier patch: don't emit tabs-reordered when the tab-added signal handler reordered the tab, since ephy_notebook_move_tab does it already.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index ed8ea73d3..517631f02 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -926,7 +926,6 @@ ephy_notebook_add_tab (EphyNotebook *nb,
gboolean jump_to)
{
GtkWidget *label;
- int new_position;
g_return_if_fail (EPHY_IS_TAB (tab));
@@ -958,20 +957,11 @@ ephy_notebook_add_tab (EphyNotebook *nb,
g_signal_emit (G_OBJECT (nb), signals[TAB_ADDED], 0, tab);
/* The signal handler may have reordered the tabs */
- new_position = gtk_notebook_page_num (GTK_NOTEBOOK (nb), GTK_WIDGET (tab));
-
- /* if the signal handler reordered the tabs, emit "tabs-reordered",
- * so that the tabs menu updates itself.
- */
- if (position != new_position)
- {
- g_signal_emit (nb, signals[TABS_REORDERED], 0);
- }
+ position = gtk_notebook_page_num (GTK_NOTEBOOK (nb), GTK_WIDGET (tab));
if (jump_to)
{
- gtk_notebook_set_current_page (GTK_NOTEBOOK (nb),
- new_position);
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (nb), position);
g_object_set_data (G_OBJECT (tab), "jump_to",
GINT_TO_POINTER (jump_to));