1
0
mirror of https://gitlab.gnome.org/World/tootle synced 2025-02-17 03:51:11 +01:00

adapt for libhandy >= 0.82 (#186)

This commit is contained in:
David Heidelberg 2020-07-06 18:55:13 +02:00 committed by GitHub
parent 366af1ef49
commit 204b687bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -23,10 +23,10 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="HdyColumn" id="column"> <object class="HdyClamp" id="clamp">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="maximum_width">628</property> <property name="maximum_size">628</property>
<property name="linear_growth_width">628</property> <property name="linear_growth_width">628</property>
<child> <child>
<object class="GtkBox" id="column_view"> <object class="GtkBox" id="column_view">

View File

@ -17,7 +17,7 @@ public class Tootle.Views.Base : Box {
[GtkChild] [GtkChild]
protected Box view; protected Box view;
[GtkChild] [GtkChild]
protected Hdy.Column column; protected Hdy.Clamp clamp;
[GtkChild] [GtkChild]
protected Box column_view; protected Box column_view;
[GtkChild] [GtkChild]
@ -103,7 +103,7 @@ public class Tootle.Views.Base : Box {
Allocation alloc; Allocation alloc;
get_allocation (out alloc); get_allocation (out alloc);
var target_w = column.maximum_width; var target_w = clamp.maximum_size;
var view_w = alloc.width; var view_w = alloc.width;
var ctx = view.get_style_context (); var ctx = view.get_style_context ();