[gnome-boxes/wip/less-dialogs2: 13/14] properties-toolbar: Add click_back_button()



commit 3a5fce5dbff889c8080c830079dd44227d8c5d38
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.

 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]