[gnome-boxes] Add some debug messages related to deletion
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Add some debug messages related to deletion
- Date: Wed, 22 Feb 2012 23:49:35 +0000 (UTC)
commit 1e08baf6538aace4555ba2b5b9de571ec02142f6
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Tue Feb 21 00:11:48 2012 +0100
Add some debug messages related to deletion
https://bugzilla.gnome.org/show_bug.cgi?id=670539
src/app.vala | 5 ++++-
src/notificationbar.vala | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index ca11e26..d68c870 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -480,11 +480,14 @@ private class Boxes.App: Boxes.UI {
view.remove_item (item);
Notificationbar.OKFunc undo = () => {
- foreach (var selected in selected_items)
+ debug ("Box deletion cancelled by user, re-adding to view");
+ foreach (var selected in selected_items) {
view.add_item (selected);
+ }
};
Notificationbar.CancelFunc really_remove = () => {
+ debug ("Box deletion, deleting now");
foreach (var selected in selected_items) {
var machine = selected as Machine;
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index 9d77a6e..44bd0ba 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -69,10 +69,10 @@ private class Boxes.Notificationbar: GLib.Object {
timeout_id = 0;
response_id = 0;
- if (response == ResponseType.OK)
+ if (response == ResponseType.OK) {
if (ok_func != null)
ok_func ();
- else {
+ } else {
if (cancel_func != null)
cancel_func ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]