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:
parent
366af1ef49
commit
204b687bfd
@ -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">
|
||||||
|
@ -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 ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user