[dconf-editor] Remove KeyListBoxRowNonEditable.



commit 099ec5a941130432aa010da1d70b1c287e951b0d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Sep 26 18:39:11 2015 +0200

    Remove KeyListBoxRowNonEditable.

 editor/dconf-window.vala |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 25c8fe1..56f5365 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -78,7 +78,7 @@ class DConfWindow : ApplicationWindow
         }
         else
         {
-            KeyListBoxRowNonEditable key_list_box_row = new KeyListBoxRowNonEditable (key.name, 
key.cool_text_value ());
+            KeyListBoxRow key_list_box_row = new KeyListBoxRow.fixed_strings (key.name, key.cool_text_value 
());
             key_list_box_row.show_dialog.connect (() => {
                     MessageDialog dialog = new MessageDialog (this, DialogFlags.MODAL, MessageType.WARNING, 
ButtonsType.OK, _("No Schema, cannot edit value."));  // TODO with or without punctuation?        // TODO 
insert key name/path/..?
                     dialog.run ();
@@ -218,11 +218,8 @@ private class KeyListBoxRow : EventBox
     [GtkChild] protected Label key_info_label;
 
     public signal void show_dialog ();
-}
 
-private class KeyListBoxRowNonEditable : KeyListBoxRow
-{
-    public KeyListBoxRowNonEditable (string key_name, string key_value)
+    public KeyListBoxRow.fixed_strings (string key_name, string key_value)
     {
         key_name_label.label = key_name;
         key_value_label.label = key_value;


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