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-session.c | |
parent | 3d7aff9704dee40cf5bbdbf11687f382ffe05072 (diff) | |
download | gsoc2013-epiphany-459706710945ea711d80311308916d77c3cb0cf3.tar.gz 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-session.c')
-rw-r--r-- | src/ephy-session.c | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index 10b3e5d9c..3b8ccaf7f 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -431,18 +431,20 @@ net_stop_cb (EphyEmbed *embed, } static void -tab_added_cb (GtkWidget *notebook, - EphyTab *tab, - EphySession *session) +notebook_page_added_cb (GtkWidget *notebook, + EphyTab *tab, + guint position, + EphySession *session) { g_signal_connect (ephy_tab_get_embed (tab), "net-stop", G_CALLBACK (net_stop_cb), session); } static void -tab_removed_cb (GtkWidget *notebook, - EphyTab *tab, - EphySession *session) +notebook_page_removed_cb (GtkWidget *notebook, + EphyTab *tab, + guint position, + EphySession *session) { ephy_session_save (session, SESSION_CRASHED); @@ -451,8 +453,10 @@ tab_removed_cb (GtkWidget *notebook, } static void -tabs_reordered_cb (GtkWidget *notebook, - EphySession *session) +notebook_page_reordered_cb (GtkWidget *notebook, + GtkWidget *tab, + guint position, + EphySession *session) { ephy_session_save (session, SESSION_CRASHED); } @@ -820,12 +824,12 @@ impl_attach_window (EphyExtension *extension, G_CALLBACK (window_focus_in_event_cb), session); notebook = ephy_window_get_notebook (window); - g_signal_connect (notebook, "tab-added", - G_CALLBACK (tab_added_cb), session); - g_signal_connect (notebook, "tab-removed", - G_CALLBACK (tab_removed_cb), session); - g_signal_connect (notebook, "tabs-reordered", - G_CALLBACK (tabs_reordered_cb), session); + g_signal_connect (notebook, "page-added", + G_CALLBACK (notebook_page_added_cb), session); + g_signal_connect (notebook, "page-removed", + G_CALLBACK (notebook_page_removed_cb), session); + g_signal_connect (notebook, "page-reordered", + G_CALLBACK (notebook_page_reordered_cb), session); /* Set unique identifier as role, so that on restore, the WM can * place the window on the right workspace |