{"win_height_edit",CFG_ENTRY_INT,0,&uinfo->win_height_edit},\
{"win_width_min",CFG_ENTRY_INT,0,&uinfo->win_width_min},\
{"win_height_min",CFG_ENTRY_INT,0,&uinfo->win_height_min},\
+{"win_pos_x",CFG_ENTRY_INT,0,&uinfo->x},\
+{"win_pos_y",CFG_ENTRY_INT,0,&uinfo->y},\
{"vol_vis",CFG_ENTRY_BOOL,0,&uinfo->volvis},\
{"track_edit_vis",CFG_ENTRY_BOOL,0,&uinfo->track_edit_visible},\
{"track_prog_vis",CFG_ENTRY_BOOL,0,&uinfo->track_prog_visible},\
}
}
+ /* Position window from values in config file. */
+ gtk_window_move(GTK_WINDOW(app),uinfo->x, uinfo->y);
+
gtk_widget_realize(app);
uinfo->winbox=gtk_vbox_new(FALSE,3);
static void ReallyDie(gpointer data)
{
GripInfo *ginfo;
+ GripGUI *uinfo;
ginfo=(GripInfo *)data;
+ uinfo = &(ginfo->gui_info);
#ifndef GRIPCD
if(ginfo->ripping_a_disc) KillRip(NULL,ginfo);
if(!ginfo->no_interrupt)
CDStop(&(ginfo->disc));
+ /* For saving the window position */
+ gtk_window_get_position(GTK_WINDOW(uinfo->app), &uinfo->x, &uinfo->y);
+
DoSaveConfig(ginfo);
gtk_main_quit();