pidgin: b4e279b6: Call purple_prefs_add_none on the parent...

qulogic at pidgin.im qulogic at pidgin.im
Thu Sep 3 22:36:35 EDT 2009


-----------------------------------------------------------------
Revision: b4e279b6e8713eef1b22b8f9eb2c3992d11efd2d
Ancestor: cb45b9abc0e8fcd12208cbff8a1d57fd6cda1c82
Author: qulogic at pidgin.im
Date: 2009-09-03T23:55:37
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b4e279b6e8713eef1b22b8f9eb2c3992d11efd2d

Modified files:
        pidgin/pidginstock.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/pidginstock.c	2487a2d68312f5afff439a0fa765c3fe40553701
+++ pidgin/pidginstock.c	f9a3ca4f7898c00e00157a68efaaaf7c90de4e73
@@ -583,11 +583,13 @@ pidgin_stock_init(void)
 	/* 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", "");
 


More information about the Commits mailing list