mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
GApplication: send platform data for actions again
Use the _full variants of the GDBusActionGroup API to send platform data for action invocations once again.
This commit is contained in:
@@ -86,6 +86,7 @@ static GDBusInterfaceInfo *org_gtk_private_CommandLine;
|
||||
struct _GApplicationImpl
|
||||
{
|
||||
GDBusConnection *session_bus;
|
||||
GDBusActionGroup *remote_actions;
|
||||
const gchar *bus_name;
|
||||
|
||||
gchar *object_path;
|
||||
@@ -543,6 +544,7 @@ g_application_impl_register (GApplication *application,
|
||||
}
|
||||
|
||||
*remote_actions = G_ACTION_GROUP (actions);
|
||||
impl->remote_actions = actions;
|
||||
|
||||
return impl;
|
||||
}
|
||||
@@ -591,6 +593,24 @@ g_application_impl_open (GApplicationImpl *impl,
|
||||
NULL, 0, -1, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
g_application_impl_activate_action (GApplicationImpl *impl,
|
||||
const gchar *action_name,
|
||||
GVariant *parameter,
|
||||
GVariant *platform_data)
|
||||
{
|
||||
g_dbus_action_group_activate_action_full (impl->remote_actions, action_name, parameter, platform_data);
|
||||
}
|
||||
|
||||
void
|
||||
g_application_impl_change_action_state (GApplicationImpl *impl,
|
||||
const gchar *action_name,
|
||||
GVariant *value,
|
||||
GVariant *platform_data)
|
||||
{
|
||||
g_dbus_action_group_change_action_state_full (impl->remote_actions, action_name, value, platform_data);
|
||||
}
|
||||
|
||||
static void
|
||||
g_application_impl_cmdline_method_call (GDBusConnection *connection,
|
||||
const gchar *sender,
|
||||
|
Reference in New Issue
Block a user