]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsgtk.cpp
added test for writing empty value to the config
[wxWidgets.git] / src / gtk / utilsgtk.cpp
index f1f809c5d3311a011f79ca9998748c6e5f5b8a0c..611d02bf16f5a8cad5fcddadcccd6b4a69d55f1e 100644 (file)
@@ -46,7 +46,7 @@
 // data
 //-----------------------------------------------------------------------------
 
-extern GtkWidget *wxRootWindow;
+extern GtkWidget *wxGetRootWindow();
 
 //----------------------------------------------------------------------------
 // misc.
@@ -117,7 +117,7 @@ bool wxColourDisplay()
 
 int wxDisplayDepth()
 {
-    return gdk_window_get_visual( wxRootWindow->window )->depth;
+    return gdk_window_get_visual( wxGetRootWindow()->window )->depth;
 }
 
 int wxGetOsVersion(int *majorVsn, int *minorVsn)