Implement GNotification on OSX

https://bugzilla.gnome.org/show_bug.cgi?id=747146
This commit is contained in:
Patrick Griffis
2015-03-25 15:51:29 -04:00
committed by Matthias Clasen
parent 89058e8a9b
commit 36e093a31a
4 changed files with 292 additions and 2 deletions

View File

@@ -55,7 +55,9 @@ g_notification_backend_new_default (GApplication *application)
*/
backend->application = application;
backend->dbus_connection = g_object_ref (g_application_get_dbus_connection (application));
backend->dbus_connection = g_application_get_dbus_connection (application);
if (backend->dbus_connection)
g_object_ref (backend->dbus_connection);
return backend;
}