[gnome-games] display-header-bar: Handle savestates back button click with on_back_clicked()



commit 9d5a734c4a6175eeca8ac867bc7dbc26af1626a9
Author: Yetizone <andreii lisita gmail com>
Date:   Wed Aug 14 19:02:43 2019 +0300

    display-header-bar: Handle savestates back button click with on_back_clicked()
    
    Remove unused on_savestates_back_clicked() callback

 data/ui/display-header-bar.ui  | 2 +-
 src/ui/display-header-bar.vala | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/data/ui/display-header-bar.ui b/data/ui/display-header-bar.ui
index 141c9e05..0aa3d53a 100644
--- a/data/ui/display-header-bar.ui
+++ b/data/ui/display-header-bar.ui
@@ -153,7 +153,7 @@
             <property name="can_focus">False</property>
             <property name="valign">center</property>
             <property name="use-underline">True</property>
-            <signal name="clicked" handler="on_savestates_back_clicked"/>
+            <signal name="clicked" handler="on_back_clicked"/>
             <style>
               <class name="image-button"/>
             </style>
diff --git a/src/ui/display-header-bar.vala b/src/ui/display-header-bar.vala
index 7b82972e..3742183a 100644
--- a/src/ui/display-header-bar.vala
+++ b/src/ui/display-header-bar.vala
@@ -134,12 +134,6 @@ private class Games.DisplayHeaderBar : Gtk.Stack {
                savestates_list_state.load_clicked ();
        }
 
-       [GtkCallback]
-       private void on_savestates_back_clicked () {
-               runner.preview_current_state ();
-               savestates_list_state.is_revealed = false;
-       }
-
        private void on_savestates_list_revealed_changed () {
                if (savestates_list_state.is_revealed)
                        set_visible_child (savestates_header_bar);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]