[gedit-plugins/remove-deprecated] Deprecate Zeitgeist symbols
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/remove-deprecated] Deprecate Zeitgeist symbols
- Date: Sun, 28 Apr 2019 11:22:26 +0000 (UTC)
commit c21a0f70c271845f78220eddb2995b765441fd24
Author: Jordi Mas <jmas softcatala org>
Date: Sun Apr 28 13:22:11 2019 +0200
Deprecate Zeitgeist symbols
plugins/zeitgeist/gedit-zeitgeist-plugin.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/plugins/zeitgeist/gedit-zeitgeist-plugin.c b/plugins/zeitgeist/gedit-zeitgeist-plugin.c
index 65f472f..97fc039 100644
--- a/plugins/zeitgeist/gedit-zeitgeist-plugin.c
+++ b/plugins/zeitgeist/gedit-zeitgeist-plugin.c
@@ -69,7 +69,8 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditZeitgeistPlugin,
G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_VIEW_ACTIVATABLE,
gedit_view_activatable_iface_init)
G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_APP_ACTIVATABLE,
- gedit_app_activatable_iface_init))
+ gedit_app_activatable_iface_init)
+ G_ADD_PRIVATE_DYNAMIC (GeditZeitgeistPlugin))
static ZeitgeistLog *zg_log = NULL;
static ZeitgeistDataSourceRegistry *zg_dsr = NULL;
@@ -79,9 +80,7 @@ gedit_zeitgeist_plugin_init (GeditZeitgeistPlugin *plugin)
{
gedit_debug_message (DEBUG_PLUGINS, "GeditZeitgeistPlugin initializing");
- plugin->priv = G_TYPE_INSTANCE_GET_PRIVATE (plugin,
- GEDIT_TYPE_ZEITGEIST_PLUGIN,
- GeditZeitgeistPluginPrivate);
+ plugin->priv = gedit_zeitgeist_plugin_get_instance_private (plugin);
}
static void
@@ -311,8 +310,6 @@ gedit_zeitgeist_plugin_class_init (GeditZeitgeistPluginClass *klass)
g_object_class_override_property (object_class, PROP_VIEW, "view");
g_object_class_override_property (object_class, PROP_APP, "app");
-
- g_type_class_add_private (klass, sizeof (GeditZeitgeistPluginPrivate));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]