# HG changeset patch # User Elliott Sales de Andrade # Date 1252022137 0 # Node ID 12dbf561b9c76b36235f650eef2b1fa96a899975 # Parent dda434352a35256741d0130d8f641305ae6f6462 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. diff -r dda434352a35 -r 12dbf561b9c7 pidgin/pidginstock.c --- 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", "");