[dconf-editor] Better use of properties in KeyListBoxRow.



commit 68d2d7867796cc659225d1c38f19d11cb4107190
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Oct 25 00:22:14 2015 +0200

    Better use of properties in KeyListBoxRow.

 editor/dconf-window.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 8840032..5ca330e 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -347,10 +347,10 @@ private class KeyListBoxRow : EventBox
 
     public signal void show_dialog ();
 
-    protected bool popover_created = false;
+    protected bool popover_created { get; private set; default = false; }
     protected ContextPopover popover;
-    protected virtual bool generate_popover () { return false; }
-    protected virtual bool update_popover () { return false; }
+    protected virtual bool generate_popover () { return false; }        // no popover should be created
+    protected virtual bool update_popover () { return true; }           // false disables a created popover
 
     public override bool button_press_event (Gdk.EventButton event)     // list_box_row selection is done 
elsewhere
     {


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