diff options
author | Pablo Barciela <[email protected]> | 2019-08-07 00:17:07 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-08-09 17:16:31 +0200 |
commit | a9ca8f33160fb3f6bc1629ddd3fc94246c92fd5d (patch) | |
tree | bde8fe2049b6fe903ab531e1e6b8c5c700002796 | |
parent | 1ce1b2a54d33ac12276222239916abff26d48cae (diff) | |
download | pluma-a9ca8f33160fb3f6bc1629ddd3fc94246c92fd5d.tar.bz2 pluma-a9ca8f33160fb3f6bc1629ddd3fc94246c92fd5d.tar.xz |
pluma-modeline-plugin: avoid 'g_type_class_add_private'
-rw-r--r-- | plugins/modelines/pluma-modeline-plugin.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/modelines/pluma-modeline-plugin.c b/plugins/modelines/pluma-modeline-plugin.c index b4904a89..c193ef83 100644 --- a/plugins/modelines/pluma-modeline-plugin.c +++ b/plugins/modelines/pluma-modeline-plugin.c @@ -59,6 +59,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (PlumaModelinePlugin, pluma_modeline_plugin, PEAS_TYPE_EXTENSION_BASE, 0, + G_ADD_PRIVATE_DYNAMIC (PlumaModelinePlugin) G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_TYPE_ACTIVATABLE, peas_activatable_iface_init)) @@ -87,9 +88,7 @@ pluma_modeline_plugin_init (PlumaModelinePlugin *plugin) { pluma_debug_message (DEBUG_PLUGINS, "PlumaModelinePlugin initializing"); - plugin->priv = G_TYPE_INSTANCE_GET_PRIVATE (plugin, - PLUMA_TYPE_MODELINE_PLUGIN, - PlumaModelinePluginPrivate); + plugin->priv = pluma_modeline_plugin_get_instance_private (plugin); } static void @@ -298,8 +297,6 @@ pluma_modeline_plugin_class_init (PlumaModelinePluginClass *klass) object_class->get_property = pluma_modeline_plugin_get_property; g_object_class_override_property (object_class, PROP_OBJECT, "object"); - - g_type_class_add_private (klass, sizeof (PlumaModelinePluginPrivate)); } static void |