struct gui_window * gui_create_browser_window(struct browser_window *bw, struct browser_window *clone, bool new_tab) { struct gui_window *gw; gw = calloc(1, sizeof(struct gui_window)); if (gw == NULL) return NULL; /* seems we need to associate the gui window with the underlying * browser window */ gw->bw = bw; create_normal_browser_window(gw, nsoption_int(fb_furniture_size)); gw->localhistory = fb_create_localhistory(bw, fbtk, nsoption_int(fb_furniture_size)); /* map and request redraw of gui window */ fbtk_set_mapping(gw->window, true); return gw; }
struct gui_window * gui_create_browser_window(struct browser_window *bw, struct browser_window *clone, bool new_tab) { struct gui_window *gw; LOG(("GCBW calloc")); gw = calloc(1, sizeof(struct gui_window)); if (gw == NULL) return NULL; /* seems we need to associate the gui window with the underlying * browser window */ LOG(("GCBW next..")); gw->bw = bw; LOG(("fb_furn_size is STUB now!...")); //nsoption_int(fb_furniture_size); LOG(("GCBW create normal window...")); create_normal_browser_window(gw, 18); //nsoption_int(fb_furniture_size)); LOG(("GCBW create local history...")); gw->localhistory = fb_create_localhistory(bw, fbtk, nsoption_int(fb_furniture_size)); /* map and request redraw of gui window */ LOG(("GCBW set mapping")); fbtk_set_mapping(gw->window, true); LOG(("GCBW OK!")); return gw; }
static struct gui_window * gui_window_create(struct browser_window *bw, struct gui_window *existing, gui_window_create_flags flags) { struct gui_window *gw; gw = calloc(1, sizeof(struct gui_window)); if (gw == NULL) return NULL; /* associate the gui window with the underlying browser window */ gw->bw = bw; create_normal_browser_window(gw, nsoption_int(fb_furniture_size)); gw->localhistory = fb_create_localhistory(bw, fbtk, nsoption_int(fb_furniture_size)); /* map and request redraw of gui window */ fbtk_set_mapping(gw->window, true); return gw; }