Activate application when default action is unset

This commit is contained in:
Lars Uebernickel 2013-10-21 12:31:12 -04:00
parent 6f8c5e1881
commit 97c4a2f191

View File

@ -97,10 +97,16 @@ g_notification_backend_activate_action (GNotificationBackend *backend,
GVariant *parameter)
{
g_return_if_fail (G_IS_NOTIFICATION_BACKEND (backend));
g_return_if_fail (name != NULL);
if (g_str_has_prefix (name, "app."))
g_action_group_activate_action (G_ACTION_GROUP (backend->application), name + 4, parameter);
if (name)
{
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 *