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:
Hari Rana
2025-06-28 14:01:11 -04:00
parent e8249e9e43
commit 73abcf19b0
2 changed files with 3 additions and 7 deletions
+3 -5
View File
@@ -35,12 +35,10 @@ template $GcalEventWidget: Widget {
"content",
]
Adw.Squeezer squeezer {
hexpand: false;
homogeneous: false;
Adw.Clamp clamp {
orientation: vertical;
Box vertical_box {
child: Box vertical_box {
visible: bind $get_vertical_enabled(template.event, template.orientation) as <bool>;
orientation: vertical;
@@ -66,7 +64,7 @@ template $GcalEventWidget: Widget {
min-lines: 1;
text-overflow: ellipsize_end;
}
}
};
Box horizontal_box {
spacing: 4;
-2
View File
@@ -56,7 +56,6 @@ struct _GcalEventWidget
GtkWidget *timestamp_label;
GtkWidget *edge;
GtkWidget *overflow_bin;
GtkWidget *squeezer;
GtkWidget *summary_inscription;
GtkWidget *vertical_box;
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, overflow_bin);
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, vertical_box);