summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorEnno Boland (Gottox) <gottox@s01.de>2009-06-08 13:29:39 +0200
committerEnno Boland (Gottox) <gottox@s01.de>2009-06-08 13:29:39 +0200
commita4ca2f7aaddbfe9e03b727156df90fbe3dae0d76 (patch)
treec640dea1a9d05f3f209dae81f58fb87e9ad9aec4 /surf.c
parentb6e181e82acc2f20085410f720b8ceeed8a8cbe3 (diff)
downloadsurf-a4ca2f7aaddbfe9e03b727156df90fbe3dae0d76.tar.gz
surf-a4ca2f7aaddbfe9e03b727156df90fbe3dae0d76.tar.bz2
surf-a4ca2f7aaddbfe9e03b727156df90fbe3dae0d76.zip
renamed download handlers.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/surf.c b/surf.c
index 3d6979a..534bc87 100644
--- a/surf.c
+++ b/surf.c
@@ -40,8 +40,8 @@ static void cleanup(void);
static void destroyclient(Client *c);
static void destroywin(GtkWidget* w, gpointer d);
static void die(char *str);
-static void downloadcb(WebKitDownload *o, GParamSpec *pspec, gpointer d);
-static gboolean download(WebKitWebView *view, WebKitDownload *o, gpointer d);
+static void download(WebKitDownload *o, GParamSpec *pspec, gpointer d);
+static gboolean initdownload(WebKitWebView *view, WebKitDownload *o, gpointer d);
static gchar *geturi(Client *c);
static void hidesearch(Client *c);
static void hideurl(Client *c);
@@ -101,7 +101,7 @@ void die(char *str) {
}
void
-downloadcb(WebKitDownload *o, GParamSpec *pspec, gpointer d) {
+download(WebKitDownload *o, GParamSpec *pspec, gpointer d) {
Client *c = (Client *) d;
GSList *i;
WebKitDownload *dl;
@@ -129,7 +129,7 @@ downloadcb(WebKitDownload *o, GParamSpec *pspec, gpointer d) {
}
gboolean
-download(WebKitWebView *view, WebKitDownload *o, gpointer d) {
+initdownload(WebKitWebView *view, WebKitDownload *o, gpointer d) {
/* TODO */
Client *c = (Client *) d;
const gchar *home;
@@ -144,8 +144,8 @@ download(WebKitWebView *view, WebKitDownload *o, gpointer d) {
g_free(uri);
downloads = g_slist_append(downloads, o);
gtk_widget_show(c->pbar);
- g_signal_connect(o, "notify::progress", G_CALLBACK(downloadcb), d);
- g_signal_connect(o, "notify::status", G_CALLBACK(downloadcb), d);
+ g_signal_connect(o, "notify::progress", G_CALLBACK(download), d);
+ g_signal_connect(o, "notify::status", G_CALLBACK(download), d);
webkit_download_start(o);
return TRUE;
}
@@ -329,7 +329,7 @@ newclient(void) {
g_signal_connect(G_OBJECT(c->view), "load-committed", G_CALLBACK(loadcommit), c);
g_signal_connect(G_OBJECT(c->view), "hovering-over-link", G_CALLBACK(linkhover), c);
g_signal_connect(G_OBJECT(c->view), "create-web-view", G_CALLBACK(newwindow), c);
- g_signal_connect(G_OBJECT(c->view), "download-requested", G_CALLBACK(download), c);
+ g_signal_connect(G_OBJECT(c->view), "download-requested", G_CALLBACK(initdownload), c);
/* urlbar */
c->urlbar = gtk_entry_new();