summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-01 23:01:06 +0200
committerlukefromdc <[email protected]>2019-08-05 05:22:09 +0000
commit082e7b1fd913856624beacf1c50c94d650ecd3e1 (patch)
treeb2e9ba8ba31c622b587748888c667710140d30d7
parent206008a59a102122e457e7a1c82da83a6bf6f139 (diff)
downloadpluma-082e7b1fd913856624beacf1c50c94d650ecd3e1.tar.bz2
pluma-082e7b1fd913856624beacf1c50c94d650ecd3e1.tar.xz
pluma-file-browser-plugin: avoid 'g_type_class_add_private'
-rw-r--r--plugins/filebrowser/pluma-file-browser-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-plugin.c b/plugins/filebrowser/pluma-file-browser-plugin.c
index e3a5d1c9..71779100 100644
--- a/plugins/filebrowser/pluma-file-browser-plugin.c
+++ b/plugins/filebrowser/pluma-file-browser-plugin.c
@@ -50,8 +50,6 @@
#define TERMINAL_SCHEMA "org.mate.applications-terminal"
#define TERMINAL_EXEC_KEY "exec"
-#define PLUMA_FILE_BROWSER_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), PLUMA_TYPE_FILE_BROWSER_PLUGIN, PlumaFileBrowserPluginPrivate))
-
struct _PlumaFileBrowserPluginPrivate
{
GtkWidget *window;
@@ -115,6 +113,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (PlumaFileBrowserPlugin,
pluma_file_browser_plugin,
PEAS_TYPE_EXTENSION_BASE,
0,
+ G_ADD_PRIVATE_DYNAMIC (PlumaFileBrowserPlugin)
G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_TYPE_ACTIVATABLE,
peas_activatable_iface_init) \
\
@@ -128,7 +127,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (PlumaFileBrowserPlugin,
static void
pluma_file_browser_plugin_init (PlumaFileBrowserPlugin * plugin)
{
- plugin->priv = PLUMA_FILE_BROWSER_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = pluma_file_browser_plugin_get_instance_private (plugin);
}
static void
@@ -815,9 +814,6 @@ pluma_file_browser_plugin_class_init (PlumaFileBrowserPluginClass * klass)
object_class->get_property = pluma_file_browser_plugin_get_property;
g_object_class_override_property (object_class, PROP_OBJECT, "object");
-
- g_type_class_add_private (object_class,
- sizeof (PlumaFileBrowserPluginPrivate));
}
static void