Use g_signal* instead of deprecated gtk_signal*. Use proper casts for the arguments.
Worth norting from the GTK+ docs: "For future usage, direct use of the GSignal API is recommended, this avoids significant performance hits where GtkArg structures have to be converted into GValues." git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -98,10 +98,9 @@ bool wxTaskBarIconAreaBase::DoPopupMenu( wxMenu *menu, int x, int y )
|
||||
|
||||
bool is_waiting = true;
|
||||
|
||||
gulong handler = gtk_signal_connect( GTK_OBJECT(menu->m_menu),
|
||||
"hide",
|
||||
GTK_SIGNAL_FUNC(gtk_pop_hide_callback),
|
||||
(gpointer)&is_waiting );
|
||||
gulong handler = g_signal_connect (menu->m_menu, "hide",
|
||||
G_CALLBACK (gtk_pop_hide_callback),
|
||||
&is_waiting);
|
||||
|
||||
wxPoint pos;
|
||||
gpointer userdata;
|
||||
@@ -134,7 +133,7 @@ bool wxTaskBarIconAreaBase::DoPopupMenu( wxMenu *menu, int x, int y )
|
||||
gtk_main_iteration();
|
||||
}
|
||||
|
||||
gtk_signal_disconnect(GTK_OBJECT(menu->m_menu), handler);
|
||||
g_signal_handler_disconnect (menu->m_menu, handler);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user