[gnome-games/gnome-3-36] runner: Require extra widgets to implement HeaderBarWidget



commit e3d71ba12daa7bdd2526617d838d880e37b44409
Author: sevagen <sevagenv gmail com>
Date:   Tue Feb 18 22:07:51 2020 +0530

    runner: Require extra widgets to implement HeaderBarWidget

 plugins/nintendo-ds/src/nintendo-ds-runner.vala | 2 +-
 src/command/command-runner.vala                 | 2 +-
 src/core/runner.vala                            | 2 +-
 src/retro/retro-runner.vala                     | 2 +-
 src/ui/display-header-bar.vala                  | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/nintendo-ds/src/nintendo-ds-runner.vala b/plugins/nintendo-ds/src/nintendo-ds-runner.vala
index 037424a9..131a159c 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-runner.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-runner.vala
@@ -69,7 +69,7 @@ private class Games.NintendoDsRunner : RetroRunner {
                }
        }
 
-       public override Gtk.Widget? get_extra_widget () {
+       public override HeaderBarWidget? get_extra_widget () {
                if (!core_supports_layouts ())
                        return null;
 
diff --git a/src/command/command-runner.vala b/src/command/command-runner.vala
index 1adeeb7a..17c36597 100644
--- a/src/command/command-runner.vala
+++ b/src/command/command-runner.vala
@@ -49,7 +49,7 @@ public class Games.CommandRunner : Object, Runner {
                return new RemoteDisplay ();
        }
 
-       public Gtk.Widget? get_extra_widget () {
+       public HeaderBarWidget? get_extra_widget () {
                return null;
        }
 
diff --git a/src/core/runner.vala b/src/core/runner.vala
index 1bedceca..acece065 100644
--- a/src/core/runner.vala
+++ b/src/core/runner.vala
@@ -12,7 +12,7 @@ public interface Games.Runner : Object {
        public abstract InputMode input_mode { get; set; }
 
        public abstract Gtk.Widget get_display ();
-       public abstract Gtk.Widget? get_extra_widget ();
+       public abstract HeaderBarWidget? get_extra_widget ();
 
        public abstract bool try_init_phase_one (out string error_message);
        public abstract void start () throws Error;
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 6629c532..941aa788 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -162,7 +162,7 @@ public class Games.RetroRunner : Object, Runner {
                return view;
        }
 
-       public virtual Gtk.Widget? get_extra_widget () {
+       public virtual HeaderBarWidget? get_extra_widget () {
                return null;
        }
 
diff --git a/src/ui/display-header-bar.vala b/src/ui/display-header-bar.vala
index f98221f5..4595bf33 100644
--- a/src/ui/display-header-bar.vala
+++ b/src/ui/display-header-bar.vala
@@ -36,8 +36,8 @@ private class Games.DisplayHeaderBar : Gtk.Bin {
                }
        }
 
-       private Gtk.Widget _extra_widget;
-       private Gtk.Widget extra_widget {
+       private HeaderBarWidget _extra_widget;
+       private HeaderBarWidget extra_widget {
                get { return _extra_widget; }
                set {
                        if (extra_widget == value)


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