changeset: 28:855df3bd9d1b
tag: tip
user: Enno Boland (Gottox) <gottox_AT_s01.de>
date: Mon Jun 08 13:29:39 2009 +0200
files: surf.c
description:
renamed download handlers.
diff -r e2abda354e0e -r 855df3bd9d1b surf.c
--- a/surf.c Mon Jun 08 10:47:56 2009 +0100
+++ b/surf.c Mon Jun 08 13:29:39 2009 +0200
@@ -40,8 +40,8 @@
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
-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 @@
}
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 @@
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 @@
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();
Received on Mon Jun 08 2009 - 11:29:31 UTC
This archive was generated by hypermail 2.2.0 : Mon Jun 08 2009 - 11:36:04 UTC