Use a GtkListBox and bind from the model. Create rows from the model
items, and bind properties as needed.
The action target is set only when the calendar is writable because
setting an invalid action+target pair makes the row insensitive.
Remove the ancient menu icon hack.
- Fix a bug where clicking the "Add Event" button created an empty title in the event editor dialog.
- Add "error" class when the user writes an invalid event name.
- Add new function to validate event name.
Because the sections are split into files, the event editor will need a signal to check that each section is correct, and each section will have to emit the signal. This will need to be done in a future commit.
The "Done" button was apparently meant for read-only events,
while the "Save" action was for everything else.
It didn't work correctly because of a mismatch between code and UI XML.
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1142
This fixes an issue on the dark style preference where selecting cells would cause the month separators to lose their color. The dark style would override the month cells, which would higher its specificity, and thus would prioritize it over the selectors. This commit places everything in order, so we can freely define colors without playing with specificity.
Holding and releasing the weather service makes sure it
is stopped whenever no UI depends on it.
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Splitting an activation flag from starting and stopping
the service makes it possible to flag the service as
wanted from the settings and still due use counting in a
subsequent commit.
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
This helps in preparation of splitting out a dedicated
activation flag from the actually starting and stopping
the service.
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
This is needed as the location service is not properly
stopped from the portal backend if running in a sandbox
otherwise.
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Libadwaita's about window widget let's expose debug information, that's
useful for bug reports, users can open up the about window and just
copy/paste debug information on the bug report.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1114
Currently, if you have lots of calendars you need to scroll all the way
to the bottom of list to have access to the "New Calendar" button.
This commit moves the "New Calendar" button to be on a bottom toolbar
provided by AdwToolbarView. It makes the button always on view and easy
to access.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1051