quick-add-popover: Rework population and update

This emits the `changed` signal, allowing us to filter out a wider
variety of calendars. It also allows us to remove the loops
that needed to re-run every time the user changed the default
calendar or closed the popover.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/362>
This commit is contained in:
Hari Rana
2025-11-18 11:44:29 -03:00
committed by Georges Basile Stavracas Neto
parent b83498cb1f
commit c624c9b53b
2 changed files with 54 additions and 76 deletions
+3 -2
View File
@@ -2,8 +2,8 @@ using Gtk 4.0;
using Adw 1;
template $GcalQuickAddPopover: Popover {
width-request: 360;
show => $gtk_widget_grab_focus(summary_entry);
width-request: 360;
styles [
"quick-add-popover",
@@ -56,12 +56,13 @@ template $GcalQuickAddPopover: Popover {
"undershoot-bottom",
]
child: ListBox calendars_listbox {
child: ListBox calendars_list_box {
selection-mode: none;
margin-start: 12;
margin-end: 12;
margin-top: 12;
margin-bottom: 12;
row-activated => $row_activated_cb(template) not-swapped;
styles [
"boxed-list",