diff options
author | Xan Lopez <xan@igalia.com> | 2012-09-02 07:45:24 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-09-02 07:48:39 +0800 |
commit | 4f81935681945df5883f59a218bfb7ea3b29a1d8 (patch) | |
tree | 74387d9226906f1472b97450803f6e4d71a3ce9a /src/ephy-shell.c | |
parent | 101f994eaf982cf39ab2f66aa72f4725e38732f1 (diff) | |
download | gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.tar gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.tar.gz gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.tar.bz2 gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.tar.lz gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.tar.xz gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.tar.zst gsoc2013-epiphany-4f81935681945df5883f59a218bfb7ea3b29a1d8.zip |
ephy-session: do not restore tool windows
These windows will lose relevance and disappear gradually, and it does
not really make that much sense to restore them with the session now
that this happens automatically.
https://bugzilla.gnome.org/show_bug.cgi?id=682966
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 56c524dd3..56e0ed20b 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -969,22 +969,6 @@ ephy_shell_get_net_monitor (EphyShell *shell) return G_OBJECT (priv->network_monitor); } -static void -toolwindow_show_cb (GtkWidget *widget, EphyShell *es) -{ - LOG ("Ref shell for %s", G_OBJECT_TYPE_NAME (widget)); - - ephy_session_add_window (ephy_shell->priv->session, GTK_WINDOW (widget)); -} - -static void -toolwindow_hide_cb (GtkWidget *widget, EphyShell *es) -{ - LOG ("Unref shell for %s", G_OBJECT_TYPE_NAME (widget)); - - ephy_session_remove_window (ephy_shell->priv->session, GTK_WINDOW (widget)); -} - /** * ephy_shell_get_bookmarks_editor: * @@ -999,11 +983,6 @@ ephy_shell_get_bookmarks_editor (EphyShell *shell) bookmarks = ephy_shell_get_bookmarks (ephy_shell); g_assert (bookmarks != NULL); shell->priv->bme = ephy_bookmarks_editor_new (bookmarks); - - g_signal_connect (shell->priv->bme, "show", - G_CALLBACK (toolwindow_show_cb), shell); - g_signal_connect (shell->priv->bme, "hide", - G_CALLBACK (toolwindow_hide_cb), shell); } return shell->priv->bme; @@ -1023,11 +1002,6 @@ ephy_shell_get_history_window (EphyShell *shell) service = EPHY_HISTORY_SERVICE (ephy_embed_shell_get_global_history_service (embed_shell)); shell->priv->history_window = ephy_history_window_new (service); - - g_signal_connect (shell->priv->history_window, "show", - G_CALLBACK (toolwindow_show_cb), shell); - g_signal_connect (shell->priv->history_window, "hide", - G_CALLBACK (toolwindow_hide_cb), shell); } return shell->priv->history_window; |