core: Shuffle startup notification object creation

Hook properly to MetaDisplay, instead of having it be a singleton.
This commit is contained in:
Carlos Garnacho
2018-08-22 22:51:26 +02:00
committed by Georges Basile Stavracas Neto
parent 8a10196382
commit 4a69a0d7f7
3 changed files with 6 additions and 11 deletions

View File

@ -540,16 +540,11 @@ meta_startup_notification_class_init (MetaStartupNotificationClass *klass)
}
MetaStartupNotification *
meta_startup_notification_get (MetaDisplay *display)
meta_startup_notification_new (MetaDisplay *display)
{
static MetaStartupNotification *notification = NULL;
if (!notification)
notification = g_object_new (META_TYPE_STARTUP_NOTIFICATION,
"display", display,
NULL);
return notification;
return g_object_new (META_TYPE_STARTUP_NOTIFICATION,
"display", display,
NULL);
}
GSList *