[Xfce4-commits] <xfce4-dict:master> Explicitly handle GTK_RESPONSE_DELETE_EVENT as well

Enrico Tröger noreply at xfce.org
Sun May 30 12:58:03 CEST 2010


Updating branch refs/heads/master
         to 7ccb1eb4e15e7ab69d2966adf20cfbc5a2925407 (commit)
       from ba4136fa7380336e614e80cb7428d535e47ec6e1 (commit)

commit 7ccb1eb4e15e7ab69d2966adf20cfbc5a2925407
Author: Enrico Tröger <enrico.troeger at uvena.de>
Date:   Sun May 30 12:03:50 2010 +0200

    Explicitly handle GTK_RESPONSE_DELETE_EVENT as well

 lib/speedreader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/speedreader.c b/lib/speedreader.c
index 6fc9cf9..b875ac1 100644
--- a/lib/speedreader.c
+++ b/lib/speedreader.c
@@ -465,7 +465,7 @@ static void xfd_speed_reader_response_cb(XfdSpeedReader *dialog, gint response,
 {
 	XfdSpeedReaderPrivate *priv = XFD_SPEED_READER_GET_PRIVATE(dialog);
 
-	if (response == GTK_RESPONSE_CLOSE)
+	if (response == GTK_RESPONSE_CLOSE || response == GTK_RESPONSE_DELETE_EVENT)
 	{
 		gtk_widget_destroy(GTK_WIDGET(dialog));
 	}



More information about the Xfce4-commits mailing list