[gnome-taquin/arnaudb/wip/gtk4] Comment for now.



commit cc54de617b600f0f0255e661e7f3d212cbdbdd20
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Sep 29 17:34:55 2020 +0200

    Comment for now.

 src/game-actionbar.vala | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/game-actionbar.vala b/src/game-actionbar.vala
index edf8290..d494e5a 100644
--- a/src/game-actionbar.vala
+++ b/src/game-actionbar.vala
@@ -110,23 +110,23 @@ private class GameActionBarPlaceHolder : Widget, AdaptativeWidget
     internal GameActionBarPlaceHolder (GameActionBar _actionbar)
     {
         actionbar = _actionbar;
-        actionbar.size_allocate.connect (set_height);
-        set_height ();
+//        actionbar.size_allocate.connect (set_height);
+//        set_height ();
         revealer.set_reveal_child (true);    // seems like setting it in the UI file does not work, while it 
is OK for GameActionBar...
     }
 
-    private void set_height ()
-    {
-        Requisition natural_size;
-        Widget? widget = actionbar.get_first_child ();
-        if (widget == null || !(widget is Revealer))
-            assert_not_reached ();
-        widget = ((Revealer) (!) widget).get_child ();
-        if (widget == null)
-            return;
-        ((!) widget).get_preferred_size (/* minimum size */ null, out natural_size);
-        placeholder_child.height_request = natural_size.height;
-    }
+//    private void set_height ()
+//    {
+//        Requisition natural_size;
+//        Widget? widget = actionbar.get_first_child ();
+//        if (widget == null || !(widget is Revealer))
+//            assert_not_reached ();
+//        widget = ((Revealer) (!) widget).get_child ();
+//        if (widget == null)
+//            return;
+//        ((!) widget).get_preferred_size (/* minimum size */ null, out natural_size);
+//        placeholder_child.height_request = natural_size.height;
+//    }
 
     /*\
     * * adaptative stuff


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