[gnome-settings-daemon/gnome-3-34] gnome-settings-plugin-info: Replace deprecated 'g_type_class_add_private'
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-34] gnome-settings-plugin-info: Replace deprecated 'g_type_class_add_private'
- Date: Thu, 29 Aug 2019 14:08:50 +0000 (UTC)
commit 77d92c193f1639838e2cfb6407133311d69ed2f9
Author: Pablo Barciela <scow riseup net>
Date: Sat Aug 17 15:16:19 2019 +0200
gnome-settings-plugin-info: Replace deprecated 'g_type_class_add_private'
gnome-settings-daemon/gnome-settings-plugin-info.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gnome-settings-daemon/gnome-settings-plugin-info.c
b/gnome-settings-daemon/gnome-settings-plugin-info.c
index 72fb97ad..7618806d 100644
--- a/gnome-settings-daemon/gnome-settings-plugin-info.c
+++ b/gnome-settings-daemon/gnome-settings-plugin-info.c
@@ -30,8 +30,6 @@
#include "gnome-settings-plugin.h"
#include "gnome-settings-profile.h"
-#define GNOME_SETTINGS_PLUGIN_INFO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o),
GNOME_TYPE_SETTINGS_PLUGIN_INFO, GnomeSettingsPluginInfoPrivate))
-
#define PLUGIN_GROUP "GNOME Settings Plugin"
#define PLUGIN_PRIORITY_MAX 1
@@ -74,7 +72,7 @@ enum {
static guint signals [LAST_SIGNAL] = { 0, };
-G_DEFINE_TYPE (GnomeSettingsPluginInfo, gnome_settings_plugin_info, G_TYPE_OBJECT)
+G_DEFINE_TYPE_WITH_PRIVATE (GnomeSettingsPluginInfo, gnome_settings_plugin_info, G_TYPE_OBJECT)
static void
gnome_settings_plugin_info_finalize (GObject *object)
@@ -139,14 +137,12 @@ gnome_settings_plugin_info_class_init (GnomeSettingsPluginInfoClass *klass)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE,
0);
-
- g_type_class_add_private (klass, sizeof (GnomeSettingsPluginInfoPrivate));
}
static void
gnome_settings_plugin_info_init (GnomeSettingsPluginInfo *info)
{
- info->priv = GNOME_SETTINGS_PLUGIN_INFO_GET_PRIVATE (info);
+ info->priv = gnome_settings_plugin_info_get_instance_private (info);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]