/soc/2015/igor.gajowiak/chatlog: fedbcc7a922c: Added handling de...

Igor Gajowiak igor.gajowiak at gmail.com
Sat Aug 8 16:31:26 EDT 2015


Changeset: fedbcc7a922c2723d741badb3a4c4deed8370349
Author:	 Igor Gajowiak <igor.gajowiak at gmail.com>
Date:	 2015-08-08 22:31 +0200
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/igor.gajowiak/chatlog/rev/fedbcc7a922c

Description:

Added handling delete event in an import window.

diffstat:

 pidgin/gtkgenericlog.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff --git a/pidgin/gtkgenericlog.c b/pidgin/gtkgenericlog.c
--- a/pidgin/gtkgenericlog.c
+++ b/pidgin/gtkgenericlog.c
@@ -127,6 +127,7 @@ on_import_window_response(GtkWidget *wid
 			return;
 		}
 		case GTK_RESPONSE_CLOSE:
+		case GTK_RESPONSE_DELETE_EVENT:
 		{
 			gtk_widget_hide(viewer->importer->window);
 			return;
@@ -162,6 +163,8 @@ create_import_window(PidginGenericLogVie
 
 	g_signal_connect(G_OBJECT(window), "response",
 		G_CALLBACK(on_import_window_response), viewer);
+	g_signal_connect(G_OBJECT(window), "delete_event",
+		G_CALLBACK(gtk_widget_hide_on_delete), NULL);
 
 	GtkListStore *logs_store = create_logs_store();
 	populate_logs_store(logs_store);



More information about the Commits mailing list