aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-08-23 23:36:32 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-08-23 23:36:32 +0800
commitfd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e (patch)
treee97b9ea12c3007cee5933246893d18a63461ce3a /shell/e-shell-window-actions.c
parent036bb44de80f86a9fa5d92ce9e8848332f2a9cd2 (diff)
downloadgsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar
gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.gz
gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.bz2
gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.lz
gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.xz
gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.tar.zst
gsoc2013-evolution-fd6cd9e3a6dc06f9b8e44ec13ac881ebd6793e6e.zip
Progress update:
- Discard libnm-glib method of monitoring network connectivity. - Decided to make EShell a singleton GObject after all. Makes the design cleaner, despite having to pass a singleton instance around. - Make the switcher button style persistent. svn path=/branches/kill-bonobo/; revision=36043
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r--shell/e-shell-window-actions.c30
1 files changed, 23 insertions, 7 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index a176a202b5..bc1fcea27b 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -713,7 +713,10 @@ static void
action_new_window_cb (GtkAction *action,
EShellWindow *window)
{
- e_shell_create_window ();
+ EShell *shell;
+
+ shell = e_shell_window_get_shell (window);
+ e_shell_create_window (shell);
}
static void
@@ -784,14 +787,20 @@ static void
action_quit_cb (GtkAction *action,
EShellWindow *window)
{
- e_shell_quit ();
+ EShell *shell;
+
+ shell = e_shell_window_get_shell (window);
+ e_shell_quit (shell);
}
static void
action_send_receive_cb (GtkAction *action,
EShellWindow *window)
{
- e_shell_send_receive (GTK_WINDOW (window));
+ EShell *shell;
+
+ shell = e_shell_window_get_shell (window);
+ e_shell_send_receive (shell, GTK_WINDOW (window));
}
static void
@@ -812,7 +821,7 @@ action_show_sidebar_cb (GtkToggleAction *action,
GtkWidget *widget;
gboolean active;
- widget = window->priv->sidebar_notebook;
+ widget = window->priv->sidebar;
active = gtk_toggle_action_get_active (action);
g_object_set (widget, "visible", active, NULL);
}
@@ -930,14 +939,20 @@ static void
action_work_offline_cb (GtkAction *action,
EShellWindow *window)
{
- e_shell_go_offline ();
+ EShell *shell;
+
+ shell = e_shell_window_get_shell (window);
+ e_shell_set_line_status (shell, E_SHELL_LINE_STATUS_OFFLINE);
}
static void
action_work_online_cb (GtkAction *action,
EShellWindow *window)
{
- e_shell_go_online ();
+ EShell *shell;
+
+ shell = e_shell_window_get_shell (window);
+ e_shell_set_line_status (shell, E_SHELL_LINE_STATUS_ONLINE);
}
static GtkActionEntry shell_entries[] = {
@@ -1280,7 +1295,8 @@ e_shell_window_actions_init (EShellWindow *window)
G_N_ELEMENTS (shell_toggle_entries), window);
gtk_action_group_add_radio_actions (
action_group, shell_switcher_style_entries,
- G_N_ELEMENTS (shell_switcher_style_entries), -1,
+ G_N_ELEMENTS (shell_switcher_style_entries),
+ E_SIDEBAR_DEFAULT_TOOLBAR_STYLE,
G_CALLBACK (action_switcher_style_cb), window);
gtk_ui_manager_insert_action_group (manager, action_group, 0);