summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-07 12:31:47 +0200
committerlukefromdc <[email protected]>2019-08-09 22:22:19 +0000
commitf75f90e9e255b6f343ce2215bafca095fd70beca (patch)
treed3a32b10a3781080f2f2dc40a8c6e8f87591b561 /plugins
parenta66d039f91ef73ca502117fa7cc725ec0eb08de8 (diff)
downloadpluma-f75f90e9e255b6f343ce2215bafca095fd70beca.tar.bz2
pluma-f75f90e9e255b6f343ce2215bafca095fd70beca.tar.xz
pluma-taglist-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins')
-rw-r--r--plugins/taglist/pluma-taglist-plugin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/taglist/pluma-taglist-plugin.c b/plugins/taglist/pluma-taglist-plugin.c
index 49b40cd2..04436473 100644
--- a/plugins/taglist/pluma-taglist-plugin.c
+++ b/plugins/taglist/pluma-taglist-plugin.c
@@ -42,8 +42,6 @@
#include <pluma/pluma-window.h>
#include <pluma/pluma-debug.h>
-#define PLUMA_TAGLIST_PLUGIN_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), PLUMA_TYPE_TAGLIST_PLUGIN, PlumaTaglistPluginPrivate))
-
struct _PlumaTaglistPluginPrivate
{
GtkWidget *window;
@@ -57,6 +55,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (PlumaTaglistPlugin,
pluma_taglist_plugin,
PEAS_TYPE_EXTENSION_BASE,
0,
+ G_ADD_PRIVATE_DYNAMIC (PlumaTaglistPlugin)
G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_TYPE_ACTIVATABLE,
peas_activatable_iface_init) \
\
@@ -71,7 +70,7 @@ enum {
static void
pluma_taglist_plugin_init (PlumaTaglistPlugin *plugin)
{
- plugin->priv = PLUMA_TAGLIST_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = pluma_taglist_plugin_get_instance_private (plugin);
pluma_debug_message (DEBUG_PLUGINS, "PlumaTaglistPlugin initializing");
}
@@ -212,8 +211,6 @@ pluma_taglist_plugin_class_init (PlumaTaglistPluginClass *klass)
object_class->get_property = pluma_taglist_plugin_get_property;
g_object_class_override_property (object_class, PROP_OBJECT, "object");
-
- g_type_class_add_private (object_class, sizeof (PlumaTaglistPluginPrivate));
}
static void