diff --git a/src/terminal-profile.c b/src/terminal-profile.c index 763c089..a02bc49 100644 --- a/src/terminal-profile.c +++ b/src/terminal-profile.c @@ -170,7 +170,6 @@ enum struct _TerminalProfilePrivate { GValueArray *properties; - gboolean *locked; GKeyFile *settings; char *profile_dir; @@ -568,7 +567,6 @@ terminal_profile_ini_read (GKeyFile *settings, if (!pspec) return; /* ignore unknown keys, for future extensibility */ - priv->locked[pspec->param_id] = FALSE; g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec)); @@ -923,7 +921,6 @@ terminal_profile_init (TerminalProfile *profile) priv = profile->priv = G_TYPE_INSTANCE_GET_PRIVATE (profile, TERMINAL_TYPE_PROFILE, TerminalProfilePrivate); priv->gsettings_notification_pspec = NULL; - priv->locked = g_new0 (gboolean, LAST_PROP); priv->properties = g_value_array_new (LAST_PROP); for (i = 0; i < LAST_PROP; ++i) @@ -1039,7 +1036,6 @@ terminal_profile_finalize (GObject *object) g_key_file_free (priv->settings); g_free (priv->profile_dir); - g_free (priv->locked); g_value_array_free (priv->properties); G_OBJECT_CLASS (terminal_profile_parent_class)->finalize (object); @@ -1547,6 +1543,10 @@ terminal_profile_get_property_string (TerminalProfile *profile, return g_value_get_string (value); } +gboolean terminal_profile_property_locked (TerminalProfile *profile, const char *prop_name) { + return FALSE; +} + void terminal_profile_reset_property (TerminalProfile *profile, const char *prop_name)