- 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 );
- g_object_unref (mask);
- g_object_unref (pixmap);
- gtk_widget_show( pw );
-
- GtkWidget *close_button = gtk_button_new();
-#ifdef __WXGTK24__
- if (!gtk_check_version(2,4,0))
- gtk_button_set_focus_on_click( GTK_BUTTON(close_button), FALSE );
-#endif
- 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 );
-
- g_signal_connect (close_button, "clicked",
- G_CALLBACK (gtk_button_clicked_callback),
- 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 );