aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2008-11-04 07:20:39 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-06-12 00:06:31 +0800
commit9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24 (patch)
tree29ce10567bd30ec5be40912c17802733a7843cc4
parent0d73068c7f58185be37a2fe42fe006342e441dc1 (diff)
downloadgsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.tar
gsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.tar.gz
gsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.tar.bz2
gsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.tar.lz
gsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.tar.xz
gsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.tar.zst
gsoc2013-empathy-9526e4a4b28eab55a52d3fb9d1d3cfc9d990af24.zip
Fix a warning when the ADIUM_PATH gconf key is unset.
-rw-r--r--src/empathy-preferences.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index cc8b4508b..b74c85c61 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -968,14 +968,21 @@ preferences_theme_adium_path_notify_cb (EmpathyConf *conf,
EmpathyPreferences *preferences = user_data;
GtkFileChooser *chooser;
gchar *value;
+ const gchar *path;
if (!empathy_conf_get_string (conf, key, &value)) {
return;
}
+ if (G_STR_EMPTY (value)) {
+ path = g_get_home_dir ();
+ } else {
+ path = value;
+ }
+
chooser = GTK_FILE_CHOOSER (preferences->filechooserbutton_adium_theme);
- gtk_file_chooser_set_current_folder (chooser, value);
- preferences_theme_adium_update_validity (preferences, value);
+ gtk_file_chooser_set_current_folder (chooser, path);
+ preferences_theme_adium_update_validity (preferences, path);
g_free (value);
}