X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab857a4ed6687929e308ea606f65ceedc43d1319..79f585d90388128f9d245f7c92d3013b98b9ed14:/src/gtk/utilsgtk.cpp diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index e1c9989495..513c3674e6 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -40,9 +40,15 @@ #undef explicit #endif // HAVE_X11_XKBLIB_H -// ---------------------------------------------------------------------------- +//----------------------------------------------------------------------------- +// data +//----------------------------------------------------------------------------- + +extern GtkWidget *wxRootWindow; + +//---------------------------------------------------------------------------- // misc. -// ---------------------------------------------------------------------------- +//---------------------------------------------------------------------------- void wxBell() { @@ -92,7 +98,7 @@ bool wxColourDisplay() int wxDisplayDepth() { - return gdk_window_get_visual( (GdkWindow*) &gdk_root_parent )->depth; + return gdk_window_get_visual( wxRootWindow->window )->depth; } int wxGetOsVersion(int *majorVsn, int *minorVsn)