[gnome-games/wip/exalm/unified-window: 11/26] collection-view: Bind subview title directly



commit 2f1a84b1793342478115bb1214d89858017dbe42
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Apr 10 03:17:46 2020 +0500

    collection-view: Bind subview title directly
    
    There's no need to have an intermediate property anymore.

 data/ui/collection-view.ui  | 3 +--
 src/ui/collection-view.vala | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/data/ui/collection-view.ui b/data/ui/collection-view.ui
index 57872117..e84ff8b0 100644
--- a/data/ui/collection-view.ui
+++ b/data/ui/collection-view.ui
@@ -110,7 +110,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="GamesCollectionView" bind-property="subview-title" 
bind-flags="bidirectional"/>
+            <property name="title" bind-source="platform_view" bind-property="subview-title"/>
             <style>
               <class name="titlebar"/>
             </style>
@@ -222,7 +222,6 @@
                     <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"/>
-                    <property name="subview-title" bind-source="GamesCollectionView" 
bind-property="subview-title" bind-flags="bidirectional"/>
                     <signal name="game-activated" handler="on_game_activated"/>
                   </object>
                   <packing>
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index 86b1dd9e..8afde162 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -89,7 +89,6 @@ private class Games.CollectionView : Gtk.Box, UiView {
        public bool is_folded { get; set; }
        public bool is_showing_bottom_bar { get; set; }
        public bool is_subview_open { get; set; }
-       public string subview_title { get; set; }
 
        private KonamiCode konami_code;
 


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