1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

calls-account-overview: Adapt to event controller API changes

https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-event-controller-api-changes

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-15 17:09:00 -08:00
parent a80001bd0e
commit e5c73011e2

View file

@ -429,13 +429,13 @@ calls_account_overview_init (CallsAccountOverview *self)
-1);
gtk_window_set_transient_for (self->account_window, GTK_WINDOW (self));
self->key_controller = gtk_event_controller_key_new (GTK_WIDGET (self));
self->key_controller = gtk_event_controller_key_new ();
g_signal_connect (self->key_controller,
"key-pressed",
G_CALLBACK (on_key_pressed),
self);
self->key_controller_account = gtk_event_controller_key_new (GTK_WIDGET (self->account_window));
self->key_controller_account = gtk_event_controller_key_new ();
g_signal_connect (self->key_controller_account,
"key-pressed",
G_CALLBACK (on_key_pressed),