+ if ((style & wxSYSTEM_MENU) &&
+ ((style & wxCAPTION) || (style & wxTINY_CAPTION_HORIZ) || (style & wxTINY_CAPTION_VERT)))
+ {
+ 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 );
+ }
+