aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-05-29 20:16:50 +0800
committerChristian Persch <chpe@src.gnome.org>2003-05-29 20:16:50 +0800
commit2c31318d613005eb170d7a06292c2b18a054adb0 (patch)
tree8761fa378c9282f253e49dac116bed295b5ff6c4 /src/ephy-window.c
parent3893baeacbcdc24efbd7aca4e67508ddba2a4a5c (diff)
downloadgsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.tar
gsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.tar.gz
gsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.tar.bz2
gsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.tar.lz
gsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.tar.xz
gsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.tar.zst
gsoc2013-epiphany-2c31318d613005eb170d7a06292c2b18a054adb0.zip
Get rid of MAKE_GET_TYPE; make building the tabs menu a little faster.
2003-05-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tabs-menu.c: (ephy_tabs_menu_get_type), (ephy_tabs_menu_verb_cb), (ephy_tabs_menu_rebuild): Get rid of MAKE_GET_TYPE; make building the tabs menu a little faster. * src/ephy-window.c: (update_tabs_menu_sensitivity), (ephy_window_get_tabs): Remove one unnecessary call to ephy_tabs_update_menu ().
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 69c6b3a42..20f45a8d5 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -531,8 +531,6 @@ update_tabs_menu_sensitivity (EphyWindow *window)
g_object_set (action, "sensitive", move_right, NULL);
action = egg_action_group_get_action (action_group, "TabsDetach");
g_object_set (action, "sensitive", detach, NULL);
-
- ephy_tabs_menu_update (window->priv->tabs_menu);
}
static void
@@ -1369,11 +1367,11 @@ ephy_window_get_tabs (EphyWindow *window)
tab = g_object_get_data (G_OBJECT (w), "EphyTab");
g_return_val_if_fail (IS_EPHY_TAB (G_OBJECT (tab)), NULL);
- tabs = g_list_append (tabs, tab);
+ tabs = g_list_prepend (tabs, tab);
i++;
}
- return tabs;
+ return g_list_reverse (tabs);
}
static void