- GdkBitmap *mask = (GdkBitmap*) NULL;
- GdkPixmap *pixmap = gdk_pixmap_create_from_xpm_d
- (
- wxGetRootWindow()->window,
- &mask,
- NULL,
- (char **)cross_xpm
- );
-
- GtkWidget *pw = gtk_pixmap_new( pixmap, mask );
- gdk_bitmap_unref( mask );
- gdk_pixmap_unref( pixmap );
- gtk_widget_show( pw );
-
- GtkWidget *close_button = gtk_button_new();
- gtk_container_add( GTK_CONTAINER(close_button), pw );
-
- gtk_pizza_put( GTK_PIZZA(m_mainWidget),
- close_button,
- size.x-16, 4, 11, 11 );
-
- gtk_widget_show( close_button );
-
- gtk_signal_connect( GTK_OBJECT(close_button), "clicked",
- GTK_SIGNAL_FUNC(gtk_button_clicked_callback), (gpointer*)this );
+ wxImage img = wxBitmap((const char*)close_bits, 16, 16).ConvertToImage();
+ img.Replace(0,0,0,123,123,123);
+ img.SetMaskColour(123,123,123);
+ m_closeButton = wxBitmap( img );