diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 8 | ||||
-rw-r--r-- | shell/e-shell-view.c | 9 | ||||
-rw-r--r-- | shell/e-storage-set-view.c | 1 |
3 files changed, 17 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 7218689dbc..6223947716 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,5 +1,13 @@ 2002-09-17 Ettore Perazzoli <ettore@ximian.com> + * e-storage-set-view.c (sort_idle_callback): Remove unused + variable. + + * e-shell-view.c (shell_line_status_changed_cb): Make Send/Receive + insensitive when in offline mode. [#27855] + +2002-09-17 Ettore Perazzoli <ettore@ximian.com> + [Fix #28451.] * e-storage-set-view.c: New member sort_idle_id in diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 51b695989c..1e5d04436c 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1587,6 +1587,15 @@ shell_line_status_changed_cb (EShell *shell, shell_view = E_SHELL_VIEW (data); update_offline_toggle_status (shell_view); + + if (new_status == E_SHELL_LINE_STATUS_OFFLINE) + bonobo_ui_component_set_prop (shell_view->priv->ui_component, + "/commands/SendReceive", + "sensitive", "0", NULL); + else + bonobo_ui_component_set_prop (shell_view->priv->ui_component, + "/commands/SendReceive", + "sensitive", "1", NULL); } static int diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index a0c9b1a80a..a00d458e53 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -246,7 +246,6 @@ sort_idle_callback (void *data) { EStorageSetView *storage_set_view; EStorageSetViewPrivate *priv; - static int i; storage_set_view = E_STORAGE_SET_VIEW (data); priv = storage_set_view->priv; |