summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-11-27 12:40:27 -0500
committerRyan Lortie <desrt@desrt.ca>2013-11-27 12:42:32 -0500
commitf33a7f9ef2a14ddc8397477920e013f0987df0a4 (patch)
tree33777c548ed8f64e293e36497eccaa53bd71cf57
parente53caad4f139e2df0b34dae5864576796dda514e (diff)
downloadglib-f33a7f9ef2a14ddc8397477920e013f0987df0a4.tar.gz
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.
-rw-r--r--gio/gsettings-tool.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gio/gsettings-tool.c b/gio/gsettings-tool.c
index e823cf4d5..03314a83c 100644
--- a/gio/gsettings-tool.c
+++ b/gio/gsettings-tool.c
@@ -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);
}