Align memory data columns text on left side
[emu8051.git] / src / app-config.c
index b61b900..6d65df9 100644 (file)
@@ -55,6 +55,7 @@ app_config_init(void)
        cfg->win_height = 480;
        cfg->hpane_pos = 100;
        cfg->vpane_pos = 200;
+       cfg->vpane_mem_pos = 200;
 }
 
 static int
@@ -85,6 +86,8 @@ app_config_load_from_key_file(GKeyFile *kf)
        app_config_key_file_get_int(kf, "ui", "win_height", &cfg->win_height);
        app_config_key_file_get_int(kf, "ui", "hpane_pos",  &cfg->hpane_pos);
        app_config_key_file_get_int(kf, "ui", "vpane_pos",  &cfg->vpane_pos);
+       app_config_key_file_get_int(kf, "ui", "vpane_mem_pos",
+                                   &cfg->vpane_mem_pos);
 }
 
 static char *
@@ -165,6 +168,8 @@ app_config_save(void)
                g_string_append_printf(buf, "win_height=%d\n", cfg->win_height);
                g_string_append_printf(buf, "hpane_pos=%d\n", cfg->hpane_pos);
                g_string_append_printf(buf, "vpane_pos=%d\n", cfg->vpane_pos);
+               g_string_append_printf(buf, "vpane_mem_pos=%d\n",
+                                      cfg->vpane_mem_pos);
 
                file_path = app_config_get_file_path();