[gnome-boxes] properties-toolbar: Add click_back_button()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties-toolbar: Add click_back_button()
- Date: Fri, 5 Dec 2014 13:30:51 +0000 (UTC)
commit 5b49b21377c421fe554b82869d4a7c1f83494a4a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Dec 4 17:04:35 2014 +0000
properties-toolbar: Add click_back_button()
Add API to click the appropriate back button in the properties topbar,
depending on which headerbar is current.
https://bugzilla.gnome.org/show_bug.cgi?id=741047
src/properties-toolbar.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/properties-toolbar.vala b/src/properties-toolbar.vala
index 475c99c..c717c6e 100644
--- a/src/properties-toolbar.vala
+++ b/src/properties-toolbar.vala
@@ -42,6 +42,13 @@ private class Boxes.PropertiesToolbar: Gtk.Stack {
window.notify["ui-state"].connect (ui_state_changed);
}
+ public void click_back_button () {
+ if (page == PropsWindowPage.MAIN)
+ main_back_button.clicked ();
+ else
+ troubleshooting_back_button.clicked ();
+ }
+
[GtkCallback]
private void on_main_back_clicked () requires (page == PropsWindowPage.MAIN) {
props_window.revert_state ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]