static GHashTable* navigationwhitelist = NULL;
static GString* blockcss = NULL;
-static gboolean
+static void
adblock_parse_file (gchar* path);
static gboolean
continue;
}
- if (!adblock_parse_file (path)
- || !adblock_file_is_up_to_date (path))
+ if (!adblock_file_is_up_to_date (path))
{
WebKitNetworkRequest* request;
WebKitDownload* download;
G_CALLBACK (adblock_download_notify_status_cb), extension);
webkit_download_start (download);
}
+ else
+ adblock_parse_file (path);
g_free (path);
i++;
}
return FALSE;
}
-static gboolean
+static void
adblock_parse_file (gchar* path)
{
FILE* file;
while (fgets (line, 2000, file))
adblock_parse_line (line);
fclose (file);
- return TRUE;
}
- return FALSE;
}
static void