mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
gsettings tool: fix some sed damage
The previous patch to simplify the GSettings commandline tool by making more use of global variables went a bit too far and broke 'gsettings monitor' when used without a specific key. Fix that up again.
This commit is contained in:
parent
e53caad4f1
commit
f33a7f9ef2
@ -393,14 +393,16 @@ gsettings_writable (void)
|
||||
}
|
||||
|
||||
static void
|
||||
value_changed (void)
|
||||
value_changed (GSettings *settings,
|
||||
const gchar *key,
|
||||
gpointer user_data)
|
||||
{
|
||||
GVariant *value;
|
||||
gchar *printed;
|
||||
|
||||
value = g_settings_get_value (global_settings, global_key);
|
||||
value = g_settings_get_value (settings, key);
|
||||
printed = g_variant_print (value, TRUE);
|
||||
g_print ("%s: %s\n", global_key, printed);
|
||||
g_print ("%s: %s\n", key, printed);
|
||||
g_variant_unref (value);
|
||||
g_free (printed);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user