[gtk+/wip/baedert/gtkimageview: 253/255] query-settings: Indicate deprecated settings
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 253/255] query-settings: Indicate deprecated settings
- Date: Thu, 12 May 2016 17:39:13 +0000 (UTC)
commit c08537ecf5cb40cbb499604f9432316e675391b5
Author: Timm Bäder <mail baedert org>
Date: Sat Apr 30 12:10:14 2016 +0200
query-settings: Indicate deprecated settings
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 3640f85..29ae214 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 (" ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]