X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fprefs_common.c;h=dee8f3bbc13af7828da9b8f290fdeacf73d27d15;hp=94b3fa1481bf7ea95b55626eecb7dea83e75519b;hb=fdf8ed4bdb242fa0c86dc18038c0abb631a08ed0;hpb=479275f68fc3622b0d9ca4ac9798728086fce184 diff --git a/src/prefs_common.c b/src/prefs_common.c index 94b3fa148..dee8f3bbc 100644 --- a/src/prefs_common.c +++ b/src/prefs_common.c @@ -139,6 +139,10 @@ static PrefParam param_os_specific[] = { */ static PrefParam param[] = { +#ifdef MAEMO + {"data_root", "", &prefs_common.data_root, P_STRING, + NULL, NULL, NULL}, +#endif /* Receive */ {"use_ext_inc", "FALSE", &prefs_common.use_extinc, P_BOOL, NULL, NULL, NULL}, @@ -1377,6 +1381,16 @@ gboolean prefs_common_enable_log_status(void) { return prefs_common.enable_log_status; } + +#ifdef MAEMO +const gchar *prefs_common_get_data_root(void) +{ + if (prefs_common.data_root && *prefs_common.data_root) + return prefs_common.data_root; + else + return NULL; +} +#endif /** return the translated name of a header, if the translate_header option is set, otherwise return the untranslated header name (header_name itself).