pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f2059fd
)
strip trailing whitespace
author
Simon Rozet
<simon@rozet.name>
Sun, 7 Jun 2009 19:16:19 +0000
(21:16 +0200)
committer
Simon Rozet
<simon@rozet.name>
Sun, 7 Jun 2009 19:27:08 +0000
(21:27 +0200)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
24b694a
..
318d694
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-113,7
+113,7
@@
download(WebKitWebView *view, WebKitDownload *o, gpointer d) {
gchar *uri, *filename;
home = g_get_home_dir();
gchar *uri, *filename;
home = g_get_home_dir();
- filename = g_build_filename(home, "Desktop",
+ filename = g_build_filename(home, "Desktop",
webkit_download_get_suggested_filename(o), NULL);
uri = g_strconcat("file://", filename, NULL);
webkit_download_set_destination_uri(o, uri);
webkit_download_get_suggested_filename(o), NULL);
uri = g_strconcat("file://", filename, NULL);
webkit_download_set_destination_uri(o, uri);
@@
-256,7
+256,7
@@
loadfile(const Client *c, const gchar *f) {
g_string_prepend(uri, "file://");
loaduri(c, uri->str);
}
g_string_prepend(uri, "file://");
loaduri(c, uri->str);
}
-
+
}
void
}
void
@@
-364,7
+364,7
@@
processx(GdkXEvent *e, GdkEvent *event, gpointer d) {
if(((XEvent *)e)->type == PropertyNotify) {
ev = &((XEvent *)e)->xproperty;
if(ignore_once == FALSE && ev->atom == urlprop && ev->state == PropertyNewValue) {
if(((XEvent *)e)->type == PropertyNotify) {
ev = &((XEvent *)e)->xproperty;
if(ignore_once == FALSE && ev->atom == urlprop && ev->state == PropertyNewValue) {
- XGetWindowProperty(dpy, ev->window, urlprop, 0L, BUFSIZ, False, XA_STRING,
+ XGetWindowProperty(dpy, ev->window, urlprop, 0L, BUFSIZ, False, XA_STRING,
&adummy, &idummy, &ldummy, &ldummy, &buf);
loaduri(c, (gchar *)buf);
XFree(buf);
&adummy, &idummy, &ldummy, &ldummy, &buf);
loaduri(c, (gchar *)buf);
XFree(buf);