pidgin: 4b6198c4: Close the tooltip window on a keypress e...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sun Feb 15 17:00:44 EST 2009


-----------------------------------------------------------------
Revision: 4b6198c460b25b840d0af8465babfb33bcc63f8d
Ancestor: 992293bb475bd58a74acb83bdef4142c6a5ba41d
Author: karvanitis at hotmail.com
Date: 2009-02-15T21:44:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4b6198c460b25b840d0af8465babfb33bcc63f8d

Modified files:
        pidgin/gtkblist.c pidgin/gtkconv.c

ChangeLog: 

Close the tooltip window on a keypress event.  Fixes #8150.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	4d322f2f724403f447c49ffd3cde271fb15f088d
+++ pidgin/gtkblist.c	bd61002542183b995a792054bda81c6abbc60f73
@@ -4554,6 +4554,9 @@ gtk_blist_window_key_press_cb(GtkWidget 
 	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)) {
============================================================
--- pidgin/gtkconv.c	42f70a36e28c8b11752f0548316a48ac5c2df054
+++ pidgin/gtkconv.c	8d45df2ef52a6e98834f204573ab46f707480df7
@@ -1959,6 +1959,9 @@ conv_keypress_common(PidginConversation 
 	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) {


More information about the Commits mailing list