[gnome-boxes] collection-view: select() -> select_by_criteria()



commit a65543f8418e1faf4405116628dc3dd27e2b97f5
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 18 19:04:22 2015 +0200

    collection-view: select() -> select_by_criteria()
    
    This makes the method's function clearer.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733252

 src/app.vala             |    6 +++---
 src/collection-view.vala |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 557b490..b73e1d7 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -53,15 +53,15 @@ private class Boxes.App: Gtk.Application {
         add_action (action);
 
         action = new GLib.SimpleAction ("select-all", null);
-        action.activate.connect (() => { main_window.view.select (SelectionCriteria.ALL); });
+        action.activate.connect (() => { main_window.view.select_by_criteria (SelectionCriteria.ALL); });
         add_action (action);
 
         action = new GLib.SimpleAction ("select-running", null);
-        action.activate.connect (() => { main_window.view.select (SelectionCriteria.RUNNING); });
+        action.activate.connect (() => { main_window.view.select_by_criteria (SelectionCriteria.RUNNING); });
         add_action (action);
 
         action = new GLib.SimpleAction ("select-none", null);
-        action.activate.connect (() => { main_window.view.select (SelectionCriteria.NONE); });
+        action.activate.connect (() => { main_window.view.select_by_criteria (SelectionCriteria.NONE); });
         add_action (action);
 
         action = new GLib.SimpleAction ("help", null);
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 69be69c..5f61506 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -324,14 +324,14 @@ private class Boxes.CollectionView: Gd.MainView, Boxes.UI {
         show_all ();
     }
 
-    public void select (SelectionCriteria selection) {
+    public void select_by_criteria (SelectionCriteria criteria) {
         window.selection_mode = true;
 
         model_filter.foreach ( (filter_model, filter_path, filter_iter) => {
             Gtk.TreeIter iter;
             model_filter.convert_iter_to_child_iter (out iter, filter_iter);
             bool selected;
-            switch (selection) {
+            switch (criteria) {
             default:
             case SelectionCriteria.ALL:
                 selected = true;


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