[krb5-auth-dialog] applet: Destroy widget in dispose
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] applet: Destroy widget in dispose
- Date: Fri, 14 Oct 2022 19:53:22 +0000 (UTC)
commit 3589f48f66eb1653108dc32038b797d12b7defda
Author: Guido Günther <agx sigxcpu org>
Date: Thu Oct 13 14:05:57 2022 +0200
applet: Destroy widget in dispose
We want to get rid of a separate destroy function
src/ka-applet.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index d8b339c..879ad54 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -424,6 +424,7 @@ ka_applet_dispose (GObject *object)
KaApplet *self = KA_APPLET (object);
g_clear_pointer (&self->pwdialog, ka_window_destroy);
+ g_clear_pointer (&self->prefs, ka_window_destroy);
g_clear_object (&self->loader);
G_OBJECT_CLASS (ka_applet_parent_class)->dispose (object);
@@ -780,8 +781,6 @@ ka_applet_destroy (KaApplet* self)
GTK_WINDOW (first->data));
}
- gtk_widget_destroy (GTK_WIDGET(self->prefs));
- self->prefs = NULL;
ka_kerberos_destroy ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]