[Goodies-commits] r6561 - xfce4-radio-plugin/trunk/panel-plugin

Stefan Ott cockroach at xfce.org
Sun Jan 25 23:46:26 CET 2009


Author: cockroach
Date: 2009-01-25 22:46:25 +0000 (Sun, 25 Jan 2009)
New Revision: 6561

Modified:
   xfce4-radio-plugin/trunk/panel-plugin/xfce4-radio.c
Log:
Can now save/load new config options


Modified: xfce4-radio-plugin/trunk/panel-plugin/xfce4-radio.c
===================================================================
--- xfce4-radio-plugin/trunk/panel-plugin/xfce4-radio.c	2009-01-25 22:33:11 UTC (rev 6560)
+++ xfce4-radio-plugin/trunk/panel-plugin/xfce4-radio.c	2009-01-25 22:46:25 UTC (rev 6561)
@@ -1462,6 +1462,13 @@
 	xfce_rc_write_bool_entry(rc, "show_signal", data->show_signal);
 	xfce_rc_write_bool_entry(rc, "update_display",
 						data->auto_update_display);
+	xfce_rc_write_bool_entry(rc, "show_label", data->show_label);
+	xfce_rc_write_bool_entry(rc, "show_label_when_off",
+						data->show_label_when_off);
+	xfce_rc_write_bool_entry(rc, "resolve_presets_in_label",
+						data->resolve_presets_in_label);
+	xfce_rc_write_bool_entry(rc, "graphical_signal",
+						data->show_signal_graphical);
 
 	if (!save_presets)
 	{
@@ -1582,11 +1589,22 @@
 
 	xfce_rc_set_group (rc, "radio plugin");
 
-	data->freq = xfce_rc_read_int_entry (rc, "frq", FREQ_INIT);
-	data->scroll = xfce_rc_read_int_entry (rc, "scroll", CHANGE_FREQ);
-	data->show_signal = xfce_rc_read_bool_entry (rc, "show_signal", TRUE);
+	data->freq = xfce_rc_read_int_entry
+					(rc, "frq", FREQ_INIT);
+	data->scroll = xfce_rc_read_int_entry
+					(rc, "scroll", CHANGE_FREQ);
+	data->show_signal = xfce_rc_read_bool_entry
+					(rc, "show_signal", TRUE);
 	data->auto_update_display = xfce_rc_read_bool_entry
-						(rc, "update_display", TRUE);
+					(rc, "update_display", TRUE);
+	data->show_label = xfce_rc_read_bool_entry
+					(rc, "show_label", TRUE);
+	data->show_label_when_off = xfce_rc_read_bool_entry
+					(rc, "show_label_when_off", FALSE);
+	data->resolve_presets_in_label = xfce_rc_read_bool_entry
+					(rc, "resolve_presets_in_label", TRUE);
+	data->show_signal_graphical = xfce_rc_read_bool_entry
+					(rc, "graphical_signal", TRUE);
 
 	if ((value = xfce_rc_read_entry (rc, "dev", NULL)) && *value)
 		strncpy (data->device, value, MAX_DEVICE_NAME_LENGTH);




More information about the Goodies-commits mailing list