diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-03-24 00:43:28 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-03-24 00:43:28 +0800 |
commit | 459706710945ea711d80311308916d77c3cb0cf3 (patch) | |
tree | 45963b81e1cba9dc51a6483dd156a166e90eded5 /src/ephy-tabs-menu.c | |
parent | 3d7aff9704dee40cf5bbdbf11687f382ffe05072 (diff) | |
download | gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar.gz gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar.bz2 gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar.lz gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar.xz gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar.zst gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.zip |
Port notebook DND to gtk+ 2.9.
2006-03-23 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
* data/ui/epiphany-ui.xml:
* src/ephy-lockdown.c: (update_window):
* src/ephy-notebook.c: (ephy_notebook_class_init),
(button_press_cb), (ephy_notebook_init),
(tab_label_weak_notify_cb), (build_tab_label):
* src/ephy-notebook.h:
* src/ephy-session.c: (notebook_page_added_cb),
(notebook_page_removed_cb), (notebook_page_reordered_cb),
(impl_attach_window):
* src/ephy-tabs-menu.c: (notebook_page_added_cb),
(notebook_page_removed_cb), (notebook_page_reordered_cb),
(ephy_tabs_menu_set_window):
* src/ephy-window.c: (update_tabs_menu_sensitivity),
(idle_tab_remove_cb), (notebook_page_added_cb),
(notebook_page_removed_cb), (notebook_page_reordered_cb),
(notebook_page_close_request_cb), (setup_notebook),
(ephy_window_remove_tab), (notebook_switch_page_cb):
* src/epiphany.defs:
* src/window-commands.c: (window_cmd_tabs_move_left),
(window_cmd_tabs_move_right):
Port notebook DND to gtk+ 2.9.
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r-- | src/ephy-tabs-menu.c | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c index 98a0cfeca..c79220719 100644 --- a/src/ephy-tabs-menu.c +++ b/src/ephy-tabs-menu.c @@ -130,9 +130,10 @@ sync_tab_title (EphyTab *tab, } static void -tab_added_cb (EphyNotebook *notebook, - EphyTab *tab, - EphyTabsMenu *menu) +notebook_page_added_cb (EphyNotebook *notebook, + EphyTab *tab, + guint position, + EphyTabsMenu *menu) { EphyTabsMenuPrivate *priv = menu->priv; GtkAction *action; @@ -176,9 +177,10 @@ tab_added_cb (EphyNotebook *notebook, } static void -tab_removed_cb (EphyNotebook *notebook, - EphyTab *tab, - EphyTabsMenu *menu) +notebook_page_removed_cb (EphyNotebook *notebook, + EphyTab *tab, + guint position, + EphyTabsMenu *menu) { EphyTabsMenuPrivate *priv = menu->priv; GtkAction *action; @@ -201,8 +203,10 @@ tab_removed_cb (EphyNotebook *notebook, } static void -tabs_reordered_cb (EphyNotebook *notebook, - EphyTabsMenu *menu) +notebook_page_reordered_cb (EphyNotebook *notebook, + EphyTab *tab, + guint position, + EphyTabsMenu *menu) { LOG ("tabs_reordered_cb"); @@ -278,12 +282,12 @@ ephy_tabs_menu_set_window (EphyTabsMenu *menu, G_CALLBACK (sync_active_tab), menu); notebook = ephy_window_get_notebook (window); - g_signal_connect_object (notebook, "tab_added", - G_CALLBACK (tab_added_cb), menu, 0); - g_signal_connect_object (notebook, "tab_removed", - G_CALLBACK (tab_removed_cb), menu, 0); - g_signal_connect_object (notebook, "tabs_reordered", - G_CALLBACK (tabs_reordered_cb), menu, 0); + g_signal_connect_object (notebook, "page-added", + G_CALLBACK (notebook_page_added_cb), menu, 0); + g_signal_connect_object (notebook, "page-removed", + G_CALLBACK (notebook_page_removed_cb), menu, 0); + g_signal_connect_object (notebook, "page-reordered", + G_CALLBACK (notebook_page_reordered_cb), menu, 0); } static void |