Mercurial > pidgin
changeset 32210:73d04f4b18ee
Make sure our pref parents exist, or else saved variants will
be forgotten when restarting or re-opening the Preferences.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Sep 2011 17:50:24 +0000 |
parents | e51f656d74e5 |
children | fa4b88cf8b56 |
files | pidgin/gtkconv-theme-loader.c pidgin/gtkconv.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv-theme-loader.c Fri Sep 23 02:19:47 2011 +0000 +++ b/pidgin/gtkconv-theme-loader.c Fri Sep 23 17:50:24 2011 +0000 @@ -190,6 +190,12 @@ const char *default_variant = NULL; const char *file; + /* Make sure prefs exist */ + prefname = g_strdup_printf(PIDGIN_PREFS_ROOT "/conversations/themes/%s", + CFBundleIdentifier); + purple_prefs_add_none(prefname); + g_free(prefname); + /* Try user-set variant */ prefname = g_strdup_printf(PIDGIN_PREFS_ROOT "/conversations/themes/%s/variant", CFBundleIdentifier);
--- a/pidgin/gtkconv.c Fri Sep 23 02:19:47 2011 +0000 +++ b/pidgin/gtkconv.c Fri Sep 23 17:50:24 2011 +0000 @@ -8205,6 +8205,7 @@ /* Conversations */ purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations"); + purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations/themes"); purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling", TRUE); purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/close_on_tabs", TRUE); purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/send_bold", FALSE);