/*! \todo Finish function documentation!!! * \brief * \par Function Description * */ void x_window_setup (GschemToplevel *w_current) { TOPLEVEL *toplevel = gschem_toplevel_get_toplevel (w_current); /* immediately setup user params */ i_vars_set(w_current); /* Initialize the autosave callback */ s_page_autosave_init(toplevel); /* Initialize the clipboard callback */ x_clipboard_init (w_current); /* x_window_setup_world() - BEGIN */ w_current->win_width = default_width; w_current->win_height = default_height; /* x_window_setup_world() - END */ /* Add to the list of windows */ global_window_list = g_list_append (global_window_list, w_current); /* X related stuff */ x_window_create_main (w_current); x_menu_attach_recent_files_submenu(w_current); }
/*! \todo Finish function documentation!!! * \brief * \par Function Description * */ void x_window_setup (GSCHEM_TOPLEVEL *w_current) { TOPLEVEL *toplevel = w_current->toplevel; /* immediately setup user params */ i_vars_set(w_current); /* Initialize the autosave callback */ s_page_autosave_init(toplevel); /* Initialize the clipboard callback */ x_clipboard_init (w_current); /* x_window_setup_world() - BEGIN */ toplevel->init_left = -45; toplevel->init_top = -45; /* init_right and _bottom are set before this function is called */ toplevel->width = default_width; toplevel->height = default_height; w_current->win_width = toplevel->width; w_current->win_height = toplevel->height; /* x_window_setup_world() - END */ /* Add to the list of windows */ global_window_list = g_list_append (global_window_list, w_current); /* X related stuff */ x_window_create_main (w_current); x_menu_attach_recent_files_submenu(w_current); }