pinosaur
/
surf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing the .hgtags file.
[surf.git]
/
surf.c
diff --git
a/surf.c
b/surf.c
index
702eaf6
..
1ad5ace
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-577,12
+577,13
@@
loaduri(Client *c, const Arg *arg) {
char *u, *rp;
const char *uri = (char *)arg->v;
Arg a = { .b = FALSE };
char *u, *rp;
const char *uri = (char *)arg->v;
Arg a = { .b = FALSE };
+ struct stat st;
if(strcmp(uri, "") == 0)
return;
/* In case it's a file path. */
if(strcmp(uri, "") == 0)
return;
/* In case it's a file path. */
- if(
uri[0] == '/'
) {
+ if(
stat(uri, &st) == 0
) {
rp = realpath(uri, NULL);
u = g_strdup_printf("file://%s", rp);
free(rp);
rp = realpath(uri, NULL);
u = g_strdup_printf("file://%s", rp);
free(rp);
@@
-752,6
+753,8
@@
newclient(void) {
enableinspector, NULL);
g_object_set(G_OBJECT(settings), "enable-default-context-menu",
kioskmode ^ 1, NULL);
enableinspector, NULL);
g_object_set(G_OBJECT(settings), "enable-default-context-menu",
kioskmode ^ 1, NULL);
+ g_object_set(G_OBJECT(settings), "default-font-size",
+ defaultfontsize, NULL);
if(enableinspector) {
c->inspector = WEBKIT_WEB_INSPECTOR(
if(enableinspector) {
c->inspector = WEBKIT_WEB_INSPECTOR(
@@
-808,7
+811,7
@@
newwindow(Client *c, const Arg *arg, gboolean noembed) {
}
if(!loadimages)
cmd[i++] = "-i";
}
if(!loadimages)
cmd[i++] = "-i";
- if(
!
kioskmode)
+ if(kioskmode)
cmd[i++] = "-k";
if(!enableplugins)
cmd[i++] = "-p";
cmd[i++] = "-k";
if(!enableplugins)
cmd[i++] = "-p";
@@
-887,11
+890,12
@@
processx(GdkXEvent *e, GdkEvent *event, gpointer d) {
if(ev->atom == atoms[AtomFind]) {
arg.b = TRUE;
find(c, &arg);
if(ev->atom == atoms[AtomFind]) {
arg.b = TRUE;
find(c, &arg);
+
return GDK_FILTER_REMOVE;
return GDK_FILTER_REMOVE;
- }
- else if(ev->atom == atoms[AtomGo]) {
+ } else if(ev->atom == atoms[AtomGo]) {
arg.v = getatom(c, AtomGo);
loaduri(c, &arg);
arg.v = getatom(c, AtomGo);
loaduri(c, &arg);
+
return GDK_FILTER_REMOVE;
}
}
return GDK_FILTER_REMOVE;
}
}