Elimino las propiedades "locked", ninguna puede ser bloqueada.

master-1.22
Félix Arreola Rodríguez 2021-07-17 01:25:41 -05:00
parent ca9ac7fd9e
commit 60d514fb47
1 changed files with 4 additions and 4 deletions

View File

@ -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)