diff options
author | Pablo Barciela <[email protected]> | 2019-08-28 17:14:36 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-08-29 20:39:27 +0000 |
commit | 745c5f9b0a4aef4bba410f67ca11f971391950ec (patch) | |
tree | a65f60f7652416d0508120321ee7c50d8012b1c2 | |
parent | 9ea74faf261170680f57dc37d18490ccb0fff7f7 (diff) | |
download | mate-terminal-745c5f9b0a4aef4bba410f67ca11f971391950ec.tar.bz2 mate-terminal-745c5f9b0a4aef4bba410f67ca11f971391950ec.tar.xz |
terminal-profile: avoid 'g_type_class_add_private'
-rw-r--r-- | src/terminal-profile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/terminal-profile.c b/src/terminal-profile.c index ab25741..427225e 100644 --- a/src/terminal-profile.c +++ b/src/terminal-profile.c @@ -308,7 +308,7 @@ static void ensure_pixbuf_property (TerminalProfile *profile, static guint signals[LAST_SIGNAL] = { 0 }; static GQuark gsettings_key_quark; -G_DEFINE_TYPE (TerminalProfile, terminal_profile, G_TYPE_OBJECT); +G_DEFINE_TYPE_WITH_PRIVATE (TerminalProfile, terminal_profile, G_TYPE_OBJECT); /* gdk_rgba_equal is too strict! */ static gboolean @@ -911,7 +911,7 @@ terminal_profile_init (TerminalProfile *profile) GParamSpec **pspecs; guint n_pspecs, i; - priv = profile->priv = G_TYPE_INSTANCE_GET_PRIVATE (profile, TERMINAL_TYPE_PROFILE, TerminalProfilePrivate); + priv = profile->priv = terminal_profile_get_instance_private (profile); priv->gsettings_notification_pspec = NULL; priv->locked = g_new0 (gboolean, LAST_PROP); @@ -1188,8 +1188,6 @@ terminal_profile_class_init (TerminalProfileClass *klass) gsettings_key_quark = g_quark_from_static_string ("GT::GSettingsKey"); - g_type_class_add_private (object_class, sizeof (TerminalProfilePrivate)); - object_class->constructor = terminal_profile_constructor; object_class->finalize = terminal_profile_finalize; object_class->get_property = terminal_profile_get_property; |