- GtkWidget *close_button = gtk_button_new_with_label( "x" );
-
- gtk_pizza_put( GTK_PIZZA(m_mainWidget),
- close_button,
- 4, 4, 12, 11 );
-
+ GdkBitmap *mask = 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 );
+