From 285e71a9e71fb201eb6da767cbaa211cd4ede43b Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 13 Feb 2010 10:36:08 +0100 Subject: [PATCH] Intercepted delete-event as cancel button pressed. --- data/libaute-db/glade/autedb.glade | 11 ++++++----- src/aute_db.c | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/data/libaute-db/glade/autedb.glade b/data/libaute-db/glade/autedb.glade index 382a861..d68387e 100644 --- a/data/libaute-db/glade/autedb.glade +++ b/data/libaute-db/glade/autedb.glade @@ -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_db.c b/src/aute_db.c index 5abeb2b..c5260fe 100644 --- a/src/aute_db.c +++ b/src/aute_db.c @@ -216,6 +216,8 @@ gchar break; case GTK_RESPONSE_CANCEL: + case GTK_RESPONSE_NONE: + case GTK_RESPONSE_DELETE_EVENT: ret = g_strdup (""); break; -- 2.49.0