gui/event-widget: Use AdwClamp
AdwSqueezer is deprecated. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/587>
This commit is contained in:
@@ -35,12 +35,10 @@ template $GcalEventWidget: Widget {
|
|||||||
"content",
|
"content",
|
||||||
]
|
]
|
||||||
|
|
||||||
Adw.Squeezer squeezer {
|
Adw.Clamp clamp {
|
||||||
hexpand: false;
|
|
||||||
homogeneous: false;
|
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
|
|
||||||
Box vertical_box {
|
child: Box vertical_box {
|
||||||
visible: bind $get_vertical_enabled(template.event, template.orientation) as <bool>;
|
visible: bind $get_vertical_enabled(template.event, template.orientation) as <bool>;
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
|
|
||||||
@@ -66,7 +64,7 @@ template $GcalEventWidget: Widget {
|
|||||||
min-lines: 1;
|
min-lines: 1;
|
||||||
text-overflow: ellipsize_end;
|
text-overflow: ellipsize_end;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
Box horizontal_box {
|
Box horizontal_box {
|
||||||
spacing: 4;
|
spacing: 4;
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ struct _GcalEventWidget
|
|||||||
GtkWidget *timestamp_label;
|
GtkWidget *timestamp_label;
|
||||||
GtkWidget *edge;
|
GtkWidget *edge;
|
||||||
GtkWidget *overflow_bin;
|
GtkWidget *overflow_bin;
|
||||||
GtkWidget *squeezer;
|
|
||||||
GtkWidget *summary_inscription;
|
GtkWidget *summary_inscription;
|
||||||
GtkWidget *vertical_box;
|
GtkWidget *vertical_box;
|
||||||
GtkEventController *drag_source;
|
GtkEventController *drag_source;
|
||||||
@@ -886,7 +885,6 @@ gcal_event_widget_class_init (GcalEventWidgetClass *klass)
|
|||||||
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, edge);
|
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, edge);
|
||||||
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, overflow_bin);
|
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, overflow_bin);
|
||||||
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, timestamp_label);
|
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, timestamp_label);
|
||||||
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, squeezer);
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, summary_inscription);
|
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, summary_inscription);
|
||||||
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, vertical_box);
|
gtk_widget_class_bind_template_child (widget_class, GcalEventWidget, vertical_box);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user