diff options
Diffstat (limited to 'widgets/misc/e-activity-proxy.c')
-rw-r--r-- | widgets/misc/e-activity-proxy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/widgets/misc/e-activity-proxy.c b/widgets/misc/e-activity-proxy.c index e96f18ed63..26d5d30ba0 100644 --- a/widgets/misc/e-activity-proxy.c +++ b/widgets/misc/e-activity-proxy.c @@ -69,6 +69,7 @@ activity_proxy_update (EActivityProxy *proxy) gboolean clickable; gboolean completed; gboolean sensitive; + gboolean visible; gchar *description; activity = proxy->priv->activity; @@ -108,10 +109,8 @@ activity_proxy_update (EActivityProxy *proxy) gtk_widget_hide (proxy->priv->image); } - if (cancellable != NULL) - gtk_widget_show (proxy->priv->cancel); - else - gtk_widget_hide (proxy->priv->cancel); + visible = (cancellable != NULL); + gtk_widget_set_visible (proxy->priv->cancel, visible); sensitive = !(cancelled || completed); gtk_widget_set_sensitive (proxy->priv->cancel, sensitive); |