mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 02:32:11 +01:00
Activate application when default action is unset
This commit is contained in:
parent
6f8c5e1881
commit
97c4a2f191
@ -97,10 +97,16 @@ g_notification_backend_activate_action (GNotificationBackend *backend,
|
|||||||
GVariant *parameter)
|
GVariant *parameter)
|
||||||
{
|
{
|
||||||
g_return_if_fail (G_IS_NOTIFICATION_BACKEND (backend));
|
g_return_if_fail (G_IS_NOTIFICATION_BACKEND (backend));
|
||||||
g_return_if_fail (name != NULL);
|
|
||||||
|
|
||||||
if (g_str_has_prefix (name, "app."))
|
if (name)
|
||||||
g_action_group_activate_action (G_ACTION_GROUP (backend->application), name + 4, parameter);
|
{
|
||||||
|
if (g_str_has_prefix (name, "app."))
|
||||||
|
g_action_group_activate_action (G_ACTION_GROUP (backend->application), name + 4, parameter);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_application_activate (backend->application);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GDBusConnection *
|
GDBusConnection *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user