[gnome-control-center] network/connection-editor: destroy the editor when closing
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network/connection-editor: destroy the editor when closing
- Date: Fri, 18 Mar 2022 21:45:44 +0000 (UTC)
commit 6f1567f23696eb4a5f52721606c80686265c64c0
Author: Jonathan Kang <jonathankang gnome org>
Date: Wed Mar 16 11:09:19 2022 +0800
network/connection-editor: destroy the editor when closing
If an user opens an connection editor and then closes it, repeat this
multiple times causes lots of unused hidden editor windows.
Fix that by destroying the connection editor instead of hiding them
when closing.
panels/network/connection-editor/net-connection-editor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/network/connection-editor/net-connection-editor.c
b/panels/network/connection-editor/net-connection-editor.c
index 4b7fadc25..ac02a786e 100644
--- a/panels/network/connection-editor/net-connection-editor.c
+++ b/panels/network/connection-editor/net-connection-editor.c
@@ -81,7 +81,7 @@ static void page_changed (NetConnectionEditor *self);
static void
cancel_editing (NetConnectionEditor *self)
{
- gtk_widget_hide (GTK_WIDGET (self));
+ gtk_window_destroy (GTK_WINDOW (self));
g_signal_emit (self, signals[DONE], 0, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]