[gnome-boxes] properties-toolbar: Drop main_back_button
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties-toolbar: Drop main_back_button
- Date: Sun, 7 Dec 2014 23:43:29 +0000 (UTC)
commit 672ed53132dcfe466ecf0512fe84d29900ac565a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Dec 7 22:10:26 2014 +0000
properties-toolbar: Drop main_back_button
The 'Back' button in main view was only needed for wizard->properties
case and now we don't have this UI transition anymore so this button is
now redundant.
https://bugzilla.gnome.org/show_bug.cgi?id=741046
data/ui/properties-toolbar.ui | 24 ------------------------
src/properties-toolbar.vala | 14 +++-----------
2 files changed, 3 insertions(+), 35 deletions(-)
---
diff --git a/data/ui/properties-toolbar.ui b/data/ui/properties-toolbar.ui
index dee634c..c9a3540 100644
--- a/data/ui/properties-toolbar.ui
+++ b/data/ui/properties-toolbar.ui
@@ -15,30 +15,6 @@
<class name="titlebar"/>
</style>
- <child>
- <object class="GtkButton" id="main_back_button">
- <property name="visible">True</property>
- <property name="valign">center</property>
- <signal name="clicked" handler="on_main_back_clicked"/>
- <style>
- <class name="image-button"/>
- </style>
-
- <child internal-child="accessible">
- <object class="AtkObject" id="a11y-button5">
- <property name="accessible-name" translatable="yes">Back</property>
- </object>
- </child>
-
- <child>
- <object class="GtkImage" id="back_image">
- <property name="visible">True</property>
- <property name="icon-name">go-previous-symbolic</property>
- </object>
- </child>
- </object>
- </child>
-
<child type="title">
<object class="BoxesEditableEntry" id="title_entry">
<property name="visible">True</property>
diff --git a/src/properties-toolbar.vala b/src/properties-toolbar.vala
index 07641eb..f79170c 100644
--- a/src/properties-toolbar.vala
+++ b/src/properties-toolbar.vala
@@ -17,8 +17,6 @@ private class Boxes.PropertiesToolbar: Gtk.Stack {
public Gtk.HeaderBar main;
[GtkChild]
- public Gtk.Button main_back_button;
- [GtkChild]
public Gtk.Button troubleshooting_back_button;
[GtkChild]
@@ -43,15 +41,10 @@ private class Boxes.PropertiesToolbar: Gtk.Stack {
}
public void click_back_button () {
- if (page == PropsWindowPage.MAIN)
- main_back_button.clicked ();
- else
- troubleshooting_back_button.clicked ();
- }
+ if (page != PropsWindowPage.TROUBLESHOOTING_LOG)
+ return;
- [GtkCallback]
- private void on_main_back_clicked () requires (page == PropsWindowPage.MAIN) {
- props_window.revert_state ();
+ troubleshooting_back_button.clicked ();
}
[GtkCallback]
@@ -75,7 +68,6 @@ private class Boxes.PropertiesToolbar: Gtk.Stack {
}
private void ui_state_changed () {
- main_back_button.visible = (window.previous_ui_state == UIState.WIZARD);
main.show_close_button = (window.previous_ui_state != UIState.WIZARD);
if (item_name_id != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]