[gnome-games] runner: Rename can-support-savestates to is-integrated



commit 741ed24fe1c835e153cdf640faef822eeb3fe2b7
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jan 28 18:50:08 2020 +0500

    runner: Rename can-support-savestates to is-integrated
    
    Since the same property is used to disable restarting now, the old name
    doesn't make much sense anymore.

 src/command/command-runner.vala | 2 +-
 src/core/runner.vala            | 2 +-
 src/retro/retro-runner.vala     | 2 +-
 src/ui/display-header-bar.vala  | 2 +-
 src/ui/display-view.vala        | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/command/command-runner.vala b/src/command/command-runner.vala
index 9a945c80..1adeeb7a 100644
--- a/src/command/command-runner.vala
+++ b/src/command/command-runner.vala
@@ -13,7 +13,7 @@ public class Games.CommandRunner : Object, Runner {
                get { return false; }
        }
 
-       public bool can_support_savestates {
+       public bool is_integrated {
                get { return false; }
        }
 
diff --git a/src/core/runner.vala b/src/core/runner.vala
index 82e71976..1bedceca 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -7,7 +7,7 @@ public interface Games.Runner : Object {
        public abstract bool can_fullscreen { get; }
        public abstract bool can_resume { get; }
        public abstract bool supports_savestates { get; }
-       public abstract bool can_support_savestates { get; } // Now or in the future
+       public abstract bool is_integrated { get; }
        public abstract MediaSet? media_set { get; }
        public abstract InputMode input_mode { get; set; }
 
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index c9d4e502..0325bf7e 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -18,7 +18,7 @@ public class Games.RetroRunner : Object, Runner {
                get { return core.get_can_access_state (); }
        }
 
-       public bool can_support_savestates {
+       public bool is_integrated {
                get { return true; }
        }
 
diff --git a/src/ui/display-header-bar.vala b/src/ui/display-header-bar.vala
index 45158831..6bab882d 100644
--- a/src/ui/display-header-bar.vala
+++ b/src/ui/display-header-bar.vala
@@ -38,7 +38,7 @@ private class Games.DisplayHeaderBar : Gtk.Bin {
                        if (runner != null) {
                                extra_widget = runner.get_extra_widget ();
 
-                               secondary_menu_button.visible = runner.can_support_savestates;
+                               secondary_menu_button.visible = runner.is_integrated;
                                savestates_menu_button.sensitive = runner.supports_savestates;
                        }
                        else
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index 60823f80..a00d26d1 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -431,7 +431,7 @@ private class Games.DisplayView : Object, UiView {
 
                box.runner.pause ();
 
-               if (!box.runner.can_support_savestates) {
+               if (!box.runner.is_integrated) {
                        // Game does not and will not support savestates (e.g. Steam games)
                        // => Progress cannot be saved so game can be quit safely
                        box.runner.stop ();


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