Enable UpdateUI events in wxTaskBarIcon.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-01-23 22:39:03 +00:00
parent 11ca2edf95
commit 0bd3b8eca1
7 changed files with 178 additions and 2 deletions

View File

@@ -4237,9 +4237,10 @@ void gtk_pop_hide_callback( GtkWidget *WXUNUSED(widget), bool* is_waiting )
*is_waiting = FALSE;
}
static void SetInvokingWindow( wxMenu *menu, wxWindowGTK *win )
void SetInvokingWindow( wxMenu *menu, wxWindow* win )
{
menu->SetInvokingWindow( win );
wxMenuItemList::compatibility_iterator node = menu->GetMenuItems().GetFirst();
while (node)
{
@@ -4280,6 +4281,10 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y )
wxCHECK_MSG( menu != NULL, false, wxT("invalid popup-menu") );
// NOTE: if you change this code, you need to update
// the same code in taskbar.cpp as well. This
// is ugly code duplication, I know,
SetInvokingWindow( menu, this );
menu->UpdateUI();