diff options
author | Timm Bäder <mail@baedert.org> | 2016-04-30 12:10:14 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-05-12 20:40:13 +0200 |
commit | d4f0c9877d488bfb9559899bdb04489bf07d3827 (patch) | |
tree | a8f86d7cfa511184571179528852d41e1f376627 /gtk/gtk-query-settings.c | |
parent | 0d8993fb240e7572620cdf0cadb4f92e86e02712 (diff) | |
download | gtk+-d4f0c9877d488bfb9559899bdb04489bf07d3827.tar.gz |
query-settings: Indicate deprecated settings
Diffstat (limited to 'gtk/gtk-query-settings.c')
-rw-r--r-- | gtk/gtk-query-settings.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtk-query-settings.c b/gtk/gtk-query-settings.c index 3640f85910..29ae214dc5 100644 --- a/gtk/gtk-query-settings.c +++ b/gtk/gtk-query-settings.c @@ -52,13 +52,15 @@ main (int argc, char **argv) GValue value = {0}; GParamSpec *prop = props[i]; gchar *value_str; - int spacing = max_prop_name_length - strlen (prop->name); + int spacing = max_prop_name_length - strlen (prop->name) + 1; + gboolean deprecated; if (pattern && !g_strrstr (prop->name, pattern)) continue; g_value_init (&value, prop->value_type); g_object_get_property (G_OBJECT (settings), prop->name, &value); + deprecated = prop->flags & G_PARAM_DEPRECATED; if (G_VALUE_HOLDS_ENUM (&value)) { @@ -72,6 +74,12 @@ main (int argc, char **argv) value_str = g_strdup_value_contents (&value); } + if (deprecated) + { + printf ("!"); + spacing --; + } + for (; spacing >= 0; spacing --) printf (" "); |