changeset 34085:cc1808245016

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.
author ib
date Sat, 01 Oct 2011 17:30:43 +0000
parents b77b5e7bee72
children b6518c14e5e2
files gui/win32/wincfg.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();