[gnome-boxes] Properties: Fix back button name
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Properties: Fix back button name
- Date: Fri, 2 Nov 2012 13:12:02 +0000 (UTC)
commit 4dfa74930342fc49113676174cba3bb7a4074988
Author: Alexander Larsson <alexl redhat com>
Date: Wed Oct 31 13:44:03 2012 +0100
Properties: Fix back button name
Don't use name on back button if it goes to the collection view
rather than to the named display.
https://bugzilla.gnome.org/show_bug.cgi?id=677714
src/properties.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index ed4ead1..04c2306 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -290,7 +290,11 @@ private class Boxes.Properties: Boxes.UI {
switch (ui_state) {
case UIState.PROPERTIES:
- toolbar_label_bind = App.app.current_item.bind_property ("name", toolbar_label, "label", BindingFlags.SYNC_CREATE);
+ toolbar_label_bind = null;
+ if (previous_ui_state != UIState.COLLECTION)
+ toolbar_label_bind = App.app.current_item.bind_property ("name", toolbar_label, "label", BindingFlags.SYNC_CREATE);
+ else
+ toolbar_label.label = "";
populate ();
opacity = 255;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]