GSList *it = adblock_patterns;
const gchar *uri;
- (void)web_view;
- (void)frame;
- (void)resource;
- (void)response;
- (void)data;
-
uri = webkit_network_request_get_uri(request);
if (show_all_requests)
fprintf(stderr, " -> %s\n", uri);
{
struct Client *c = (struct Client *)data;
- (void)obj;
- (void)data;
-
free(c);
clients--;
{
struct Client *c = (struct Client *)data;
- (void)web_view;
-
gtk_widget_destroy(c->win);
return TRUE;
WebKitWebView *
client_new_request(WebKitWebView *web_view, WebKitWebFrame *frame, gpointer data)
{
- (void)web_view;
- (void)frame;
- (void)data;
-
return client_new(NULL);
}
struct Client *c = (struct Client *)data;
gdouble p;
- (void)obj;
- (void)pspec;
-
p = webkit_web_view_get_progress(WEBKIT_WEB_VIEW(c->web_view));
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(c->progress), p);
}
const gchar *t;
struct Client *c = (struct Client *)data;
- (void)obj;
- (void)pspec;
-
t = webkit_web_view_get_title(WEBKIT_WEB_VIEW(c->web_view));
gtk_window_set_title(GTK_WINDOW(c->win), (t == NULL ? __NAME__ : t));
}
const gchar *t;
struct Client *c = (struct Client *)data;
- (void)obj;
- (void)pspec;
-
t = webkit_web_view_get_uri(WEBKIT_WEB_VIEW(c->web_view));
gtk_entry_set_text(GTK_ENTRY(c->location), (t == NULL ? __NAME__ : t));
}
gboolean ret;
int suffix = 1;
- (void)web_view;
- (void)data;
-
path = g_build_filename(download_dir,
webkit_download_get_suggested_filename(download),
NULL);
WebKitNetworkRequest *request, gchar *mime_type,
WebKitWebPolicyDecision *policy_decision, gpointer data)
{
- (void)frame;
- (void)request;
- (void)data;
-
if (!webkit_web_view_can_show_mime_type(web_view, mime_type))
{
webkit_web_policy_decision_download(policy_decision);
gdouble p;
gchar *t;
- (void)pspec;
-
p = webkit_download_get_progress(download) * 100;
t = g_strdup_printf("%s (%.0f%%)",
webkit_download_get_suggested_filename(download),
{
struct Client *c = (struct Client *)data;
- (void)web_view;
- (void)title;
-
if (!gtk_widget_is_focus(c->location))
{
if (uri == NULL)
gboolean
key_downloadmanager(GtkWidget *widget, GdkEvent *event, gpointer data)
{
- (void)widget;
- (void)data;
-
if (event->type == GDK_KEY_PRESS)
{
if (((GdkEventKey *)event)->state & GDK_MOD1_MASK)
const gchar *t;
gchar *f;
- (void)widget;
-
if (event->type == GDK_KEY_PRESS)
{
if (((GdkEventKey *)event)->state & GDK_MOD1_MASK)
gfloat z;
gboolean b;
- (void)widget;
-
if (event->type == GDK_KEY_PRESS)
{
if (((GdkEventKey *)event)->state & GDK_MOD1_MASK)
{
gchar *uri = NULL;
- (void)condition;
- (void)data;
-
g_io_channel_read_line(channel, &uri, NULL, NULL, NULL);
if (uri)
{