[gnome-boxes] Rename Selectiion enum to SelectionCriteria
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Rename Selectiion enum to SelectionCriteria
- Date: Mon, 29 Oct 2012 12:14:50 +0000 (UTC)
commit 587b3099c575eb67444e8122c998da568ca1ae72
Author: Alexander Larsson <alexl redhat com>
Date: Mon Oct 29 13:13:33 2012 +0100
Rename Selectiion enum to SelectionCriteria
https://bugzilla.gnome.org/show_bug.cgi?id=686883
src/app.vala | 6 +++---
src/collection-view.vala | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 3fe359b..afa2659 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -87,15 +87,15 @@ private class Boxes.App: Boxes.UI {
application.add_action (action_properties);
action = new GLib.SimpleAction ("select-all", null);
- action.activate.connect (() => { view.select (Selection.ALL); });
+ action.activate.connect (() => { view.select (SelectionCriteria.ALL); });
application.add_action (action);
action = new GLib.SimpleAction ("select-running", null);
- action.activate.connect (() => { view.select (Selection.RUNNING); });
+ action.activate.connect (() => { view.select (SelectionCriteria.RUNNING); });
application.add_action (action);
action = new GLib.SimpleAction ("select-none", null);
- action.activate.connect (() => { view.select (Selection.NONE); });
+ action.activate.connect (() => { view.select (SelectionCriteria.NONE); });
application.add_action (action);
action = new GLib.SimpleAction ("about", null);
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 9dc051a..ed7c46b 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -1,7 +1,7 @@
// This file is part of GNOME Boxes. License: LGPLv2+
using Clutter;
-public enum Boxes.Selection {
+public enum Boxes.SelectionCriteria {
ALL,
NONE,
RUNNING
@@ -465,7 +465,7 @@ private class Boxes.CollectionView: Boxes.UI {
return false;
}
- public void select (Selection selection) {
+ public void select (SelectionCriteria selection) {
App.app.selection_mode = true;
model_filter.foreach ( (filter_model, filter_path, filter_iter) => {
@@ -474,13 +474,13 @@ private class Boxes.CollectionView: Boxes.UI {
bool selected;
switch (selection) {
default:
- case Selection.ALL:
+ case SelectionCriteria.ALL:
selected = true;
break;
- case Selection.NONE:
+ case SelectionCriteria.NONE:
selected = false;
break;
- case Selection.RUNNING:
+ case SelectionCriteria.RUNNING:
CollectionItem item;
model.get (iter, ModelColumns.ITEM, out item);
selected = item != null && item is Machine &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]