Esempio n. 1
0
static void atari_sslcert_viewer_destroy(struct atari_sslcert_viewer_s * cvwin)
{
	assert(cvwin);
	assert(cvwin->init);
	assert(cvwin->window);

	NSLOG(netsurf, INFO, "cvwin %p", cvwin);

	if (atari_treeview_is_open(cvwin->tv))
		atari_treeview_close(cvwin->tv);
	wind_delete(gemtk_wm_get_handle(cvwin->window));
	gemtk_wm_remove(cvwin->window);
	cvwin->window = NULL;
	atari_treeview_delete(cvwin->tv);
	free(cvwin);
	NSLOG(netsurf, INFO, "done");
}
Esempio n. 2
0
void atari_global_history_destroy(void)
{

	if ( atari_global_history.init == false) {
		return;
	}

	if ( atari_global_history.window != NULL ) {
		if (atari_treeview_is_open(atari_global_history.tv))
			atari_global_history_close();
		wind_delete(gemtk_wm_get_handle(atari_global_history.window));
		gemtk_wm_remove(atari_global_history.window);
		atari_global_history.window = NULL;
		atari_treeview_delete(atari_global_history.tv);
		atari_global_history.init = false;
	}
	NSLOG(netsurf, INFO, "done");
}
Esempio n. 3
0
static void __CDECL menu_savewin(short item, short title, void *data)
{
	LOG(("%s", __FUNCTION__));
	if (input_window && input_window->browser) {
		GRECT rect;
		wind_get_grect(gemtk_wm_get_handle(input_window->root->win), WF_CURRXYWH,
                 &rect);
		option_window_width = rect.g_w;
		option_window_height = rect.g_h;
		option_window_x = rect.g_x;
		option_window_y = rect.g_y;
		nsoption_set_int(window_width, rect.g_w);
		nsoption_set_int(window_height, rect.g_h);
		nsoption_set_int(window_x, rect.g_x);
		nsoption_set_int(window_y, rect.g_y);
		nsoption_write((const char*)&options);
	}

}
Esempio n. 4
0
void atari_global_history_open(void)
{
	assert(atari_global_history.init);

	if (atari_global_history.init == false) {
		return;
	}

	if (atari_treeview_is_open(atari_global_history.tv) == false) {

		GRECT pos;
		pos.g_x = desk_area.g_w - desk_area.g_w / 4;
		pos.g_y = desk_area.g_y;
		pos.g_w = desk_area.g_w / 4;
		pos.g_h = desk_area.g_h;

		atari_treeview_open(atari_global_history.tv, &pos);
	} else {
		wind_set(gemtk_wm_get_handle(atari_global_history.window), WF_TOP, 1, 0, 0, 0);
	}
}
Esempio n. 5
0
/*
 * documented in certview.h
 */
void atari_sslcert_viewer_open(struct sslcert_session_data *ssl_d)
{
	struct atari_sslcert_viewer_s * cvwin;

	cvwin = calloc(1, sizeof(struct atari_sslcert_viewer_s));

	assert(cvwin);

	atari_sslcert_viewer_init(cvwin, ssl_d);

	if (atari_treeview_is_open(cvwin->tv) == false) {

		GRECT pos;
		pos.g_x = desk_area.g_w - desk_area.g_w / 4;
		pos.g_y = desk_area.g_y;
		pos.g_w = desk_area.g_w / 4;
		pos.g_h = desk_area.g_h;

		atari_treeview_open(cvwin->tv, &pos);
	} else {
		wind_set(gemtk_wm_get_handle(cvwin->window), WF_TOP, 1, 0,
			 0, 0);
	}
}
Esempio n. 6
0
void sb_attach(CMP_STATUSBAR sb, struct gui_window * gw)
{
	sb->aes_win = gemtk_wm_get_handle(gw->root->win);
	sb->attached = true;
}