From 7a92d9cc82b7775a0f5cb1fde233119d435a79b6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 10 Mar 2009 01:06:18 +0000 Subject: Add e_lookup_action() and e_lookup_action_group() to e-util, so I don't have to keep writing the algorithm over and over again. Add EFileActivity, which provides a GCancellable for GIO operations. Cancelling the activity cancels the GIO operation, and vice versa. Also provides a handy GFileProgressCallback function which updates the activity's "percent" property. svn path=/branches/kill-bonobo/; revision=37396 --- widgets/misc/e-activity-proxy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets/misc/e-activity-proxy.c') diff --git a/widgets/misc/e-activity-proxy.c b/widgets/misc/e-activity-proxy.c index 9c08a8d9a0..bddcc124f3 100644 --- a/widgets/misc/e-activity-proxy.c +++ b/widgets/misc/e-activity-proxy.c @@ -49,14 +49,14 @@ activity_proxy_update (EActivityProxy *proxy) { EActivity *activity = proxy->priv->activity; const gchar *icon_name; - gboolean cancellable; + gboolean allow_cancel; gboolean cancelled; gboolean clickable; gboolean completed; gboolean sensitive; gchar *description; - cancellable = e_activity_get_cancellable (activity); + allow_cancel = e_activity_get_allow_cancel (activity); cancelled = e_activity_is_cancelled (activity); clickable = e_activity_get_clickable (activity); completed = e_activity_is_completed (activity); @@ -91,7 +91,7 @@ activity_proxy_update (EActivityProxy *proxy) gtk_widget_hide (proxy->priv->image); } - if (cancellable) + if (allow_cancel) gtk_widget_show (proxy->priv->cancel); else gtk_widget_hide (proxy->priv->cancel); -- cgit v1.2.3