Managesieve: use accessor for common preferences
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 1 Jul 2015 10:25:32 +0000 (12:25 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 1 Jul 2015 10:25:32 +0000 (12:25 +0200)
Fixes crash on Windows when opening the script editor window.

src/plugins/managesieve/claws.def
src/plugins/managesieve/sieve_editor.c

index 43b1e89..cb8ffc2 100644 (file)
@@ -39,7 +39,7 @@ prefs_account_register_page
 prefs_account_set_privacy_prefs
 prefs_account_unregister_page
 prefs_button_toggled
-prefs_common
+prefs_common_get_prefs
 session_connect
 session_destroy
 session_disconnect
index 28f75f5..7dc9577 100644 (file)
@@ -578,11 +578,11 @@ MENUITEM_ADDUI_MANAGER(ui_manager, "/Menu/Filter", "Revert", "Filter/Revert", GT
                         G_CALLBACK(sieve_editor_changed_cb), page);
 
        /* set text font */
-       if (prefs_common.textfont) {
+       if (prefs_common_get_prefs()->textfont) {
                PangoFontDescription *font_desc;
 
                font_desc = pango_font_description_from_string
-                       (prefs_common.textfont);
+                       (prefs_common_get_prefs()->textfont);
                if (font_desc) {
                        gtk_widget_modify_font(text, font_desc);
                        pango_font_description_free(font_desc);