Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd a configure option for default window size - surf - customized build of su…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 2355c20e92d6f47100323e3394d565f8e8bf70dc
parent b814567e2bf8bda07cea8de1c7a062f4aa437b65
Author: Quentin Rameau <[email protected]>
Date: Wed, 19 Apr 2017 16:05:39 +0200
Add a configure option for default window size
Diffstat:
M config.def.h | 3 +++
M surf.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/config.def.h b/config.def.h
t@@ -42,6 +42,9 @@ static UriParameters uriparams[] = {
}, },
};
+/* default window size: width, height */
+static int winsize[] = { 800, 600 };
+
static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
diff --git a/surf.c b/surf.c
t@@ -1200,7 +1200,7 @@ createwindow(Client *c)
gtk_window_set_role(GTK_WINDOW(w), wmstr);
g_free(wmstr);
- gtk_window_set_default_size(GTK_WINDOW(w), 800, 600);
+ gtk_window_set_default_size(GTK_WINDOW(w), winsize[0], winsize…
}
g_signal_connect(G_OBJECT(w), "destroy",
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.