move definitions from src/gtk/data.cpp to other appropriate places

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-05-05 19:49:02 +00:00
parent a23717e506
commit b541538fa5
4 changed files with 9 additions and 21 deletions

View File

@@ -379,7 +379,9 @@ GdkCursor *wxCursor::GetCursor() const
// busy cursor routines
//-----------------------------------------------------------------------------
extern wxCursor g_globalCursor;
/* Current cursor, in order to hang on to
* cursor handle when setting the cursor globally */
wxCursor g_globalCursor;
static wxCursor gs_savedCursor;
static int gs_busyCount = 0;

View File

@@ -9,20 +9,3 @@
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/cursor.h"
#endif
/* Current cursor, in order to hang on to
* cursor handle when setting the cursor globally */
wxCursor g_globalCursor;
/* Don't allow event propagation during drag */
bool g_blockEventsOnDrag = false;
/* Don't allow mouse event propagation during scroll */
bool g_blockEventsOnScroll = false;
/* Don't allow window closing if there are open dialogs */
int g_openDialogs = 0;

View File

@@ -30,7 +30,8 @@
// global data
//-----------------------------------------------------------------------------
extern int g_openDialogs;
// Don't allow window closing if there are open dialogs
int g_openDialogs;
//-----------------------------------------------------------------------------
// wxDialog

View File

@@ -190,8 +190,10 @@
// data
//-----------------------------------------------------------------------------
extern bool g_blockEventsOnDrag;
extern bool g_blockEventsOnScroll;
// Don't allow event propagation during drag
bool g_blockEventsOnDrag;
// Don't allow mouse event propagation during scroll
bool g_blockEventsOnScroll;
extern wxCursor g_globalCursor;
// mouse capture state: the window which has it and if the mouse is currently