diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-07-18 19:54:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-07-18 19:54:07 +0000 |
commit | 0e754b672553d9f640c8226df41bb7c781fcdec2 (patch) | |
tree | 298ac83d72ed4a3a315dab7b2094b7320162603f /gtk/recent.c | |
parent | 1eed77c0a4e539bd3085df837c3193e540aa2dc3 (diff) |
If the pane separator positions are 0 (e.g., because this is GTK+
1.2[.x] and you can't get the positions), don't write them out, as
they'll get errors when they're read back in.
svn path=/trunk/; revision=11414
Diffstat (limited to 'gtk/recent.c')
-rw-r--r-- | gtk/recent.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/recent.c b/gtk/recent.c index bcf2137720..de5742e116 100644 --- a/gtk/recent.c +++ b/gtk/recent.c @@ -184,12 +184,18 @@ write_recent(char **rf_path_return) fprintf(rf, "\n# Main window panes (GTK2 only).\n"); fprintf(rf, "# Decimal numbers.\n"); - fprintf(rf, RECENT_GUI_GEOMETRY_MAIN_UPPER_PANE ": %d\n", + if (recent.gui_geometry_main_upper_pane != 0) { + fprintf(rf, RECENT_GUI_GEOMETRY_MAIN_UPPER_PANE ": %d\n", recent.gui_geometry_main_upper_pane); - fprintf(rf, RECENT_GUI_GEOMETRY_MAIN_LOWER_PANE ": %d\n", + } + if (recent.gui_geometry_main_lower_pane != 0) { + fprintf(rf, RECENT_GUI_GEOMETRY_MAIN_LOWER_PANE ": %d\n", recent.gui_geometry_main_lower_pane); - fprintf(rf, RECENT_GUI_GEOMETRY_STATUS_PANE ": %d\n", + } + if (recent.gui_geometry_status_pane != 0) { + fprintf(rf, RECENT_GUI_GEOMETRY_STATUS_PANE ": %d\n", recent.gui_geometry_status_pane); + } if (get_last_open_dir() != NULL) { fprintf(rf, "\n# Last directory navigated to in File Open dialog.\n"); |