From: Mart Raudsepp Date: Tue, 4 Apr 2006 13:13:04 +0000 (+0000) Subject: gdk_window_get_visual -> gdk_drawable_get_visual X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/22a3bce465fa9180597544a1bef7b7024d40fc50 gdk_window_get_visual -> gdk_drawable_get_visual git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 286164ca96..d78da2d0aa 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -543,7 +543,7 @@ GdkVisual *wxApp::GetGdkVisual() if (m_glVisualInfo) visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid ); else - visual = gdk_window_get_visual( wxGetRootWindow()->window ); + visual = gdk_drawable_get_visual( wxGetRootWindow()->window ); wxASSERT( visual ); diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 48300626d3..9b4fc222bb 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -400,7 +400,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, GdkPixmap *dstpix = NULL; if (GetPixmap()) { - GdkVisual *visual = gdk_window_get_visual( GetPixmap() ); + GdkVisual *visual = gdk_drawable_get_visual( GetPixmap() ); if (visual == NULL) visual = wxTheApp->GetGdkVisual(); @@ -1053,7 +1053,7 @@ wxImage wxBitmap::ConvertToImage() const if (GetPixmap()) { - GdkVisual *visual = gdk_window_get_visual( GetPixmap() ); + GdkVisual *visual = gdk_drawable_get_visual( GetPixmap() ); if (visual == NULL) visual = wxTheApp->GetGdkVisual(); diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index 6385e82fef..4b321c358f 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -157,7 +157,7 @@ bool wxColourDisplay() int wxDisplayDepth() { - return gdk_window_get_visual( wxGetRootWindow()->window )->depth; + return gdk_drawable_get_visual( wxGetRootWindow()->window )->depth; } wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()