]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/icon.cpp
Correct compilation for GTK < 2.4.
[wxWidgets.git] / src / gtk / icon.cpp
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: icon.cpp
3// Purpose:
4// Author: Robert Roebling
a81258be
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
14f355c2
VS
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
c801d85f
KB
13#include "wx/icon.h"
14
15//-----------------------------------------------------------------------------
16// wxIcon
17//-----------------------------------------------------------------------------
18
19IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
20
8bbe427f
VZ
21wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
22 wxBitmap( bits )
e52f60e6
RR
23{
24}
8bbe427f
VZ
25
26wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
27 wxBitmap( bits )
219f895a 28{
ff7b1510 29}
52cbfcf0 30
8bbe427f
VZ
31wxIcon::wxIcon() : wxBitmap()
32{
52cbfcf0
RR
33}
34
019faef4
VS
35void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
36{
37 wxIcon *icon = (wxIcon*)(&bmp);
38 *this = *icon;
39}