inst->pixmap = gdk_pixmap_new(widget->window, 9*80, 15*24, -1);
inst->pixmap = gdk_pixmap_new(widget->window, cfg.width * inst->font_width, cfg.height * inst->font_height, -1);
gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data){    struct gui_data *inst = (struct gui_data *)data;    if (inst->pixmap)	gdk_pixmap_unref(inst->pixmap);    inst->pixmap = gdk_pixmap_new(widget->window, 9*80, 15*24, -1);    inst->fonts[0] = gdk_font_load("9x15t");   /* XXCONFIG */    inst->fonts[1] = NULL;             /* XXCONFIG */    inst->black_gc = widget->style->black_gc;    inst->white_gc = widget->style->white_gc;    /*     * Set up the colour map.     */    inst->colmap = gdk_colormap_get_system();    {	static const int ww[] = {	    6, 7, 8, 9, 10, 11, 12, 13,	    14, 15, 16, 17, 18, 19, 20, 21,	    0, 1, 2, 3, 4, 5	};	gboolean success[NCOLOURS];	int i;	assert(lenof(ww) == NCOLOURS);	for (i = 0; i < NCOLOURS; i++) {	    inst->cols[i].red = cfg.colours[ww[i]][0] * 0x0101;	    inst->cols[i].green = cfg.colours[ww[i]][1] * 0x0101;	    inst->cols[i].blue = cfg.colours[ww[i]][2] * 0x0101;	}	gdk_colormap_alloc_colors(inst->colmap, inst->cols, NCOLOURS,				  FALSE, FALSE, success);	for (i = 0; i < NCOLOURS; i++) {	    if (!success[i])		g_error("pterm: couldn't allocate colour %d (#%02x%02x%02x)\n",			i, cfg.colours[i][0], cfg.colours[i][1], cfg.colours[i][2]);	}    }    return TRUE;}