meta, startup-notification: Make type declarations public

Shell is using these, which was revealed by
1bbb5c8107 breaking its build when
generating its introspection due to meta_startup_notification_get_type()
not being found.

We keep the class structs private, so in practice MetaStartupSequence
and MetaBackend can't be derived from (the are semi-private).
This commit is contained in:
Iain Lane
2019-01-24 11:40:27 +00:00
parent 2528a39781
commit 2e53ce8e75
4 changed files with 13 additions and 33 deletions

View File

@ -28,8 +28,6 @@
#include "core/display-private.h"
#include "meta/meta-startup-notification.h"
typedef struct _MetaStartupSequenceClass MetaStartupSequenceClass;
struct _MetaStartupSequenceClass
{
GObjectClass parent_class;
@ -37,18 +35,6 @@ struct _MetaStartupSequenceClass
void (* complete) (MetaStartupSequence *sequence);
};
META_EXPORT
G_DECLARE_FINAL_TYPE (MetaStartupNotification,
meta_startup_notification,
META, STARTUP_NOTIFICATION,
GObject)
META_EXPORT
G_DECLARE_DERIVABLE_TYPE (MetaStartupSequence,
meta_startup_sequence,
META, STARTUP_SEQUENCE,
GObject)
MetaStartupNotification *
meta_startup_notification_new (MetaDisplay *display);