From: Paul Cornett Date: Sat, 5 May 2007 19:49:02 +0000 (+0000) Subject: move definitions from src/gtk/data.cpp to other appropriate places X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b541538fa514aaecb5c988f05a7d581d49074072 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 --- diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index fd78e1f321..a323e44d69 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -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; diff --git a/src/gtk/data.cpp b/src/gtk/data.cpp index 6a0f2172c6..570d9b74b4 100644 --- a/src/gtk/data.cpp +++ b/src/gtk/data.cpp @@ -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; diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 7688d3329b..425aac9ae9 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -30,7 +30,8 @@ // global data //----------------------------------------------------------------------------- -extern int g_openDialogs; +// Don't allow window closing if there are open dialogs +int g_openDialogs; //----------------------------------------------------------------------------- // wxDialog diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 098372578a..0cb6276a0d 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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