[gnome-games] collection-view: Rename deck and deck_stack
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] collection-view: Rename deck and deck_stack
- Date: Thu, 16 Jul 2020 14:51:49 +0000 (UTC)
commit 7df5c9f5beb620bdc504b5a40aa6f99a5a0d87a2
Author: Neville <nevilleantony98 gmail com>
Date: Wed Jul 15 17:47:56 2020 +0530
collection-view: Rename deck and deck_stack
Renames:
- deck -> platforms_deck (contains header_bar & subview_header_bar)
- deck_stack -> collections_deck (contains deck &
collection_subpage_header_bar)
data/ui/collection-view.ui | 6 +++---
src/ui/collection-view.vala | 22 +++++++++++-----------
2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/data/ui/collection-view.ui b/data/ui/collection-view.ui
index 2e821687..8d986d3a 100644
--- a/data/ui/collection-view.ui
+++ b/data/ui/collection-view.ui
@@ -16,10 +16,10 @@
<property name="visible">True</property>
<property name="transition-type">crossfade</property>
<child>
- <object class="HdyDeck" id="deck_stack">
+ <object class="HdyDeck" id="collections_deck">
<property name="visible">True</property>
<child>
- <object class="HdyDeck" id="deck">
+ <object class="HdyDeck" id="platforms_deck">
<property name="visible">True</property>
<property name="can-swipe-back">True</property>
<child>
@@ -535,7 +535,7 @@
<object class="HdySwipeGroup" id="swipe_group"/>
<object class="HdySwipeGroup" id="collections_swipe_group">
<swipeables>
- <swipeable name="deck_stack"/>
+ <swipeable name="collections_deck"/>
</swipeables>
</object>
<menu id="primary_menu">
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index 8759e3e3..8aa79f52 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -7,9 +7,9 @@ private class Games.CollectionView : Gtk.Box, UiView {
public signal void game_activated (Game game);
[GtkChild]
- private Hdy.Deck deck;
+ private Hdy.Deck platforms_deck;
[GtkChild]
- private Hdy.Deck deck_stack;
+ private Hdy.Deck collections_deck;
[GtkChild]
private Gtk.Stack header_bar_stack;
[GtkChild]
@@ -175,7 +175,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
(((window.get_direction () == Gtk.TextDirection.LTR) && keyval == Gdk.Key.Left) ||
((window.get_direction () == Gtk.TextDirection.RTL) && keyval == Gdk.Key.Right)) &&
!is_selection_mode &&
- (deck.navigate (Hdy.NavigationDirection.BACK) ||
+ (platforms_deck.navigate (Hdy.NavigationDirection.BACK) ||
collections_page.exit_subpage ())) {
return true;
}
@@ -382,11 +382,11 @@ private class Games.CollectionView : Gtk.Box, UiView {
}
else {
select_none ();
- header_bar_stack.visible_child = deck_stack;
+ header_bar_stack.visible_child = collections_deck;
if (collections_page.is_subpage_open)
- deck_stack.visible_child = collection_subpage_header_bar;
+ collections_deck.visible_child = collection_subpage_header_bar;
else
- deck_stack.visible_child = deck;
+ collections_deck.visible_child = platforms_deck;
}
update_bottom_bar ();
@@ -456,11 +456,11 @@ private class Games.CollectionView : Gtk.Box, UiView {
[GtkCallback]
private void on_folded_changed () {
if (is_folded) {
- deck.visible_child = is_subview_open ? subview_header_bar : header_bar;
- swipe_group.add_swipeable (deck);
+ platforms_deck.visible_child = is_subview_open ? subview_header_bar : header_bar;
+ swipe_group.add_swipeable (platforms_deck);
} else {
- swipe_group.remove_swipeable (deck);
- deck.visible_child = header_bar;
+ swipe_group.remove_swipeable (platforms_deck);
+ platforms_deck.visible_child = header_bar;
}
update_bottom_bar ();
@@ -483,6 +483,6 @@ private class Games.CollectionView : Gtk.Box, UiView {
[GtkCallback]
private void on_subview_back_clicked () {
- deck.navigate (Hdy.NavigationDirection.BACK);
+ platforms_deck.navigate (Hdy.NavigationDirection.BACK);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]