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="orientation">vertical</property>
<child>
<object class="HdyColumn" id="column">
<object class="HdyClamp" id="clamp">
<property name="visible">True</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>
<child>
<object class="GtkBox" id="column_view">

View File

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