changeset 28546:12dbf561b9c7

Call purple_prefs_add_none on the parents for the status and stock icon themes or else they won't be saved on completely new configs. That causes the icon theme pref to disappear in Tools->Preferences.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 03 Sep 2009 23:55:37 +0000
parents dda434352a35
children 158d7fc55fda
files pidgin/pidginstock.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/pidginstock.c	Thu Sep 03 23:09:08 2009 +0000
+++ b/pidgin/pidginstock.c	Thu Sep 03 23:55:37 2009 +0000
@@ -583,11 +583,13 @@
 	/* Setup the status icon theme */
 	loader = g_object_new(PIDGIN_TYPE_ICON_THEME_LOADER, "type", "status-icon", NULL);
 	purple_theme_manager_register_type(PURPLE_THEME_LOADER(loader));
+	purple_prefs_add_none(PIDGIN_PREFS_ROOT "/status");
 	purple_prefs_add_string(PIDGIN_PREFS_ROOT "/status/icon-theme", "");
 	purple_prefs_add_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir", "");
 
 	stockloader = g_object_new(PIDGIN_TYPE_ICON_THEME_LOADER, "type", "stock-icon", NULL);
 	purple_theme_manager_register_type(PURPLE_THEME_LOADER(stockloader));
+	purple_prefs_add_none(PIDGIN_PREFS_ROOT "/stock");
 	purple_prefs_add_string(PIDGIN_PREFS_ROOT "/stock/icon-theme", "");
 	purple_prefs_add_path(PIDGIN_PREFS_ROOT "/stock/icon-theme-dir", "");