core: Shuffle startup notification object creation
Hook properly to MetaDisplay, instead of having it be a singleton.
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
8a10196382
commit
4a69a0d7f7
@ -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 *
|
||||
|
Reference in New Issue
Block a user