terminal-profile: avoid 'g_type_class_add_private'
parent
9ea74faf26
commit
745c5f9b0a
|
@ -308,7 +308,7 @@ static void ensure_pixbuf_property (TerminalProfile *profile,
|
||||||
static guint signals[LAST_SIGNAL] = { 0 };
|
static guint signals[LAST_SIGNAL] = { 0 };
|
||||||
static GQuark gsettings_key_quark;
|
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! */
|
/* gdk_rgba_equal is too strict! */
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -911,7 +911,7 @@ terminal_profile_init (TerminalProfile *profile)
|
||||||
GParamSpec **pspecs;
|
GParamSpec **pspecs;
|
||||||
guint n_pspecs, i;
|
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->gsettings_notification_pspec = NULL;
|
||||||
priv->locked = g_new0 (gboolean, LAST_PROP);
|
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");
|
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->constructor = terminal_profile_constructor;
|
||||||
object_class->finalize = terminal_profile_finalize;
|
object_class->finalize = terminal_profile_finalize;
|
||||||
object_class->get_property = terminal_profile_get_property;
|
object_class->get_property = terminal_profile_get_property;
|
||||||
|
|
Loading…
Reference in New Issue