Mercurial > pidgin
changeset 18766:69556cf286f8
Fix new IMHTML formatting popups not going away issue. It turns out they were being put back when they were being hidden (I'm not sure why this didn't happen on linux - it seems like it should be a problem everywhere). Fixes #2317.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 01 Aug 2007 04:05:18 +0000 |
parents | 9cec393c3a21 |
children | 95529e8d3bb2 |
files | pidgin/gtkimhtmltoolbar.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkimhtmltoolbar.c Wed Aug 01 02:13:16 2007 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Wed Aug 01 04:05:18 2007 +0000 @@ -902,8 +902,10 @@ static void pidgin_menu_clicked(GtkWidget *button, GtkMenu *menu) { - gtk_widget_show_all(GTK_WIDGET(menu)); - gtk_menu_popup(menu, NULL, NULL, menu_position_func, button, 0, gtk_get_current_event_time()); + if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { + gtk_widget_show_all(GTK_WIDGET(menu)); + gtk_menu_popup(menu, NULL, NULL, menu_position_func, button, 0, gtk_get_current_event_time()); + } } static void pidgin_menu_deactivate(GtkWidget *menu, GtkToggleButton *button)