[gnome-games] display-box: Bind can-fullscreen in xml



commit 162e9938b9a165501d5151f24dbce56b43615551
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Feb 18 22:43:03 2020 +0500

    display-box: Bind can-fullscreen in xml

 data/ui/display-box.ui  | 1 +
 src/ui/display-box.vala | 5 -----
 2 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/data/ui/display-box.ui b/data/ui/display-box.ui
index bcf12333..520bc48a 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -12,6 +12,7 @@
           <object class="GamesDisplayHeaderBar" id="fullscreen_header_bar">
             <property name="visible">True</property>
             <property name="show-title-buttons">False</property>
+            <property name="can-fullscreen" bind-source="GamesDisplayBox" bind-property="can-fullscreen" 
bind-flags="bidirectional"/>
             <property name="game-title" bind-source="GamesDisplayBox" bind-property="game-title" 
bind-flags="bidirectional"/>
             <property name="is-showing-snapshots" bind-source="GamesDisplayBox" 
bind-property="is-showing-snapshots" bind-flags="bidirectional"/>
             <signal name="notify::is-menu-open" handler="block_autohide_changed"/>
diff --git a/src/ui/display-box.vala b/src/ui/display-box.vala
index 6e446a6f..e459f3f6 100644
--- a/src/ui/display-box.vala
+++ b/src/ui/display-box.vala
@@ -71,11 +71,6 @@ private class Games.DisplayBox : Gtk.Bin {
 
        private int fullscreen_header_bar_height;
 
-       construct {
-               bind_property ("can-fullscreen", header_bar,
-                              "can-fullscreen", BindingFlags.BIDIRECTIONAL);
-       }
-
        public void display_running_game_failed (Game game, string error_message) {
                stack.visible_child = error_display;
                error_display.running_game_failed (game, error_message);


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