[gnome-boxes] selectionbar: button toggles machine "favorite" category now
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] selectionbar: button toggles machine "favorite" category now
- Date: Tue, 21 Aug 2012 11:54:10 +0000 (UTC)
commit f312781c0975ef1025590e9df1789ec239055397
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Mon Aug 20 19:03:55 2012 +0200
selectionbar: button toggles machine "favorite" category now
internal, now follows gtk naming s/favourite/favorite category
https://bugzilla.gnome.org/show_bug.cgi?id=682292
src/selectionbar.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/selectionbar.vala b/src/selectionbar.vala
index a8262d3..f81428d 100644
--- a/src/selectionbar.vala
+++ b/src/selectionbar.vala
@@ -31,8 +31,9 @@ private class Boxes.Selectionbar: GLib.Object {
favorite_btn.clicked.connect (() => {
foreach (var item in App.app.selected_items) {
var machine = item as Machine;
- if (machine != null)
- machine.config.add_category ("favourite");
+ if (machine == null)
+ continue;
+ machine.config.set_category ("favorite", favorite_btn.active);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]