diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-05-30 04:06:22 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-05-30 04:06:22 +0000 |
commit | 047cdd0f2a9f55ab8ef52d2af17090efb446acfb (patch) | |
tree | 9c9b79745f4446571340fde9439874e4a3576f66 /gtk/recent.h | |
parent | feb55854c7ca680de126eef0b03a208d08c82fee (diff) |
First part to fix #148: use command line parameter -o not only for preferences but also for recent settings.
This way we can simply remove the GUI related command line parameters -B, -P and -T, which are useless now.
svn path=/trunk/; revision=14483
Diffstat (limited to 'gtk/recent.h')
-rw-r--r-- | gtk/recent.h | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/gtk/recent.h b/gtk/recent.h index 109dda478f..4584ee18da 100644 --- a/gtk/recent.h +++ b/gtk/recent.h @@ -58,9 +58,12 @@ typedef struct recent_settings_tag { gboolean gui_geometry_main_maximized; /* this is valid in GTK2 only */ - gint gui_geometry_main_upper_pane; /* this is valid in GTK2 only */ - gint gui_geometry_main_lower_pane; /* this is valid in GTK2 only */ - gint gui_geometry_status_pane; /* this is valid in GTK2 only */ + gboolean has_gui_geometry_main_upper_pane; /* gui_geometry_main_upper_pane is valid */ + gint gui_geometry_main_upper_pane; /* this is autodetected in GTK2 only */ + gboolean has_gui_geometry_main_lower_pane; /* gui_geometry_main_lower_pane is valid */ + gint gui_geometry_main_lower_pane; /* this is autodetected in GTK2 only */ + gboolean has_gui_geometry_status_pane; /* gui_geometry_status_pane is valid */ + gint gui_geometry_status_pane; /* this is autodetected in GTK2 only */ } recent_settings_t; /** Global recent settings. */ @@ -72,12 +75,19 @@ extern recent_settings_t recent; */ extern gboolean write_recent(void); -/** Read recent settings file. +/** Read recent settings file (static part). * * @param rf_path_return path to recent file if function failed * @param rf_errno_return if failed */ -extern void read_recent(char **rf_path_return, int *rf_errno_return); +extern void recent_read_static(char **rf_path_return, int *rf_errno_return); + +/** Read recent settings file (dynamic part). + * + * @param rf_path_return path to recent file if function failed + * @param rf_errno_return if failed + */ +extern void recent_read_dynamic(char **rf_path_return, int *rf_errno_return); /** Write the geometry values of a single window to the recent file. * @@ -87,4 +97,15 @@ extern void read_recent(char **rf_path_return, int *rf_errno_return); */ extern void write_recent_geom(gpointer key, gpointer value, gpointer rf); +/** + * Given a -o command line string, parse it and set the recent value in + * question. Return an indication of whether it succeeded or failed + * in some fashion. + * + * @param a string of the form "<recent name>:<recent value>", as might appear + * as an argument to a "-o" command line option + * @return PREFS_SET_OK or PREFS_SET_SYNTAX_ERR + */ +extern int recent_set_arg(char *prefarg); + #endif /* recent.h */ |