mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +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:
parent
5abfae254a
commit
0a3ce1d701
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue