diff options
author | Andre Miranda <andreldm@xfce.org> | 2019-04-16 23:13:31 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2019-04-16 23:13:31 -0300 |
commit | c0b1f495994b529531655a3c10df108727b8f1b4 (patch) | |
tree | ea9dc05cb8b6c7c1042c8ea25b29e8460e096464 /tumblerd | |
parent | 1435c0c1af29799e87a5b26dbe97baf3008fc953 (diff) | |
download | tumbler-c0b1f495994b529531655a3c10df108727b8f1b4.tar.gz |
Fix g_type_class_add_private is deprecated
Diffstat (limited to 'tumblerd')
-rw-r--r-- | tumblerd/tumbler-component.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tumblerd/tumbler-component.c b/tumblerd/tumbler-component.c index fdb0062..7637e6b 100644 --- a/tumblerd/tumbler-component.c +++ b/tumblerd/tumbler-component.c @@ -30,10 +30,6 @@ -#define TUMBLER_COMPONENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TUMBLER_TYPE_COMPONENT, TumblerComponentPrivate)) - - - /* property identifiers */ enum { @@ -62,7 +58,7 @@ struct _TumblerComponentPrivate -G_DEFINE_TYPE (TumblerComponent, tumbler_component, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (TumblerComponent, tumbler_component, G_TYPE_OBJECT) @@ -71,8 +67,6 @@ tumbler_component_class_init (TumblerComponentClass *klass) { GObjectClass *gobject_class; - g_type_class_add_private (klass, sizeof (TumblerComponentPrivate)); - /* Determine the parent type class */ tumbler_component_parent_class = g_type_class_peek_parent (klass); @@ -96,7 +90,7 @@ tumbler_component_class_init (TumblerComponentClass *klass) static void tumbler_component_init (TumblerComponent *component) { - component->priv = TUMBLER_COMPONENT_GET_PRIVATE (component); + component->priv = tumbler_component_get_instance_private (component); } |