summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/terminal-profile.c6
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;