[dconf-editor] Grey 'Custom value' row when using default value.



commit 53e36dfb15408247319ba45d972fa147d4ab6db9
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Jan 11 09:26:07 2017 +0100

    Grey 'Custom value' row when using default value.

 editor/dconf-editor.css   |    6 ++++++
 editor/registry-info.vala |    4 +++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index adfa444..dd9ee35 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -227,3 +227,9 @@
 .greyed-label:backdrop {
   color:@theme_unfocused_fg_color;
 }
+.greyed-label:disabled {
+  color:@insensitive_fg_color;
+}
+.greyed-label:disabled:backdrop {
+  color:@unfocused_insensitive_color;
+}
diff --git a/editor/registry-info.vala b/editor/registry-info.vala
index 45392c8..8530a66 100644
--- a/editor/registry-info.vala
+++ b/editor/registry-info.vala
@@ -267,7 +267,9 @@ class RegistryInfo : Grid
 
     private void add_row_from_widget (string property_name, Widget widget, string? type)
     {
-        properties_list_box.add (new PropertyRow.from_widgets (property_name, widget, type != null ? 
add_warning ((!) type) : null));
+        PropertyRow row = new PropertyRow.from_widgets (property_name, widget, type != null ? add_warning 
((!) type) : null);
+        widget.bind_property ("sensitive", row, "sensitive", BindingFlags.SYNC_CREATE);
+        properties_list_box.add (row);
     }
 
     private void add_separator ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]