[gnome-boxes/gnome-3-14] snapshot-list-row: More descriptive warning
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-14] snapshot-list-row: More descriptive warning
- Date: Tue, 11 Nov 2014 22:07:38 +0000 (UTC)
commit 9f6390ce2b532c37f09d1df906437b538495ef6f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Nov 7 18:42:20 2014 +0000
snapshot-list-row: More descriptive warning
Print a more descriptive warning on failing to rename a snapshot.
src/snapshot-list-row.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/snapshot-list-row.vala b/src/snapshot-list-row.vala
index be76f58..e6fb5bf 100644
--- a/src/snapshot-list-row.vala
+++ b/src/snapshot-list-row.vala
@@ -110,14 +110,16 @@ private class Boxes.SnapshotListRow : Gtk.ListBoxRow {
[GtkCallback]
private void on_save_name_button_clicked () {
+ var name = name_entry.text;
+
try {
var config = snapshot.get_config (0);
- config.set_description (name_entry.text);
+ config.set_description (name);
snapshot.set_config (config);
- name_label.label = name_entry.get_text ();
+ name_label.label = name;
mode_stack.visible_child = show_name_box;
} catch (GLib.Error e) {
- warning (e.message);
+ warning ("Failed to change name of snapshot to %s: %s", name, e.message);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]