[gnome-tetravex/arnaudb/wip/gtk4: 38/42] Adapt to ScrolledWindow API.




commit 15c8fd252a85ee3f100d6b02d25148ec7538461a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Aug 4 16:04:30 2020 +0200

    Adapt to ScrolledWindow API.

 src/score-dialog.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index f2ef72f..de2714b 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -54,7 +54,7 @@ private class ScoreDialog : Dialog
         size_combo.show ();
         ((HeaderBar) get_header_bar ()).set_custom_title (size_combo);
 
-        ScrolledWindow scroll = new ScrolledWindow (null, null);
+        ScrolledWindow scroll = new ScrolledWindow ();
         scroll.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
         scroll.show ();
 
@@ -75,7 +75,7 @@ private class ScoreDialog : Dialog
         scores.hexpand = true;
         scores.vexpand = true;
         scores.show ();
-        scroll.add (scores);
+        scroll.set_child (scores);
 
         foreach (HistoryEntry entry in history.entries)
             entry_added_cb (entry);


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