]> git.saurik.com Git - wxWidgets.git/commitdiff
moved wxapp_install_idle_handler and g_isIdle from many cpp files into gtk/private...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2006 13:36:53 +0000 (13:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2006 13:36:53 +0000 (13:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

30 files changed:
include/wx/gtk/private.h
src/gtk/app.cpp
src/gtk/bmpbuttn.cpp
src/gtk/button.cpp
src/gtk/checkbox.cpp
src/gtk/choice.cpp
src/gtk/combobox.cpp
src/gtk/cursor.cpp
src/gtk/dataview.cpp
src/gtk/dnd.cpp
src/gtk/fontdlg.cpp
src/gtk/frame.cpp
src/gtk/glcanvas.cpp
src/gtk/listbox.cpp
src/gtk/mdi.cpp
src/gtk/menu.cpp
src/gtk/minifram.cpp
src/gtk/notebook.cpp
src/gtk/popupwin.cpp
src/gtk/radiobox.cpp
src/gtk/radiobut.cpp
src/gtk/scrolbar.cpp
src/gtk/slider.cpp
src/gtk/spinbutt.cpp
src/gtk/spinctrl.cpp
src/gtk/tbargtk.cpp
src/gtk/textctrl.cpp
src/gtk/tglbtn.cpp
src/gtk/toplevel.cpp
src/gtk/window.cpp

index b754ea5178caee6b753bfa9e7352c23532b49710..4c6be9b94e33ed962e012ea49fe18e7f7455ebbd 100644 (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);
index 9f3abf88b96300916499985bf9a265fbde0265a6..1614d6c5f50f564a372f009983d03e820cdf5b50 100644 (file)
@@ -74,6 +74,7 @@
 
 #include "wx/unix/private.h"
 #include "wx/gtk/win_gtk.h"
+#include "wx/gtk/private.h"
 
 #include <gtk/gtk.h>
 
@@ -90,8 +91,6 @@ static GtkWidget *gs_RootWindow = (GtkWidget*) NULL;
 // idle system
 //-----------------------------------------------------------------------------
 
-extern bool g_isIdle;
-
 void wxapp_install_idle_handler();
 
 #if wxUSE_THREADS
index 4930087382dec03367657f3e48fd6b562307ae97..eab91a19defb9ec4977671059deb33ba54cbfc3e 100644 (file)
 
 class wxBitmapButton;
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 89271ac2b40eacb8c5f72a82d1f040b167b7db40..e7d67d6e925ae65cb96c5127fc9ae626487e2a6c 100644 (file)
 
 class wxButton;
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 09a67f104b5eeed210a472abed80c45b685c04ae..4dd5333334043e8bda62556aef214607b782bbe5 100644 (file)
 
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 7d0df1ca0d2c3305ab11bb8bac0431ddfe4af788..78ea983c3c8d3493ac4c4a818c505fc0c23a839e 100644 (file)
 
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index b5f70f7a9e0f02ad5d0762599e921f7e8035c767..467a6ce586d376e556b3898a53e49ad74156d3bf 100644 (file)
 #endif
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index cac9e5aabaf90133d213c87801704288c94ca4e4..d9c765244e58c382e8d5a878d1ae59e4cd5df4c5 100644 (file)
 #include "wx/utils.h"
 #include "wx/app.h"
 
+#include "wx/gtk/private.h" //for idle stuff
+
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // wxCursor
 //-----------------------------------------------------------------------------
index 49f1ea2c97da0a0f38cf15e127d1c00434d947e2..5239bad72f7f582cf1504b348b1301f0ec632432 100644 (file)
 
 class wxDataViewCtrl;
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 537dbd8b8c06e5ae8ed6e0aa7d88c5bef0dedb87..884ad11f274d60cd4661ba7034eda66418b58295 100644 (file)
 #include <gtk/gtkdnd.h>
 #include <gtk/gtkselection.h>
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //----------------------------------------------------------------------------
 // global data
 //----------------------------------------------------------------------------
index 6480cbe651bfffdb42e1c2663f874cfb87bb68dd..407c6798c620de17fea36e414b7891938ab18987 100644 (file)
 
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // "delete_event"
 //-----------------------------------------------------------------------------
index d0ade77e6d9edcad249e3ba610d33baa58547765..e35a025f7a0a2cacf700dc346dc42d28956d7f9e 100644 (file)
 const int wxSTATUS_HEIGHT  = 25;
 const int wxPLACE_HOLDER   = 0;
 
-// ----------------------------------------------------------------------------
-// idle system
-// ----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 // ----------------------------------------------------------------------------
 // event tables
 // ----------------------------------------------------------------------------
index 7e2e6e74633d8dd0344641b9526e78bc14c063da..cc6f93546feb37ca2f219e91c6de467e321fc6fa 100644 (file)
@@ -45,12 +45,6 @@ int wxGLCanvas::m_glxVersion = 0;
 //---------------------------------------------------------------------------
 
 XVisualInfo *g_vi = (XVisualInfo*) NULL;
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
 
 //---------------------------------------------------------------------------
 // wxGLContext
index 754e6dad26b474dc2db6c832b433b0c705952f5e..9846b5d02f2f4f7fdc24a13019f6436424dc07f4 100644 (file)
@@ -43,12 +43,6 @@ extern bool           g_blockEventsOnScroll;
 extern wxCursor       g_globalCursor;
 
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
 
 //-----------------------------------------------------------------------------
 // Macro to tell which row the strings are in (1 if native checklist, 0 if not)
index 92604075e1362da4a51ad73e1567949e96478da3..f793871ed4511aeec16ecd7d1abb3808f04f4e5f 100644 (file)
 
 const int wxMENU_HEIGHT = 27;
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // globals
 //-----------------------------------------------------------------------------
index 28fa85d2fced15c3f6673af3a9e8e55f45dbebbf..470e3b87ba4eb938178d1517f39629987a3c77b3 100644 (file)
@@ -48,9 +48,6 @@ static const int wxGTK_TITLE_ID = -3;
 // idle system
 //-----------------------------------------------------------------------------
 
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 #if wxUSE_ACCEL
 static wxString GetGtkHotKey( const wxMenuItem& item );
 #endif
index 48acb9a499069a95c62b177b871bfe7429c4d268..f209407663b76c0b1ee58fed9dddcad40490ad8a 100644 (file)
 #include <gdk/gdkprivate.h>
 #include <gdk/gdkx.h>
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 55d9558f67affc01239497ef7ec6daaf28a59bf0..25785835a24a3ee5fc35f370813b952a00a1f7c5 100644 (file)
 DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)
 DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 91ed9b009b0a7011ea81b6e4ad016a652551d9d4..f721ea44055d73ee43a0f1a3375b5745165483c8 100644 (file)
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
+#include "wx/gtk/private.h" //for idle stuff
 #include "wx/gtk/win_gtk.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // "button_press"
 //-----------------------------------------------------------------------------
index ae6caf193754922984c52ab21a74ff27299461da..686e8979ae169cc7fd2ccc7c608abcbdc3679d55 100644 (file)
 
 #include "wx/gtk/win_gtk.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 028a84cc8e020e9951df5f9005f465b1733444c4..cf56a75187a830d7dbffc1cd856a93713084b945 100644 (file)
 
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 3a44d755f05e2c5f8cf49d593dd0358904e4b5c2..4319b39407ca9df9289644e1db129bcf30dfc220 100644 (file)
 #include "wx/math.h"
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 0f590126f366f68a921554a92c6bdce5139c68fb..bcaacf7a7373bdba08b0a7ffeaab230075d49c37 100644 (file)
 #include "wx/math.h"
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 578c98ee77544dadd64be5c45984a0e9972f446b..52efbc9d4f7666950c1e14417bcd424a5eda24ff 100644 (file)
 #include "wx/math.h"
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index fc1227c39aead0bd92d847ec55d3dbc0003de245..229f6fdf49bd28dc2bc49d197b1605a61960d5eb 100644 (file)
@@ -25,9 +25,6 @@
 // idle system
 //-----------------------------------------------------------------------------
 
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 static const float sensitivity = 0.02;
 
 //-----------------------------------------------------------------------------
index 70de9fd33d44914631d1ab7ea76caf955876cef7..ee9725a088ebc706e6ff932f5675cf4c54f29039 100644 (file)
 // globals
 // ----------------------------------------------------------------------------
 
-// idle system
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 // data
 extern bool       g_blockEventsOnDrag;
 extern wxCursor   g_globalCursor;
index d36c312925a863275fc652d3a78af1cdc9f39634..d4e61f72ef54fa4257334facf2dcbd4afc9cefdd 100644 (file)
 #include "wx/gtk/private.h"
 #include <gdk/gdkkeysyms.h>
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
index 722d7f965901ea3350caf6b586176c60ac03d258..9b9d064259bdcbd96ea60e130a8889c25fbf0644 100644 (file)
@@ -26,8 +26,6 @@
 
 #include "wx/gtk/private.h"
 
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
 extern bool      g_blockEventsOnDrag;
 extern wxCursor   g_globalCursor;
 
index 0a7d9739ad715c9abc51792bb4340d11a0301e6e..42eb2ca35082772b63506967c01dbf68748d2717 100644 (file)
 // XA_CARDINAL
 #include <X11/Xatom.h>
 
-// ----------------------------------------------------------------------------
-// idle system
-// ----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 // ----------------------------------------------------------------------------
 // data
 // ----------------------------------------------------------------------------
index ae474682b58687147b9cceeacdca626af19e728c..b54d7239f1a1cd4c24ee710fa63defe3dc0be0ac 100644 (file)
@@ -282,13 +282,6 @@ gdk_window_warp_pointer (GdkWindow      *window,
   }
 }
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // local code (see below)
 //-----------------------------------------------------------------------------