[epiphany/overview: 17/31] ephy-window: cleanup the ui before showing the overview
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview: 17/31] ephy-window: cleanup the ui before showing the overview
- Date: Sat, 4 Aug 2012 21:16:09 +0000 (UTC)
commit 0be5a1034ad400a4d96bda0fc4ffef9eb772e603
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed May 9 19:17:34 2012 +0300
ephy-window: cleanup the ui before showing the overview
A few UI items are not needed when the window is displaying the overview,
clean them up.
src/ephy-window.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 54d29dd..4068a07 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -4095,10 +4095,30 @@ ephy_window_get_overview_mode (EphyWindow *window)
}
static void
+ephy_window_prepare_for_overview (EphyWindow *window)
+{
+ GtkAction *action;
+
+ gtk_window_set_title (GTK_WINDOW (window), _(("Web overview")));
+ ephy_window_set_location (window, "");
+ _ephy_window_set_security_state (window, FALSE, STOCK_LOCK_INSECURE);
+ _ephy_window_action_set_favicon (window, NULL);
+ _ephy_window_set_navigation_flags (window, 0);
+
+ /* Update sensitivity of actions */
+
+ action = gtk_action_group_get_action (window->priv->toolbar_action_group,
+ "ViewCombinedStopReload");
+ ephy_combined_stop_reload_action_set_loading (EPHY_COMBINED_STOP_RELOAD_ACTION (action),
+ FALSE);
+}
+
+static void
ephy_window_toggle_overview (EphyWindow *window, gboolean overview_mode)
{
if (overview_mode) {
ephy_window_disconnect_active_embed (window);
+ ephy_window_prepare_for_overview (window);
} else {
ephy_window_connect_active_embed (window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]