[krb5-auth-dialog] pwdialog: Use hide-on-close instead of gtk_widget_hide_on_delete
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] pwdialog: Use hide-on-close instead of gtk_widget_hide_on_delete
- Date: Thu, 20 Oct 2022 11:26:33 +0000 (UTC)
commit c9464eb888e41a09f108e102b05590c10dc3fc51
Author: Guido Günther <agx sigxcpu org>
Date: Mon Oct 17 10:21:02 2022 +0200
pwdialog: Use hide-on-close instead of gtk_widget_hide_on_delete
src/ka-pwdialog.c | 5 -----
src/resources/ui/ka-pwdialog.ui | 1 +
2 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/ka-pwdialog.c b/src/ka-pwdialog.c
index 26cd7f5..4c3fa8c 100644
--- a/src/ka-pwdialog.c
+++ b/src/ka-pwdialog.c
@@ -55,11 +55,6 @@ ka_pwdialog_init (KaPwDialog *self)
self->priv = ka_pwdialog_get_instance_private (self);
gtk_widget_init_template (GTK_WIDGET (self));
-
- g_signal_connect (self,
- "delete-event",
- G_CALLBACK (gtk_widget_hide_on_delete),
- NULL);
}
static void
diff --git a/src/resources/ui/ka-pwdialog.ui b/src/resources/ui/ka-pwdialog.ui
index 1e26748..4b4f9b3 100644
--- a/src/resources/ui/ka-pwdialog.ui
+++ b/src/resources/ui/ka-pwdialog.ui
@@ -4,6 +4,7 @@
<template class="KaPwDialog" parent="GtkDialog">
<property name="title" translatable="yes">Kerberos Authentication</property>
<property name="resizable">False</property>
+ <property name="hide-on-close">True</property>
<property name="default-widget">krb5_renew_button</property>
<property name="focus-widget">pw_entry</property>
<child type="action">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]