elementary / calendar

Desktop calendar app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
130 stars 39 forks source link

Fix day in month in Grid with GLib 2.73.1+ #763

Closed jtojnar closed 1 year ago

jtojnar commented 1 year ago

GLib 2.73.1 no longer fires notify signal for properties set during instantiation. This resulted in the label remaining empty. Now, the Grid.update_day would also run and set date property but that did not have an effect – probably because the date did not change.

We need to set the initial label ourselves. To avoid code duplication, we can just use GBinding.

Fixes: https://github.com/elementary/calendar/issues/761

cc @bobby285271

jtojnar commented 1 year ago

Thanks, applied the suggestions, seems to still work fine.