diff options
author | Iain Holmes <iain@helixcode.com> | 2000-10-19 01:53:52 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2000-10-19 01:53:52 +0800 |
commit | b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed (patch) | |
tree | 006ae26b4dd4d9435ceabc2a826e32353ceaf14c /shell/e-shell-view.c | |
parent | daaabd4d9793fe2751438125c052a0270c4844bb (diff) | |
download | gsoc2013-evolution-b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed.tar.gz gsoc2013-evolution-b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed.tar.zst gsoc2013-evolution-b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed.zip |
If the widget is not realized don't do anything, to prevent BadGC's at
2000-10-18 Iain Holmes <iain@helixcode.com>
* e-shell-view.c (start_progress_bar): If the widget is not realized
don't do anything, to prevent BadGC's at shut down.
(stop_progress_bar): Don't draw anything if the widget is not realized.
Same reason.
* e-shell-folder-selection-dialog.c (dbl_click_cb): Emit the
folder-selected signal.
(e_shell_folder_selection_dialog_construct): Connect to the e-table's
double-click signal.
svn path=/trunk/; revision=5995
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 244eace3ab..18d1fe26a4 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -711,11 +711,14 @@ start_progress_bar (EShellView *shell_view) 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); } @@ -734,6 +737,9 @@ stop_progress_bar (EShellView *shell_view) 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); } |