[gnome-games/wip/exalm/statuspage: 5/6] remote-display: Replace with HdyStatusPage
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/statuspage: 5/6] remote-display: Replace with HdyStatusPage
- Date: Mon, 28 Dec 2020 22:17:07 +0000 (UTC)
commit 2d5fd40ab4cec97d1562f7825f39d5db66e27d67
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Dec 29 03:04:02 2020 +0500
remote-display: Replace with HdyStatusPage
src/command/command-runner.vala | 6 ++++-
src/meson.build | 1 -
src/org.gnome.Games.gresource.xml | 1 -
src/ui/remote-display.ui | 54 ---------------------------------------
src/ui/remote-display.vala | 5 ----
5 files changed, 5 insertions(+), 62 deletions(-)
---
diff --git a/src/command/command-runner.vala b/src/command/command-runner.vala
index 6fb1d473..4f5ffc6e 100644
--- a/src/command/command-runner.vala
+++ b/src/command/command-runner.vala
@@ -38,7 +38,11 @@ public class Games.CommandRunner : Object, Runner {
}
public Gtk.Widget get_display () {
- return new RemoteDisplay ();
+ return new Hdy.StatusPage () {
+ icon_name = "preferences-desktop-remote-desktop-symbolic",
+ title = _("Use the game’s own window to play it"),
+ description = _("This game isn’t integrated with GNOME Games.")
+ };
}
public HeaderBarWidget? get_extra_widget () {
diff --git a/src/meson.build b/src/meson.build
index 9932ecbf..50ac4d12 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -157,7 +157,6 @@ vala_sources = [
'ui/media-menu-button.vala',
'ui/platform-list-item.vala',
'ui/platforms-page.vala',
- 'ui/remote-display.vala',
'ui/search-bar.vala',
'ui/selection-action-bar.vala',
'ui/snapshot-row.vala',
diff --git a/src/org.gnome.Games.gresource.xml b/src/org.gnome.Games.gresource.xml
index 85a687a9..c99a9d96 100644
--- a/src/org.gnome.Games.gresource.xml
+++ b/src/org.gnome.Games.gresource.xml
@@ -57,7 +57,6 @@
<file preprocess="xml-stripblanks">ui/media-menu-button.ui</file>
<file preprocess="xml-stripblanks">ui/platforms-page.ui</file>
<file preprocess="xml-stripblanks">ui/platform-list-item.ui</file>
- <file preprocess="xml-stripblanks">ui/remote-display.ui</file>
<file preprocess="xml-stripblanks">ui/search-bar.ui</file>
<file preprocess="xml-stripblanks">ui/selection-action-bar.ui</file>
<file preprocess="xml-stripblanks">ui/snapshot-row.ui</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]