gcal-event-widget: Update labels when time-format changes
When the time format changes in Settings, events in the week/month views did not update at runtime. This connects the appropriate signal so the widget updates immediately. Fixes #1373 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/625>
This commit is contained in:
@@ -512,6 +512,13 @@ gcal_event_widget_set_event_internal (GcalEventWidget *self,
|
||||
self,
|
||||
G_CONNECT_SWAPPED);
|
||||
|
||||
g_signal_connect_object (self->context,
|
||||
"notify::time-format",
|
||||
G_CALLBACK (gcal_event_widget_update_timestamp),
|
||||
self,
|
||||
G_CONNECT_SWAPPED);
|
||||
|
||||
|
||||
/* Tooltip */
|
||||
gcal_event_widget_set_event_tooltip (self, event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user