From b7e84a2a1f9a8b58595ba81f654f68121674435e Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 13 Feb 2010 10:32:48 +0100 Subject: [PATCH] Intercepted delete-event as cancel button pressed. --- data/libauteldap/gui/auteldap.gui | 11 ++++++----- src/aute_ldap.c | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/data/libauteldap/gui/auteldap.gui b/data/libauteldap/gui/auteldap.gui index 382a861..d68387e 100644 --- a/data/libauteldap/gui/auteldap.gui +++ b/data/libauteldap/gui/auteldap.gui @@ -1,6 +1,6 @@ - + True @@ -10,14 +10,15 @@ True + vertical True 5 3 2 - 3 - 3 + 5 + 5 True @@ -79,8 +80,8 @@ 5 2 2 - 3 - 3 + 5 + 5 True diff --git a/src/aute_ldap.c b/src/aute_ldap.c index ae187b5..c9c397d 100644 --- a/src/aute_ldap.c +++ b/src/aute_ldap.c @@ -248,6 +248,8 @@ gchar break; case GTK_RESPONSE_CANCEL: + case GTK_RESPONSE_NONE: + case GTK_RESPONSE_DELETE_EVENT: ret = g_strdup (""); break; -- 2.49.0