changeset 25103:33ceb2b708cf

Close the tooltip window on a keypress event. Fixes #8150. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Kosta Arvanitis <karvanitis@hotmail.com>
date Sun, 15 Feb 2009 21:44:10 +0000
parents 2d873973b4d6
children 5587f50886a5
files pidgin/gtkblist.c pidgin/gtkconv.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sun Feb 15 21:42:34 2009 +0000
+++ b/pidgin/gtkblist.c	Sun Feb 15 21:44:10 2009 +0000
@@ -4554,6 +4554,9 @@
 	if (!gtkblist)
 		return FALSE;
 
+	/* clear any tooltips */
+	pidgin_blist_tooltip_destroy();
+
 	widget = gtk_window_get_focus(GTK_WINDOW(gtkblist->window));
 
 	if (GTK_IS_IMHTML(widget) || GTK_IS_ENTRY(widget)) {
--- a/pidgin/gtkconv.c	Sun Feb 15 21:42:34 2009 +0000
+++ b/pidgin/gtkconv.c	Sun Feb 15 21:44:10 2009 +0000
@@ -1959,6 +1959,9 @@
 	win      = gtkconv->win;
 	curconv = gtk_notebook_get_current_page(GTK_NOTEBOOK(win->notebook));
 
+	/* clear any tooltips */
+	pidgin_tooltip_destroy();
+
 	/* If CTRL was held down... */
 	if (event->state & GDK_CONTROL_MASK) {
 		switch (event->keyval) {