[gnome-sudoku/arnaudb/wip/gtk4: 21/25] Adapt to AspectFrame API.



commit 7c0a60208fcb36778814e58f467784ae7808614e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Apr 17 20:43:58 2020 +0200

    Adapt to AspectFrame API.

 data/gnome-sudoku.ui | 1 -
 src/sudoku-view.vala | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/data/gnome-sudoku.ui b/data/gnome-sudoku.ui
index 82a6820..e8b2f93 100644
--- a/data/gnome-sudoku.ui
+++ b/data/gnome-sudoku.ui
@@ -206,7 +206,6 @@
                 <property name="name">frame</property>
                 <property name="child">
                   <object class="GtkAspectFrame"> <!-- frame -->
-                    <property name="shadow-type">GTK_SHADOW_NONE</property>
                     <property name="obey-child">False</property>
                     <property name="ratio">1.4</property>
                     <child>
diff --git a/src/sudoku-view.vala b/src/sudoku-view.vala
index b6bc5be..da63a64 100644
--- a/src/sudoku-view.vala
+++ b/src/sudoku-view.vala
@@ -491,8 +491,7 @@ public class SudokuView : Widget
         BinLayout layout = new BinLayout ();
         set_layout_manager (layout);
 
-        frame = new AspectFrame (/* no title */ null, /* xalign */ 0.5f, /* yalign */ 0.5f, /* ratio */ 
1.0f, /* obey child */ false);
-        frame.shadow_type = ShadowType.NONE;
+        frame = new AspectFrame (/* xalign */ 0.5f, /* yalign */ 0.5f, /* ratio */ 1.0f, /* obey child */ 
false);
         frame.insert_after (this, /* insert first */ null);
 
         overlay = new Overlay ();


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