From: Michael Wetherell <mike.wetherell@ntlworld.com> Date: Mon, 23 Jan 2006 14:29:29 +0000 (+0000) Subject: gtk1 fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7e52dfd26d17e1d742fe049315be9368194e97f6 gtk1 fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/filedlg.h b/include/wx/filedlg.h index df18f4be1b..cf82cba2cc 100644 --- a/include/wx/filedlg.h +++ b/include/wx/filedlg.h @@ -171,7 +171,7 @@ wxSaveFileSelector(const wxChar *what, #elif defined(__WXGTK20__) #include "wx/gtk/filedlg.h" #elif defined(__WXGTK__) -#include "wx/generic/filedlgg.h" +#include "wx/gtk1/filedlg.h" #elif defined(__WXX11__) #include "wx/generic/filedlgg.h" #elif defined(__WXMGL__) diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 9da84b3052..c84141bd0a 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -112,8 +112,9 @@ void wxColourRefData::AllocColour( GdkColormap *cmap ) FreeColour(); - if ( (cmap->visual->type == GDK_VISUAL_GRAYSCALE) || - (cmap->visual->type == GDK_VISUAL_PSEUDO_COLOR) ) + GdkColormapPrivate *private_colormap = (GdkColormapPrivate*) cmap; + if ((private_colormap->visual->type == GDK_VISUAL_GRAYSCALE) || + (private_colormap->visual->type == GDK_VISUAL_PSEUDO_COLOR)) { m_hasPixel = gdk_colormap_alloc_color( cmap, &m_color, FALSE, TRUE ); int idx = m_color.pixel; diff --git a/src/gtk1/statbmp.cpp b/src/gtk1/statbmp.cpp index 59c3c7e555..03a0f9682a 100644 --- a/src/gtk1/statbmp.cpp +++ b/src/gtk1/statbmp.cpp @@ -78,14 +78,7 @@ void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap ) if (m_bitmap.GetMask()) mask = m_bitmap.GetMask()->GetBitmap(); - if (m_bitmap.HasPixbuf()) - { - gtk_image_set_from_pixbuf(GTK_IMAGE(m_widget), - m_bitmap.GetPixbuf()); - } - else - gtk_image_set_from_pixmap(GTK_IMAGE(m_widget), - m_bitmap.GetPixmap(), mask); + gtk_pixmap_set(GTK_PIXMAP(m_widget), m_bitmap.GetPixmap(), mask); InvalidateBestSize(); SetSize(GetBestSize());