1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-21 12:39:29 +00:00

calls-new-call-box: gtk_widget_get_toplevel has been removed

https://docs.gtk.org/gtk4/migrating-3to4.html#gtk_widget_get_toplevel-has-been-removed

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-16 11:23:26 -08:00
parent 5abfae254a
commit 0a3ce1d701

View file

@ -201,14 +201,14 @@ dialpad_dialed_cb (CuiDialpad *dialpad,
const char *number,
CallsNewCallBox *self)
{
GtkWidget *window;
GtkRoot *root;
g_assert (CALLS_IS_NEW_CALL_BOX (self));
window = gtk_widget_get_toplevel (GTK_WIDGET (self));
root = gtk_widget_get_root (GTK_WIDGET (self));
if (CALLS_IS_MAIN_WINDOW (window))
calls_main_window_dial (CALLS_MAIN_WINDOW (window), number);
if (CALLS_IS_MAIN_WINDOW (root))
calls_main_window_dial (CALLS_MAIN_WINDOW (root), number);
else
calls_new_call_box_dial (self, number);
}