[gnome-mines/arnaudb/wip/gtk4: 77/85] Adapt to GtkAspectFrame API.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines/arnaudb/wip/gtk4: 77/85] Adapt to GtkAspectFrame API.
- Date: Wed, 9 Sep 2020 15:04:08 +0000 (UTC)
commit 2a90714dd431c731028475f166a248d1328c4639
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Apr 17 18:46:09 2020 +0200
Adapt to GtkAspectFrame API.
src/interface.ui | 6 ------
src/minefield-view.vala | 3 +--
src/theme-selector-dialog.vala | 2 +-
3 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/interface.ui b/src/interface.ui
index 68968c9..8a76c0f 100644
--- a/src/interface.ui
+++ b/src/interface.ui
@@ -36,8 +36,6 @@
<property name="child">
<object class="GtkAspectFrame" id="new_game_screen">
<property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
<property name="obey_child">False</property>
<child>
<object class="GtkGrid" id="new_game_grid">
@@ -98,8 +96,6 @@
<property name="child">
<object class="GtkAspectFrame" id="custom_game_screen">
<property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
<child>
<object class="GtkGrid" id="custom_game_grid">
<property name="can_focus">False</property>
@@ -234,8 +230,6 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
<property name="xalign">0.5</property>
<property name="obey_child">False</property>
<child>
diff --git a/src/minefield-view.vala b/src/minefield-view.vala
index 3afd398..5fd98ad 100644
--- a/src/minefield-view.vala
+++ b/src/minefield-view.vala
@@ -156,8 +156,7 @@ public class MinefieldView : Gtk.Widget
layout = new Gtk.BinLayout ();
set_layout_manager (layout);
- frame = new Gtk.AspectFrame (/* label */ null, /* xalign */ 0.5f, /* yalign */ 0.5f, /* ratio */
1.0f, /* obey-child */ false);
- frame.shadow_type = Gtk.ShadowType.NONE;
+ frame = new Gtk.AspectFrame (/* xalign */ 0.5f, /* yalign */ 0.5f, /* ratio */ 1.0f, /* obey-child
*/ false);
frame.insert_after (this, /* insert first */ null);
grid = new Gtk.Grid ();
diff --git a/src/theme-selector-dialog.vala b/src/theme-selector-dialog.vala
index 5c6b703..e81d6b1 100644
--- a/src/theme-selector-dialog.vala
+++ b/src/theme-selector-dialog.vala
@@ -88,7 +88,7 @@ public class ThemeSelectorDialog : Gtk.Dialog
view.minefield = new PreviewField ();
var box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
- var frame = new Gtk.AspectFrame (null, 0.5f, 0.5f, 1.0f, false);
+ var frame = new Gtk.AspectFrame (/* xalign */ 0.5f, /* xalign */ 0.5f, /* ratio */ 1.0f, /* obey
child */ false);
frame.margin_start = 6;
frame.margin_end = 6;
frame.margin_top = 6;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]