pidgin: 63b7ff32: Avoid an error log for non-existent pref...
qulogic at pidgin.im
qulogic at pidgin.im
Mon Sep 19 22:15:42 EDT 2011
----------------------------------------------------------------------
Revision: 63b7ff32928b2ca8a05b1fd076f82434ddccdae6
Parent: 4bbc900d2b6991c4639a85197e1e31cef94ff919
Author: qulogic at pidgin.im
Date: 09/19/11 19:22:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/63b7ff32928b2ca8a05b1fd076f82434ddccdae6
Changelog:
Avoid an error log for non-existent prefs.
Changes against parent 4bbc900d2b6991c4639a85197e1e31cef94ff919
patched pidgin/gtkconv-theme-loader.c
-------------- next part --------------
============================================================
--- pidgin/gtkconv-theme-loader.c 512d94f4c3d24d716f550412d2ea4ab7516f6898
+++ pidgin/gtkconv-theme-loader.c 0dd356171c2d717e50fc7f2fcb6061363b93d71a
@@ -193,7 +193,8 @@ pidgin_conv_loader_build(const gchar *di
/* Try user-set variant */
prefname = g_strdup_printf(PIDGIN_PREFS_ROOT "/conversations/themes/%s/variant",
CFBundleIdentifier);
- default_variant = purple_prefs_get_string(prefname);
+ if (purple_prefs_exists(prefname))
+ default_variant = purple_prefs_get_string(prefname);
g_free(prefname);
if (default_variant && *default_variant) {
More information about the Commits
mailing list