Mercurial > hg > xmms-sid
comparison src/xs_config.c @ 260:7a23dfef023d
More subauto poking.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Dec 2004 22:16:00 +0000 |
parents | e255f23abf33 |
children | eebb38debe35 |
comparison
equal
deleted
inserted
replaced
259:b9bdf4c5baf0 | 260:7a23dfef023d |
---|---|
242 #else | 242 #else |
243 xs_cfg.titleOverride = TRUE; | 243 xs_cfg.titleOverride = TRUE; |
244 #endif | 244 #endif |
245 xs_pstrcpy(&xs_cfg.titleFormat, "%p - %t (%c) [%n]"); | 245 xs_pstrcpy(&xs_cfg.titleFormat, "%p - %t (%c) [%n]"); |
246 | 246 |
247 | |
248 xs_cfg.subAutoEnable = FALSE; | |
249 xs_cfg.subAutoMinOnly = TRUE; | |
250 xs_cfg.subAutoMinTime = 15; | |
251 | |
247 | 252 |
248 /* Try to open the XMMS configuration file */ | 253 /* Try to open the XMMS configuration file */ |
249 XSDEBUG("loading from config-file ...\n"); | 254 XSDEBUG("loading from config-file ...\n"); |
250 #ifdef HAVE_NODEFAULTCFG | 255 #ifdef HAVE_NODEFAULTCFG |
251 cfgFilename = g_strconcat(g_get_home_dir(), XS_CONFIG_FILE, NULL); | 256 cfgFilename = g_strconcat(g_get_home_dir(), XS_CONFIG_FILE, NULL); |
704 gtk_widget_set_sensitive(LUW("cfg_hvsc_browse"), isActive); | 709 gtk_widget_set_sensitive(LUW("cfg_hvsc_browse"), isActive); |
705 gtk_widget_set_sensitive(LUW("cfg_hvsc_label1"), isActive); | 710 gtk_widget_set_sensitive(LUW("cfg_hvsc_label1"), isActive); |
706 } | 711 } |
707 | 712 |
708 | 713 |
714 void xs_cfg_subauto_enable_toggled(GtkToggleButton *togglebutton, gpointer user_data) | |
715 { | |
716 gboolean isActive = GTK_TOGGLE_BUTTON(LUW("cfg_subauto_enable"))->active; | |
717 | |
718 gtk_widget_set_sensitive(LUW("cfg_subauto_min_only"), isActive); | |
719 gtk_widget_set_sensitive(LUW("cfg_subauto_mintime"), isActive); | |
720 } | |
721 | |
722 | |
723 void xs_cfg_subauto_min_only_toggled(GtkToggleButton *togglebutton, gpointer user_data) | |
724 { | |
725 gboolean isActive = GTK_TOGGLE_BUTTON(LUW("cfg_subauto_min_only"))->active && | |
726 GTK_TOGGLE_BUTTON(LUW("cfg_subauto_enable"))->active; | |
727 | |
728 gtk_widget_set_sensitive(LUW("cfg_subauto_mintime"), isActive); | |
729 } | |
730 | |
709 | 731 |
710 void xs_cfg_mintime_changed(GtkEditable *editable, gpointer user_data) | 732 void xs_cfg_mintime_changed(GtkEditable *editable, gpointer user_data) |
711 { | 733 { |
712 gint tmpValue; | 734 gint tmpValue; |
713 GtkAdjustment *tmpAdj; | 735 GtkAdjustment *tmpAdj; |
786 xs_cfg_oversample_toggled(NULL, NULL); | 808 xs_cfg_oversample_toggled(NULL, NULL); |
787 xs_cfg_mintime_enable_toggled(NULL, NULL); | 809 xs_cfg_mintime_enable_toggled(NULL, NULL); |
788 xs_cfg_maxtime_enable_toggled(NULL, NULL); | 810 xs_cfg_maxtime_enable_toggled(NULL, NULL); |
789 xs_cfg_sld_enable_toggled(NULL, NULL); | 811 xs_cfg_sld_enable_toggled(NULL, NULL); |
790 xs_cfg_stil_enable_toggled(NULL, NULL); | 812 xs_cfg_stil_enable_toggled(NULL, NULL); |
813 xs_cfg_subauto_enable_toggled(NULL, NULL); | |
814 xs_cfg_subauto_min_only_toggled(NULL, NULL); | |
791 | 815 |
792 | 816 |
793 /* Set current data to widgets */ | 817 /* Set current data to widgets */ |
794 for (i = 0; i < xs_widtable_max; i++) | 818 for (i = 0; i < xs_widtable_max; i++) |
795 { | 819 { |