From e35f33a5921cd61c79f8f50f2e91fcedbb465af1 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sat, 23 Jun 2001 09:43:29 +0000 Subject: Remove some useless `#if 0'ed code. svn path=/trunk/; revision=10442 --- shell/ChangeLog | 4 ++++ shell/e-shell-view.c | 68 ---------------------------------------------------- 2 files changed, 4 insertions(+), 68 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index eccd3cf70d..2a9d3ce796 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,7 @@ +2001-06-23 Ettore Perazzoli + + * e-shell-view.c: Get rid of some `#if 0'ed code. + 2001-06-23 Ettore Perazzoli * e-shell-view.c (corba_interface_set_message_cb): Replaced with diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index cdff06a444..e929c122ef 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1009,74 +1009,6 @@ init (EShellView *shell_view) shell_view->priv = priv; } - -#if 0 -/* Progress bar handling. */ - -#define PROGRESS_BAR_TIMEOUT 80 - -static int -progress_bar_timeout_cb (void *data) -{ - EShellView *shell_view; - EShellViewPrivate *priv; - GtkWidget *progress_bar; - - shell_view = E_SHELL_VIEW (data); - priv = shell_view->priv; - progress_bar = priv->progress_bar; - - priv->progress_bar_value = ! priv->progress_bar_value; - gtk_progress_set_value (GTK_PROGRESS (progress_bar), priv->progress_bar_value); - - return TRUE; -} - -static void -start_progress_bar (EShellView *shell_view) -{ - EShellViewPrivate *priv; - GtkProgress *progress; - - priv = shell_view->priv; - - progress = GTK_PROGRESS (priv->progress_bar); - - if (!GTK_WIDGET_REALIZED (progress)) - return; - - if (priv->progress_bar_timeout_id != 0) - return; - - priv->progress_bar_timeout_id = gtk_timeout_add (PROGRESS_BAR_TIMEOUT, progress_bar_timeout_cb, shell_view); - - gtk_progress_set_activity_mode (progress, TRUE); - gtk_progress_set_value (progress, priv->progress_bar_value); -} - -static void -stop_progress_bar (EShellView *shell_view) -{ - EShellViewPrivate *priv; - GtkWidget *progress_bar; - - priv = shell_view->priv; - progress_bar = priv->progress_bar; - - if (priv->progress_bar_timeout_id != 0) { - gtk_timeout_remove (priv->progress_bar_timeout_id); - priv->progress_bar_timeout_id = 0; - } - - if (!GTK_WIDGET_REALIZED (progress_bar)) - return; - - gtk_progress_set_activity_mode (GTK_PROGRESS (progress_bar), FALSE); - gtk_progress_set_value (GTK_PROGRESS (progress_bar), 0); -} - -#endif - /* EvolutionShellView interface callbacks. */ -- cgit v1.2.3