[gnome-boxes] collection: Add getter to CollectionFilter.text



commit 52366814730bfee249cd0486c2a38606a497d4ed
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jul 1 12:45:25 2015 +0200

    collection: Add getter to CollectionFilter.text
    
    This allows notifications on the CollectionFilter.text prop and will be
    needed in the following commits to move the use of CollectionFilter from
    App to CollectionView.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751710

 src/collection.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/collection.vala b/src/collection.vala
index 975f4ef..a93ff24 100644
--- a/src/collection.vala
+++ b/src/collection.vala
@@ -58,8 +58,11 @@ private class Boxes.Collection: GLib.Object {
 private class Boxes.CollectionFilter: GLib.Object {
     private string [] terms;
 
+    private string _text;
     public string text {
+        get { return _text; }
         set {
+            _text = value;
             terms = value.split(" ");
             for (int i = 0; i < terms.length; i++)
                 terms[i] = canonicalize_for_search (terms[i]);


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