gtk1 fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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__)
|
||||
|
@@ -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;
|
||||
|
@@ -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());
|
||||
|
Reference in New Issue
Block a user