[gnome-games] platforms-view: Rename PlatformsView to PlatformsPage
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] platforms-view: Rename PlatformsView to PlatformsPage
- Date: Fri, 29 May 2020 16:29:25 +0000 (UTC)
commit 7cb72137803594386d782a19edf820500d95bf54
Author: Neville <nevilleantony98 gmail com>
Date: Fri May 29 21:12:30 2020 +0530
platforms-view: Rename PlatformsView to PlatformsPage
data/org.gnome.Games.gresource.xml | 2 +-
data/ui/collection-view.ui | 4 ++--
data/ui/{platforms-view.ui => platforms-page.ui} | 2 +-
src/meson.build | 2 +-
src/ui/collection-view.vala | 24 +++++++++++-----------
.../{platforms-view.vala => platforms-page.vala} | 4 ++--
6 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/data/org.gnome.Games.gresource.xml b/data/org.gnome.Games.gresource.xml
index bb7d55db..8aadaf51 100644
--- a/data/org.gnome.Games.gresource.xml
+++ b/data/org.gnome.Games.gresource.xml
@@ -27,7 +27,7 @@
<file preprocess="xml-stripblanks">ui/keyboard-mapper.ui</file>
<file preprocess="xml-stripblanks">ui/keyboard-tester.ui</file>
<file preprocess="xml-stripblanks">ui/media-menu-button.ui</file>
- <file preprocess="xml-stripblanks">ui/platforms-view.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/preferences-page.ui</file>
<file preprocess="xml-stripblanks">ui/preferences-page-controllers.ui</file>
diff --git a/data/ui/collection-view.ui b/data/ui/collection-view.ui
index 6c866b3e..285be521 100644
--- a/data/ui/collection-view.ui
+++ b/data/ui/collection-view.ui
@@ -107,7 +107,7 @@
<object class="HdyHeaderBar" id="subview_header_bar">
<property name="visible">True</property>
<property name="show_close_button">True</property>
- <property name="title" bind-source="platform_view" bind-property="subview-title"/>
+ <property name="title" bind-source="platforms_page" bind-property="subview-title"/>
<child>
<object class="GtkButton">
<property name="visible">True</property>
@@ -212,7 +212,7 @@
</packing>
</child>
<child>
- <object class="GamesPlatformsView" id="platform_view">
+ <object class="GamesPlatformsPage" id="platforms_page">
<property name="visible">True</property>
<property name="is-folded" bind-source="GamesCollectionView" bind-property="is-folded"
bind-flags="bidirectional"/>
<property name="is-subview-open" bind-source="GamesCollectionView"
bind-property="is-subview-open" bind-flags="bidirectional"/>
diff --git a/data/ui/platforms-view.ui b/data/ui/platforms-page.ui
similarity index 97%
rename from data/ui/platforms-view.ui
rename to data/ui/platforms-page.ui
index 3e6d5d43..21c5b828 100644
--- a/data/ui/platforms-view.ui
+++ b/data/ui/platforms-page.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.24"/>
- <template class="GamesPlatformsView" parent="GtkBin">
+ <template class="GamesPlatformsPage" parent="GtkBin">
<property name="visible">True</property>
<property name="expand">True</property>
<signal name="map" after="yes" handler="on_map"/>
diff --git a/src/meson.build b/src/meson.build
index c712c1db..00d6ce1b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -124,7 +124,7 @@ vala_sources = [
'ui/media-menu-button.vala',
'ui/message-dialog.vala',
'ui/platform-list-item.vala',
- 'ui/platforms-view.vala',
+ 'ui/platforms-page.vala',
'ui/preferences-page.vala',
'ui/preferences-page-controllers.vala',
'ui/preferences-page-import-export.vala',
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index 71aa40d2..8e258fb3 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -25,7 +25,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
[GtkChild]
private GamesPage games_page;
[GtkChild]
- private PlatformsView platform_view;
+ private PlatformsPage platforms_page;
[GtkChild]
private Gtk.Stack empty_stack;
[GtkChild]
@@ -71,7 +71,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
else
filtering_terms = value.split (" ");
- platform_view.set_filter (filtering_terms);
+ platforms_page.set_filter (filtering_terms);
games_page.set_filter (filtering_terms);
}
}
@@ -85,7 +85,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
_game_model = value;
games_page.game_model = game_model;
- platform_view.game_model = game_model;
+ platforms_page.game_model = game_model;
is_collection_empty = game_model.get_n_items () == 0;
game_model.items_changed.connect (() => {
@@ -107,7 +107,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
var icon_name = Config.APPLICATION_ID + "-symbolic";
viewstack.child_set (games_page, "icon-name", icon_name);
- swipe_group.add_swipeable (platform_view.get_leaflet ());
+ swipe_group.add_swipeable (platforms_page.get_leaflet ());
konami_code = new KonamiCode (window);
konami_code.code_performed.connect (on_konami_code_performed);
@@ -195,8 +195,8 @@ private class Games.CollectionView : Gtk.Box, UiView {
return true;
default:
- if (viewstack.visible_child == platform_view)
- return platform_view.gamepad_button_press_event (event);
+ if (viewstack.visible_child == platforms_page)
+ return platforms_page.gamepad_button_press_event (event);
else
return games_page.gamepad_button_press_event (event);
}
@@ -209,8 +209,8 @@ private class Games.CollectionView : Gtk.Box, UiView {
if (!get_mapped ())
return false;
- if (viewstack.visible_child == platform_view)
- return platform_view.gamepad_button_release_event (event);
+ if (viewstack.visible_child == platforms_page)
+ return platforms_page.gamepad_button_release_event (event);
else
return games_page.gamepad_button_release_event (event);
}
@@ -222,8 +222,8 @@ private class Games.CollectionView : Gtk.Box, UiView {
if (!get_mapped ())
return false;
- if (viewstack.visible_child == platform_view)
- return platform_view.gamepad_absolute_axis_event (event);
+ if (viewstack.visible_child == platforms_page)
+ return platforms_page.gamepad_absolute_axis_event (event);
else
return games_page.gamepad_absolute_axis_event (event);
}
@@ -260,7 +260,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
if (viewstack.visible_child == games_page)
games_page.reset_scroll_position ();
else
- platform_view.reset ();
+ platforms_page.reset ();
}
[GtkCallback]
@@ -271,7 +271,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
else
empty_stack.visible_child = empty_search;
- // Changing the filtering_text for the PlatformView might
+ // Changing the filtering_text for the PlatformsPage might
// cause the currently selected sidebar row to become empty and therefore
// hidden. In this case the first visible row will become selected and
// this causes the search bar to lose focus so we have to regrab it here
diff --git a/src/ui/platforms-view.vala b/src/ui/platforms-page.vala
similarity index 98%
rename from src/ui/platforms-view.vala
rename to src/ui/platforms-page.vala
index 1b7681a2..d38ffecd 100644
--- a/src/ui/platforms-view.vala
+++ b/src/ui/platforms-page.vala
@@ -1,7 +1,7 @@
// This file is part of GNOME Games. License: GPL-3.0+.
-[GtkTemplate (ui = "/org/gnome/Games/ui/platforms-view.ui")]
-private class Games.PlatformsView : Gtk.Bin {
+[GtkTemplate (ui = "/org/gnome/Games/ui/platforms-page.ui")]
+private class Games.PlatformsPage : Gtk.Bin {
public signal void game_activated (Game game);
[GtkChild]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]