From 266cd02466e71c0b6fe2bdb613d8a7f12f1eaa8b Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 17 Sep 2002 20:42:36 +0000 Subject: Remove unused variable. * 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] svn path=/trunk/; revision=18096 --- shell/ChangeLog | 8 ++++++++ shell/e-shell-view.c | 9 +++++++++ shell/e-storage-set-view.c | 1 - 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 7218689dbc..6223947716 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,11 @@ +2002-09-17 Ettore Perazzoli + + * 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 [Fix #28451.] 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; -- cgit