pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b814567
)
Add a configure option for default window size
author
Quentin Rameau
<quinq@fifth.space>
Wed, 19 Apr 2017 14:05:39 +0000
(16:05 +0200)
committer
Quentin Rameau
<quinq@fifth.space>
Wed, 19 Apr 2017 17:10:21 +0000
(19:10 +0200)
config.def.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
6d3135e
..
0ade76e
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-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
index
93a1629
..
0f7e049
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-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[1]
);
}
g_signal_connect(G_OBJECT(w), "destroy",