Add a configure option for default window size
This commit is contained in:
parent
b814567e2b
commit
2355c20e92
2 changed files with 4 additions and 1 deletions
|
@ -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 |
|
static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
|
||||||
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
|
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
|
||||||
|
|
||||||
|
|
2
surf.c
2
surf.c
|
@ -1200,7 +1200,7 @@ createwindow(Client *c)
|
||||||
gtk_window_set_role(GTK_WINDOW(w), wmstr);
|
gtk_window_set_role(GTK_WINDOW(w), wmstr);
|
||||||
g_free(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",
|
g_signal_connect(G_OBJECT(w), "destroy",
|
||||||
|
|
Loading…
Reference in a new issue