mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 08:56:16 +01:00
db325cd6a3
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
45 lines
2.5 KiB
C
45 lines
2.5 KiB
C
#include "giotypes.h"
|
|
|
|
typedef struct _GApplicationImpl GApplicationImpl;
|
|
|
|
typedef struct
|
|
{
|
|
gchar *name;
|
|
|
|
GVariantType *parameter_type;
|
|
gboolean enabled;
|
|
GVariant *state;
|
|
} RemoteActionInfo;
|
|
|
|
void g_application_impl_destroy (GApplicationImpl *impl);
|
|
|
|
GApplicationImpl * g_application_impl_register (GApplication *application,
|
|
const gchar *appid,
|
|
GApplicationFlags flags,
|
|
GActionGroup *exported_actions,
|
|
GRemoteActionGroup **remote_actions,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
void g_application_impl_activate (GApplicationImpl *impl,
|
|
GVariant *platform_data);
|
|
|
|
void g_application_impl_open (GApplicationImpl *impl,
|
|
GFile **files,
|
|
gint n_files,
|
|
const gchar *hint,
|
|
GVariant *platform_data);
|
|
|
|
int g_application_impl_command_line (GApplicationImpl *impl,
|
|
gchar **arguments,
|
|
GVariant *platform_data);
|
|
|
|
void g_application_impl_flush (GApplicationImpl *impl);
|
|
|
|
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);
|