Elimino las propiedades "locked", ninguna puede ser bloqueada.
parent
ca9ac7fd9e
commit
60d514fb47
|
@ -170,7 +170,6 @@ enum
|
||||||
struct _TerminalProfilePrivate
|
struct _TerminalProfilePrivate
|
||||||
{
|
{
|
||||||
GValueArray *properties;
|
GValueArray *properties;
|
||||||
gboolean *locked;
|
|
||||||
|
|
||||||
GKeyFile *settings;
|
GKeyFile *settings;
|
||||||
char *profile_dir;
|
char *profile_dir;
|
||||||
|
@ -568,7 +567,6 @@ terminal_profile_ini_read (GKeyFile *settings,
|
||||||
if (!pspec)
|
if (!pspec)
|
||||||
return; /* ignore unknown keys, for future extensibility */
|
return; /* ignore unknown keys, for future extensibility */
|
||||||
|
|
||||||
priv->locked[pspec->param_id] = FALSE;
|
|
||||||
|
|
||||||
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
|
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 = profile->priv = G_TYPE_INSTANCE_GET_PRIVATE (profile, TERMINAL_TYPE_PROFILE, TerminalProfilePrivate);
|
||||||
|
|
||||||
priv->gsettings_notification_pspec = NULL;
|
priv->gsettings_notification_pspec = NULL;
|
||||||
priv->locked = g_new0 (gboolean, LAST_PROP);
|
|
||||||
|
|
||||||
priv->properties = g_value_array_new (LAST_PROP);
|
priv->properties = g_value_array_new (LAST_PROP);
|
||||||
for (i = 0; i < LAST_PROP; ++i)
|
for (i = 0; i < LAST_PROP; ++i)
|
||||||
|
@ -1039,7 +1036,6 @@ terminal_profile_finalize (GObject *object)
|
||||||
|
|
||||||
g_key_file_free (priv->settings);
|
g_key_file_free (priv->settings);
|
||||||
g_free (priv->profile_dir);
|
g_free (priv->profile_dir);
|
||||||
g_free (priv->locked);
|
|
||||||
g_value_array_free (priv->properties);
|
g_value_array_free (priv->properties);
|
||||||
|
|
||||||
G_OBJECT_CLASS (terminal_profile_parent_class)->finalize (object);
|
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);
|
return g_value_get_string (value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean terminal_profile_property_locked (TerminalProfile *profile, const char *prop_name) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
terminal_profile_reset_property (TerminalProfile *profile,
|
terminal_profile_reset_property (TerminalProfile *profile,
|
||||||
const char *prop_name)
|
const char *prop_name)
|
||||||
|
|
Loading…
Reference in New Issue