aboutsummaryrefslogtreecommitdiffstats
path: root/ui/recent.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-02-02 05:34:31 +0000
committerGuy Harris <guy@alum.mit.edu>2013-02-02 05:34:31 +0000
commit6ebabce7b50702ef8f49653f8d6d2bcde424c027 (patch)
tree8da0cd6d22b1c6b1d7449c603f29b96df9c5880e /ui/recent.h
parentab3840049e8de97b835a393fc964b2bd61e04ff9 (diff)
Move the GUI-independent window geometry stuff to ui/recent.c, so we
only have one copy. svn path=/trunk/; revision=47440
Diffstat (limited to 'ui/recent.h')
-rw-r--r--ui/recent.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/recent.h b/ui/recent.h
index 7b22a6a8cc..0954e71b3b 100644
--- a/ui/recent.h
+++ b/ui/recent.h
@@ -33,6 +33,7 @@ extern "C" {
#include <glib.h>
#include "epan/timestamp.h"
+#include "ui/ui_util.h"
/** @file
* Recent user interface settings.
@@ -138,14 +139,6 @@ extern void recent_read_profile_static(char **rf_path_return, int *rf_errno_retu
*/
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.
- *
- * @param key unused
- * @param value the geometry values
- * @param rf recent file handle (FILE)
- */
-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
@@ -183,6 +176,12 @@ extern gchar recent_get_column_xalign(gint col);
*/
extern void recent_set_column_xalign(gint col, gchar xalign);
+/* save the window and its current geometry into the geometry hashtable */
+extern void window_geom_save(const gchar *name, window_geometry_t *geom);
+
+/* load the desired geometry for this window from the geometry hashtable */
+extern gboolean window_geom_load(const gchar *name, window_geometry_t *geom);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */