X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fplugins%2Ffancy%2Ffancy_prefs.c;h=a2ca78196350e26c3f5eb2c8367f21fc71b105e3;hp=cbba9592663d6e823b95f59912a0227c38b1481f;hb=126ff4dcbc912d839ba9e0340857d22abf71e0ef;hpb=d2578f7adcf14a288a101e94f048c8215e3a200b diff --git a/src/plugins/fancy/fancy_prefs.c b/src/plugins/fancy/fancy_prefs.c index cbba95926..a2ca78196 100644 --- a/src/plugins/fancy/fancy_prefs.c +++ b/src/plugins/fancy/fancy_prefs.c @@ -442,7 +442,15 @@ static void save_fancy_prefs_page(PrefsPage *page) fancy_prefs.enable_proxy = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(prefs_page->proxy_checkbox)); fancy_prefs.proxy_str = pref_get_pref_from_entry(GTK_ENTRY(prefs_page->proxy_str)); +#ifdef G_OS_WIN32 + /* pref_get_pref_from_entry() escapes the backslashes in strings, + * we do not want that, since this entry contains a Windows path. + * Let's just strdup it. */ + fancy_prefs.stylesheet = g_strdup(gtk_entry_get_text( + GTK_ENTRY(prefs_page->stylesheet))); +#else fancy_prefs.stylesheet = pref_get_pref_from_entry(GTK_ENTRY(prefs_page->stylesheet)); +#endif save_fancy_prefs(page); }