Commit 7fdd1160 authored by Aaron R. Larson's avatar Aaron R. Larson
Browse files

Don't save edit window height on exit when appstyle is direct

(#521241).

svn path=/trunk/; revision=3485
parent bb2097f9
2008-03-26 Aaron Larson <aaron@larsonsonline.net>
* Don't save edit window height on exit when appstyle is direct
(#521241).
2008-03-26 Aaron Larson <aaron@larsonsonline.net>
* In preference dialog, make Control/Input Device and
......
......@@ -68,12 +68,12 @@ app_bp_table app_boolparamtable[] = {
app_lp_table app_longparamtable[] = {
{APP_LP_FILE_ENCODING, "FileEncodingFormat", PERS, -2, -2, "FileEncodingFormat"},
{APP_LP_EDIT_FONT_SIZE, "EditFontSize", PERS, 0, 0, "EditFontSize"},
{APP_LP_EDIT_HEIGHT, "EditHeight", PERS, 75, 75, "EditHeight0"},
{APP_LP_EDIT_HEIGHT, "EditHeight", PERS, 75, 75, "The height of the edit window"},
{APP_LP_EDIT_WIDTH, "EditWidth", PERS, 200, 200, "EditWidth"},
{APP_LP_SCREEN_WIDTH, "ScreenWidth", PERS, 400, 400, "ScreenWidth"},
{APP_LP_SCREEN_HEIGHT, "ScreenHeight", PERS, 500, 500, "ScreenHeight"},
{APP_LP_SCREEN_WIDTH_H, "ScreenWidthH", PERS, 625, 625, "ScreenWidth"},
{APP_LP_SCREEN_HEIGHT_H, "ScreenHeightH", PERS, 250, 250, "ScreenHeight"},
{APP_LP_SCREEN_WIDTH_H, "ScreenWidthH", PERS, 625, 625, "Screen Width for application style compose"},
{APP_LP_SCREEN_HEIGHT_H, "ScreenHeightH", PERS, 250, 250, "Screen Height for application style compose"},
{APP_LP_STYLE, "AppStyle", PERS, 0, 0, "Application style"},
{APP_LP_DOCK_STYLE, "DockStyle", PERS, 4, 4, "Dock Style, 0-3 = docked, 4 = floating, 5 = fullscreen"},
{APP_LP_DOCK_POSITION, "DockPosition", PERS, 100, 100, "Dock Position"},
......
......@@ -751,7 +751,9 @@ dasher_main_save_state(DasherMain *pSelf) {
iEditHeight = gtk_paned_get_position(GTK_PANED(pPrivate->pDivider));
if(dasher_app_settings_get_long(pPrivate->pAppSettings, APP_LP_STYLE) != APP_STYLE_COMPOSE) {
dasher_app_settings_set_long(pPrivate->pAppSettings, APP_LP_EDIT_HEIGHT, iEditHeight);
// APP_STYLE_DIRECT doesn't have an edit window.
if (dasher_app_settings_get_long(pPrivate->pAppSettings, APP_LP_STYLE) != APP_STYLE_DIRECT)
dasher_app_settings_set_long(pPrivate->pAppSettings, APP_LP_EDIT_HEIGHT, iEditHeight);
dasher_app_settings_set_long(pPrivate->pAppSettings, APP_LP_SCREEN_WIDTH, iWindowWidth);
dasher_app_settings_set_long(pPrivate->pAppSettings, APP_LP_SCREEN_HEIGHT, iWindowHeight);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment