diff options
author | fujiwarat <takao.fujiwara1@gmail.com> | 2018-12-06 22:55:45 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2019-03-11 16:35:03 +0900 |
commit | f62f6c27d1829420bf9d4649967d3efa4e3e554f (patch) | |
tree | 74a85a9b252599bcbdc290ee48d390871e1e532a /gir | |
parent | a11463e93804b015a1cece4a54f080c7d3161d01 (diff) | |
download | ibus-anthy-f62f6c27d1829420bf9d4649967d3efa4e3e554f.tar.gz |
gir: Fixed deprecated g_type_class_add_private() (#9)
Diffstat (limited to 'gir')
-rw-r--r-- | gir/anthygcontext.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gir/anthygcontext.c b/gir/anthygcontext.c index d08ee01..0832a9c 100644 --- a/gir/anthygcontext.c +++ b/gir/anthygcontext.c @@ -41,18 +41,17 @@ static GObject *anthy_gcontext_constructor (GType type, static void anthy_gcontext_dispose (GObject *gobject); static void anthy_gcontext_finalize (GObject *gobject); -G_DEFINE_TYPE (AnthyGContext, anthy_gcontext, G_TYPE_INITIALLY_UNOWNED) +G_DEFINE_TYPE_WITH_PRIVATE (AnthyGContext, + anthy_gcontext, + G_TYPE_INITIALLY_UNOWNED) static void anthy_gcontext_class_init (AnthyGContextClass *class) { - GObjectClass *gobject_class = G_OBJECT_CLASS (class); gobject_class->constructor = anthy_gcontext_constructor; gobject_class->dispose = anthy_gcontext_dispose; gobject_class->finalize = anthy_gcontext_finalize; - - g_type_class_add_private (class, sizeof (AnthyGContextPrivate)); } static void |