aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-05-17 20:08:43 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-17 20:08:43 +0800
commite5d335763657c0ebf4d464f4bc1d81542220141b (patch)
tree33f5e2e75e07e710657e142c3c881ec4e5d24d37 /src/window-commands.c
parent452a329409d547296f6d79fa902ddba45a8286c8 (diff)
downloadgsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.tar
gsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.tar.gz
gsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.tar.bz2
gsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.tar.lz
gsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.tar.xz
gsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.tar.zst
gsoc2013-epiphany-e5d335763657c0ebf4d464f4bc1d81542220141b.zip
Marco Pesenti Gritti <marco@it.gnome.org>
2003-05-17 David Bordoley <bordoley@msu.edu> Marco Pesenti Gritti <marco@it.gnome.org> * data/ui/epiphany-ui.xml.in: * src/Makefile.am: * src/bookmarks/ephy-bookmark-action.c: (create_tool_item): * src/ephy-notebook.c: (ephy_notebook_class_init), (ephy_notebook_move_page), (move_tab), (notebook_drag_data_received_cb), (ephy_notebook_init), (ephy_notebook_set_page_status), (update_tabs_visibility), (ephy_notebook_insert_page), (ephy_notebook_remove_page), (ephy_notebook_set_page_title): * src/ephy-notebook.h: * src/ephy-tabs-menu.c: (ephy_tabs_menu_class_init), (ephy_tabs_menu_init), (ephy_tabs_menu_clean), (ephy_tabs_menu_finalize_impl), (ephy_tabs_menu_set_property), (ephy_tabs_menu_get_property), (ephy_tabs_menu_new), (ephy_tabs_menu_verb_cb), (ephy_tabs_menu_set_action_accelerator), (ephy_tabs_menu_rebuild), (ephy_tabs_menu_update): * src/ephy-tabs-menu.h: * src/ephy-window.c: (setup_window), (update_tabs_menu_sensitivity), (ephy_window_tabs_changed_cb), (setup_notebook), (ephy_window_init), (ephy_window_finalize), (ephy_window_update_control), (ephy_window_update_all_controls), (ephy_window_notebook_switch_page_cb): * src/ephy-window.h: * src/window-commands.c: (window_cmd_tabs_move_left), (window_cmd_tabs_move_right), (window_cmd_tabs_detach): Implement a list of tabs at the bottom of tabs menu. Add a changed signal to the notebook and use it to update list and sensitivity.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 727429106..d42dca547 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -846,10 +846,8 @@ window_cmd_tabs_move_left (EggAction *action,
GtkWidget *child;
child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page);
- gtk_notebook_reorder_child (GTK_NOTEBOOK (notebook), child, page - 1);
+ ephy_notebook_move_page (EPHY_NOTEBOOK (notebook), NULL, child, page - 1);
}
-
- ephy_window_update_control (window, TabsControl);
}
void window_cmd_tabs_move_right (EggAction *action,
@@ -868,10 +866,8 @@ void window_cmd_tabs_move_right (EggAction *action,
GtkWidget *child;
child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page);
- gtk_notebook_reorder_child (GTK_NOTEBOOK (notebook), child, page + 1);
+ ephy_notebook_move_page (EPHY_NOTEBOOK (notebook), NULL, child, page + 1);
}
-
- ephy_window_update_control (window, TabsControl);
}
void
@@ -882,7 +878,8 @@ window_cmd_tabs_detach (EggAction *action,
GtkWidget *src_page;
EphyWindow *new_win;
- if (g_list_length (ephy_window_get_tabs (window)) <= 1) {
+ if (g_list_length (ephy_window_get_tabs (window)) <= 1)
+ {
return;
}