summaryrefslogtreecommitdiff
path: root/gio/gapplicationimpl.h
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-04-03 14:12:03 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2013-04-04 13:13:53 -0400
commitdb325cd6a3ed3e95d497d7a4087c0f37f155ef01 (patch)
tree5270f039e046e3a8876964ff4f31451fd251735a /gio/gapplicationimpl.h
parent96f7e6d70b7b7aa915e471d5ee5f5bc2a6637af9 (diff)
downloadglib-db325cd6a3ed3e95d497d7a4087c0f37f155ef01.tar.gz
application: introduce methods to mark the application as busy
This feature is intended for clients that want to signal a desktop shell their busy state, for instance because a long-running operation is pending. The API works in a similar way to g_application_hold and g_application_release: applications can call g_application_mark_busy() to increase a counter that will keep the application marked as busy until the counter reaches zero again. The busy state is exported read-only on the org.gtk.Application interface for clients to use. https://bugzilla.gnome.org/show_bug.cgi?id=672018
Diffstat (limited to 'gio/gapplicationimpl.h')
-rw-r--r--gio/gapplicationimpl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gapplicationimpl.h b/gio/gapplicationimpl.h
index 8743d0fd2..85d7a3e0c 100644
--- a/gio/gapplicationimpl.h
+++ b/gio/gapplicationimpl.h
@@ -39,3 +39,6 @@ void g_application_impl_flush (GApplic
GDBusConnection * g_application_impl_get_dbus_connection (GApplicationImpl *impl);
const gchar * g_application_impl_get_dbus_object_path (GApplicationImpl *impl);
+
+void g_application_impl_set_busy_state (GApplicationImpl *impl,
+ gboolean busy);