Use "state-flags-changed" signal with GTK3, deprecated "state-changed" is ignored.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3738,8 +3738,13 @@ void wxWindowGTK::GTKUpdateCursor(bool isBusyOrGlobalCursor, bool isRealize)
|
||||
if (data)
|
||||
{
|
||||
// encourage native widget to restore any non-default cursors
|
||||
#ifdef __WXGTK3__
|
||||
GtkStateFlags state = gtk_widget_get_state_flags(GTK_WIDGET(data));
|
||||
g_signal_emit_by_name(data, "state-flags-changed", state);
|
||||
#else
|
||||
GtkStateType state = gtk_widget_get_state(GTK_WIDGET(data));
|
||||
g_signal_emit_by_name(data, "state-changed", state);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user