summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2006-08-29 00:17:35 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2006-08-29 00:17:35 +0000
commit66d0d78be17e0314bbd631d28e1e8983c79f9b1a (patch)
treeff8238439245f67ad801f98cab1a953eeff5999f /desktop
parentfa24f64b60ff1d1992d324ca3f0abc6d09b6869c (diff)
downloadnetsurf-66d0d78be17e0314bbd631d28e1e8983c79f9b1a.tar.gz
netsurf-66d0d78be17e0314bbd631d28e1e8983c79f9b1a.tar.bz2
Move default window size opens into core for use from nsgtk
svn path=/trunk/netsurf/; revision=2900
Diffstat (limited to 'desktop')
-rw-r--r--desktop/options.c26
-rw-r--r--desktop/options.h7
2 files changed, 33 insertions, 0 deletions
diff --git a/desktop/options.c b/desktop/options.c
index ab23aaebc..a8eef2efa 100644
--- a/desktop/options.c
+++ b/desktop/options.c
@@ -93,6 +93,25 @@ char *option_cookie_jar = 0;
char *option_homepage_url = 0;
/** URL completion in url bar */
bool option_url_suggestion = true;
+/** default x position of new windows */
+int option_window_x = 0;
+/** default y position of new windows */
+int option_window_y = 0;
+/** default width of new windows */
+int option_window_width = 0;
+/** default height of new windows */
+int option_window_height = 0;
+/** width of screen when above options were saved */
+int option_window_screen_width = 0;
+/** height of screen when above options were saved */
+int option_window_screen_height = 0;
+/** default size of status bar vs. h scroll bar */
+#ifdef nsgtk
+int option_toolbar_status_width = 5;
+#else
+int option_toolbar_status_width = 6667;
+#endif
+
/* Fetcher configuration */
/** Maximum simultaneous active fetchers */
int option_max_fetchers = 24;
@@ -142,6 +161,13 @@ struct {
{ "cookie_jar", OPTION_STRING, &option_cookie_jar },
{ "homepage_url", OPTION_STRING, &option_homepage_url },
{ "url_suggestion", OPTION_BOOL, &option_url_suggestion },
+ { "window_x", OPTION_INTEGER, &option_window_x },
+ { "window_y", OPTION_INTEGER, &option_window_y },
+ { "window_width", OPTION_INTEGER, &option_window_width },
+ { "window_height", OPTION_INTEGER, &option_window_height },
+ { "window_screen_width", OPTION_INTEGER, &option_window_screen_width },
+ { "window_screen_height", OPTION_INTEGER, &option_window_screen_height },
+ { "toolbar_status_size", OPTION_INTEGER, &option_toolbar_status_width },
/* Fetcher options */
{ "max_fetchers", OPTION_INTEGER, &option_max_fetchers },
{ "max_fetchers_per_host",
diff --git a/desktop/options.h b/desktop/options.h
index d3b738480..551fef5f8 100644
--- a/desktop/options.h
+++ b/desktop/options.h
@@ -58,6 +58,13 @@ extern char *option_cookie_file;
extern char *option_cookie_jar;
extern char *option_homepage_url;
extern bool option_url_suggestion;
+extern int option_window_x;
+extern int option_window_y;
+extern int option_window_width;
+extern int option_window_height;
+extern int option_window_screen_width;
+extern int option_window_screen_height;
+extern int option_toolbar_status_width;
/* Fetcher configuration. */
extern int option_max_fetchers;