Mercurial > pidgin.yaz
comparison pidgin/gtkimhtmltoolbar.c @ 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 | 0ef0b2ead713 |
children | 900b13e40471 |
comparison
equal
deleted
inserted
replaced
18765:9cec393c3a21 | 18766:69556cf286f8 |
---|---|
900 *y -= widget->allocation.height; | 900 *y -= widget->allocation.height; |
901 } | 901 } |
902 | 902 |
903 static void pidgin_menu_clicked(GtkWidget *button, GtkMenu *menu) | 903 static void pidgin_menu_clicked(GtkWidget *button, GtkMenu *menu) |
904 { | 904 { |
905 gtk_widget_show_all(GTK_WIDGET(menu)); | 905 if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { |
906 gtk_menu_popup(menu, NULL, NULL, menu_position_func, button, 0, gtk_get_current_event_time()); | 906 gtk_widget_show_all(GTK_WIDGET(menu)); |
907 gtk_menu_popup(menu, NULL, NULL, menu_position_func, button, 0, gtk_get_current_event_time()); | |
908 } | |
907 } | 909 } |
908 | 910 |
909 static void pidgin_menu_deactivate(GtkWidget *menu, GtkToggleButton *button) | 911 static void pidgin_menu_deactivate(GtkWidget *menu, GtkToggleButton *button) |
910 { | 912 { |
911 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE); | 913 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE); |