示例#1
0
void window_sync(void)
/* Sync data with profile, do not change item order! */
{
        profile_write("window");

        /* Docking the window will mess up the desired natural frame */
        if (!profile_read_only && window_docked) {
                profile_sync_int(&window_frame_saved.x);
                profile_sync_int(&window_frame_saved.y);
        } else {
                profile_sync_int(&window_frame.x);
                profile_sync_int(&window_frame.y);
        }

        profile_sync_int(&training_block);
        profile_sync_int(&window_shown);
        profile_sync_int(&window_button_labels);
        profile_sync_int(&keyboard_size);
        profile_sync_int(&window_docked);
        profile_write("\n");
}
示例#2
0
void options_sync(void)
/* Read or write options. Order here is important for compatibility. */
{
        profile_write("options");
        profile_sync_int(&cell_width);
        profile_sync_int(&cell_height);
        profile_sync_int(&cell_cols_pref);
        profile_sync_int(&cell_rows_pref);
        color_sync(&custom_active_color);
        color_sync(&custom_inactive_color);
        color_sync(&custom_select_color);
        color_sync(&custom_ink_color);
        profile_sync_int(&train_on_input);
        profile_sync_int(&ignore_stroke_dir);
        profile_sync_int(&ignore_stroke_num);
        profile_sync_int(&wordfreq_enable);
        profile_sync_int(&right_to_left);
        color_sync(&custom_key_color);
        profile_sync_int(&keyboard_enabled);
        profile_sync_int(&xinput_enabled);
        profile_sync_int(&style_colors);
        profile_sync_int(&status_menu_left_click);
        profile_write("\n");
}