# HG changeset patch # User ib # Date 1317490243 0 # Node ID cc1808245016c1f68384fd51b50b6ccb98b7aff8 # Parent b77b5e7bee728776c4854b65f387ad4d20b3b62b Make idle mode default in Win32 GUI. Idle mode is required to keep gmplayer around after a file is done. This already is the default behavior for the X11/GTK GUI. Patch by Stephen Sheldon, sfsheldo gmail com. diff -r b77b5e7bee72 -r cc1808245016 gui/win32/wincfg.c --- a/gui/win32/wincfg.c Sat Oct 01 15:49:19 2011 +0000 +++ b/gui/win32/wincfg.c Sat Oct 01 17:30:43 2011 +0000 @@ -84,6 +84,7 @@ { "gui_sub_pos_y", &gui_sub_pos_y, CONF_TYPE_INT, 0, 0, 0, NULL }, { "sub_window", &sub_window, CONF_TYPE_FLAG, 0, 0, 1, NULL}, { "console", &console, CONF_TYPE_FLAG, 0, 0, 1, NULL}, + { "idle", &player_idle_mode, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, { NULL, NULL, 0, 0, 0, 0, NULL } }; @@ -98,6 +99,8 @@ { char *cfg = get_path("gui.conf"); + player_idle_mode = 1; // GUI is in idle mode by default + /* read configuration */ mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] [cfg] reading config file: %s\n", cfg); gui_conf = m_config_new();