diff pidgin/gtkstatusbox.c @ 21913:2a591a5b3322

Make some more event handlers return appropriate gboolean values. This turns out to be a pretty important thing to do. Not returning FALSE from a delete_event callback would, for example, only hide a widget, instead of destroying it, which can cause leaks.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 21 Dec 2007 14:19:29 +0000
parents 665e04562de0
children d3a4c98c01b7
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Fri Dec 21 12:17:10 2007 +0000
+++ b/pidgin/gtkstatusbox.c	Fri Dec 21 14:19:29 2007 +0000
@@ -1100,7 +1100,7 @@
 	return TRUE;
 }
 
-static int imhtml_remove_focus(GtkWidget *w, GdkEventKey *event, PidginStatusBox *status_box)
+static gboolean imhtml_remove_focus(GtkWidget *w, GdkEventKey *event, PidginStatusBox *status_box)
 {
 	if (event->keyval == GDK_Tab || event->keyval == GDK_KP_Tab)
 	{