moved wxapp_install_idle_handler and g_isIdle from many cpp files into gtk/private.h (patch 1435529)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-09 13:36:53 +00:00
parent 1d7e458f1a
commit 848332140b
30 changed files with 20 additions and 180 deletions

View File

@@ -53,6 +53,17 @@ void gtk_window_set_policy (GtkWindow *window,
G_END_DECLS
//-----------------------------------------------------------------------------
// idle system
//-----------------------------------------------------------------------------
extern void wxapp_install_idle_handler();
extern bool g_isIdle;
//-----------------------------------------------------------------------------
// GTK+ scroll types -> wxEventType
//-----------------------------------------------------------------------------
// translate a GTK+ scroll type to a wxEventType
inline wxEventType GtkScrollTypeToWx(guint scrollType)
{
@@ -89,6 +100,11 @@ inline wxEventType GtkScrollWinTypeToWx(guint scrollType)
wxEVT_SCROLLWIN_TOP - wxEVT_SCROLL_TOP;
}
//-----------------------------------------------------------------------------
// Misc. functions
//-----------------------------------------------------------------------------
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
void wxAddGrab(wxWindow* window);
void wxRemoveGrab(wxWindow* window);