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

new-call-box: clear number entry when windows is closed

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/717>
This commit is contained in:
Chris Talbot 2024-02-06 20:52:52 -07:00 committed by Marge Bot
parent 45b4717c78
commit 29fdb869f0

View file

@ -311,6 +311,13 @@ calls_new_call_box_get_property (GObject *object,
}
}
static void
on_main_window_closed (CallsNewCallBox *self)
{
cui_dialpad_set_number (self->dialpad, "");
gtk_editable_set_text (GTK_EDITABLE (self->address_entry), "");
}
static void
calls_new_call_box_init (CallsNewCallBox *self)
{
@ -330,6 +337,11 @@ calls_new_call_box_init (CallsNewCallBox *self)
G_CALLBACK (origin_count_changed_cb),
self,
G_CONNECT_SWAPPED);
g_signal_connect_swapped (g_application_get_default (),
"main-window-closed",
G_CALLBACK (on_main_window_closed),
self);
origin_count_changed_cb (self);
}