[gnome-games/wip/exalm/rebrand: 39/124] platform: Hardcode preferences rows
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 39/124] platform: Hardcode preferences rows
- Date: Sat, 19 Jun 2021 14:37:44 +0000 (UTC)
commit 158216f4a2600ff80c24685fef72973a807d2cdb
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Mar 29 20:25:28 2021 +0500
platform: Hardcode preferences rows
src/core/platform.vala | 4 ----
src/meson.build | 2 +-
...ge-platforms-retro-row.vala => preferences-page-platform-row.vala} | 4 ++--
src/preferences/preferences-page-platforms.vala | 2 +-
4 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/core/platform.vala b/src/core/platform.vala
index bf38a421..3d220395 100644
--- a/src/core/platform.vala
+++ b/src/core/platform.vala
@@ -29,10 +29,6 @@ public class Games.Platform : Object {
return mime_types;
}
- public Gtk.ListBoxRow get_row () {
- return new PreferencesPagePlatformsRetroRow (this);
- }
-
public virtual Type get_snapshot_type () {
return typeof (Snapshot);
}
diff --git a/src/meson.build b/src/meson.build
index 3f175b83..0d56fd5a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -89,8 +89,8 @@ vala_sources = [
'keyboard/keyboard-tester.vala',
'preferences/preferences-page-controllers.vala',
+ 'preferences/preferences-page-platform-row.vala',
'preferences/preferences-page-platforms.vala',
- 'preferences/preferences-page-platforms-retro-row.vala',
'preferences/preferences-page-video.vala',
'preferences/preferences-subpage.vala',
'preferences/preferences-subpage-gamepad.vala',
diff --git a/src/preferences/preferences-page-platforms-retro-row.vala
b/src/preferences/preferences-page-platform-row.vala
similarity index 90%
rename from src/preferences/preferences-page-platforms-retro-row.vala
rename to src/preferences/preferences-page-platform-row.vala
index 8f5ecc28..051fa286 100644
--- a/src/preferences/preferences-page-platforms-retro-row.vala
+++ b/src/preferences/preferences-page-platform-row.vala
@@ -1,11 +1,11 @@
// This file is part of GNOME Games. License: GPL-3.0+.
-private class Games.PreferencesPagePlatformsRetroRow : Hdy.ComboRow {
+private class Games.PreferencesPagePlatformRow : Hdy.ComboRow {
public Platform platform { get; construct; }
private ListStore model;
- public PreferencesPagePlatformsRetroRow (Platform platform) {
+ public PreferencesPagePlatformRow (Platform platform) {
Object (platform: platform);
}
diff --git a/src/preferences/preferences-page-platforms.vala b/src/preferences/preferences-page-platforms.vala
index 59864b8f..bd484af2 100644
--- a/src/preferences/preferences-page-platforms.vala
+++ b/src/preferences/preferences-page-platforms.vala
@@ -10,7 +10,7 @@ private class Games.PreferencesPagePlatforms : Hdy.PreferencesPage {
var platforms = register.get_all_platforms ();
foreach (var platform in platforms) {
- var row = platform.get_row ();
+ var row = new PreferencesPagePlatformRow (platform);
row.show ();
platforms_group.add (row);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]