diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-02-25 01:43:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-02-25 01:43:48 +0800 |
commit | 881bfd24e673370efefc8f5ceb3cec3afa9e44bc (patch) | |
tree | 49ade73b432ced4cc693e48ab9710999dc622286 /src/window-commands.c | |
parent | cb176ab1f40f443c4051fb430c8b6ccb79290f67 (diff) | |
download | gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.tar gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.tar.gz gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.tar.bz2 gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.tar.lz gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.tar.xz gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.tar.zst gsoc2013-epiphany-881bfd24e673370efefc8f5ceb3cec3afa9e44bc.zip |
Make EphyTab inherit from GtkBin, and contain the EphyEmbed as its child.
2004-02-24 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-nautilus-view.c: (gnv_embed_new_window_cb):
* src/ephy-notebook.c: (ephy_notebook_class_init),
(tab_label_size_request_cb), (ephy_notebook_move_tab), (move_tab),
(motion_notify_cb), (move_tab_to_another_notebook),
(button_release_cb), (ephy_notebook_switch_page_cb),
(ephy_notebook_init), (close_button_clicked_cb), (build_tab_label),
(ephy_notebook_insert_tab), (smart_tab_switching_on_closure),
(ephy_notebook_remove_tab):
* src/ephy-notebook.h:
* src/ephy-session.c: (tab_added_cb), (tab_removed_cb):
* src/ephy-shell.c: (ephy_shell_new_tab):
* src/ephy-tab.c: (ephy_tab_get_type), (ephy_tab_size_allocate),
(ephy_tab_parent_set), (ephy_tab_class_init), (ephy_tab_finalize),
(ephy_tab_new), (ephy_tab_get_embed), (ephy_tab_for_embed),
(ephy_tab_new_window_cb), (let_me_resize_hack),
(ephy_tab_visibility_cb), (ephy_tab_size_to_cb),
(ephy_tab_dom_mouse_click_cb), (ephy_tab_init),
(ephy_tab_update_navigation_flags), (ephy_tab_set_title):
* src/ephy-tab.h:
* src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb),
(tabs_reordered_cb), (ephy_tabs_menu_set_window),
(ephy_tabs_menu_update):
* src/ephy-window.c: (tab_added_cb), (tab_removed_cb),
(tab_detached_cb), (tabs_reordered_cb), (tab_delete_cb),
(setup_notebook), (ephy_window_add_tab), (ephy_window_jump_to_tab),
(real_get_active_tab), (ephy_window_remove_tab),
(ephy_window_get_active_tab), (ephy_window_get_active_embed),
(ephy_window_get_tabs):
* src/ephy-window.h:
* src/window-commands.c: (window_cmd_tabs_move_left),
(window_cmd_tabs_move_right), (window_cmd_tabs_detach):
Make EphyTab inherit from GtkBin, and contain the EphyEmbed as its child.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index dd952d474..5a39dee4e 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -1058,7 +1058,8 @@ window_cmd_tabs_move_left (GtkAction *action, GtkWidget *child; child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page); - ephy_notebook_move_page (EPHY_NOTEBOOK (notebook), NULL, child, page - 1); + ephy_notebook_move_tab (EPHY_NOTEBOOK (notebook), NULL, + EPHY_TAB (child), page - 1); } } @@ -1078,7 +1079,8 @@ void window_cmd_tabs_move_right (GtkAction *action, GtkWidget *child; child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page); - ephy_notebook_move_page (EPHY_NOTEBOOK (notebook), NULL, child, page + 1); + ephy_notebook_move_tab (EPHY_NOTEBOOK (notebook), NULL, + EPHY_TAB (child), page + 1); } } @@ -1087,19 +1089,18 @@ window_cmd_tabs_detach (GtkAction *action, EphyWindow *window) { EphyTab *tab; - GtkWidget *src_page, *nb; + GtkWidget *nb; EphyWindow *new_win; nb = ephy_window_get_notebook (window); if (gtk_notebook_get_n_pages (GTK_NOTEBOOK (nb)) <= 1) return; tab = ephy_window_get_active_tab (window); - src_page = GTK_WIDGET (ephy_tab_get_embed (tab)); + new_win = ephy_window_new (); - ephy_notebook_move_page (EPHY_NOTEBOOK (ephy_window_get_notebook (window)), + ephy_notebook_move_tab (EPHY_NOTEBOOK (ephy_window_get_notebook (window)), EPHY_NOTEBOOK (ephy_window_get_notebook (new_win)), - src_page, 0); - ephy_tab_set_window (tab, new_win); + tab, 0); gtk_widget_show (GTK_WIDGET (new_win)); } |