#pragma hdrstop
#endif
-#if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
+#if !defined(__WXUNIVERSAL__)
#include "wx/artprov.h"
/*static*/ void wxArtProvider::InitNativeProvider()
{
- wxArtProvider::Push(new wxGTK2ArtProvider);
+ Push(new wxGTK2ArtProvider);
}
// ----------------------------------------------------------------------------
GdkPixbuf *pixbuf = CreateStockIcon(stockid, stocksize);
#ifdef __WXGTK24__
- if (!gtk_check_version(2,4,0))
+ if (!pixbuf && !gtk_check_version(2,4,0))
{
- if (!pixbuf)
- pixbuf = CreateThemeIcon(stockid, stocksize, size);
+ pixbuf = CreateThemeIcon(stockid, stocksize, size);
}
#endif
}
}
- if (!pixbuf)
- return wxNullBitmap;
-
wxBitmap bmp;
- bmp.SetWidth(gdk_pixbuf_get_width(pixbuf));
- bmp.SetHeight(gdk_pixbuf_get_height(pixbuf));
- bmp.SetPixbuf(pixbuf);
+ if (pixbuf != NULL)
+ bmp.SetPixbuf(pixbuf);
return bmp;
}
IMPLEMENT_DYNAMIC_CLASS(wxArtGtkModule, wxModule)
-#endif // defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
+#endif // !defined(__WXUNIVERSAL__)