mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +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:
parent
45b4717c78
commit
29fdb869f0
1 changed files with 12 additions and 0 deletions
|
@ -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
|
static void
|
||||||
calls_new_call_box_init (CallsNewCallBox *self)
|
calls_new_call_box_init (CallsNewCallBox *self)
|
||||||
{
|
{
|
||||||
|
@ -330,6 +337,11 @@ calls_new_call_box_init (CallsNewCallBox *self)
|
||||||
G_CALLBACK (origin_count_changed_cb),
|
G_CALLBACK (origin_count_changed_cb),
|
||||||
self,
|
self,
|
||||||
G_CONNECT_SWAPPED);
|
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);
|
origin_count_changed_cb (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue