[gnome-mahjongg/arnaudb/wip/gtk4: 36/41] Adapt to ScrolledWindow API.




commit b31d497fa5f4241027168a78adacfe7edb1559fe
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Apr 18 14:35:59 2020 +0200

    Adapt to ScrolledWindow API.

 src/score-dialog.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index 0f0c981..2cb3ffc 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -59,8 +59,8 @@ public class ScoreDialog : Dialog
         size_combo.add_attribute (renderer, "text", 0);
         hbox.append (size_combo);
 
-        var scroll = new ScrolledWindow (null, null);
-        scroll.shadow_type = ShadowType.ETCHED_IN;
+        var scroll = new ScrolledWindow ();
+        scroll.has_frame = true;
         scroll.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
         scroll.hexpand = true;
         scroll.vexpand = true;
@@ -75,7 +75,7 @@ public class ScoreDialog : Dialog
         renderer.xalign = 1.0f;
         scores.insert_column_with_attributes (-1, _("Time"), renderer, "text", 1, "weight", 2);
         scores.model = score_model;
-        scroll.add (scores);
+        scroll.set_child (scores);
 
         foreach (var entry in history.entries)
             entry_added_cb (entry);


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