gui/search-button: Replace "context" property with context getter method
This is the last remaining widget whose `context` property was bound to GcalWindow's on construction and was null-asserted before setting the value, making the FIXME comment unnecessary. Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1463 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/702>
This commit is contained in:
@@ -1221,12 +1221,6 @@ gcal_window_constructed (GObject *object)
|
||||
if (maximized)
|
||||
gtk_window_maximize (GTK_WINDOW (self));
|
||||
|
||||
/*
|
||||
* FIXME: this is a hack around the issue that happens when trying to bind
|
||||
* these properties using the GtkBuilder .ui file.
|
||||
*/
|
||||
g_object_bind_property (self, "context", self->search_button, "context", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
|
||||
|
||||
/* CSS */
|
||||
load_css_providers (self);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user