summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-05-22 15:29:00 +0200
committerportix <portix@gmx.net>2011-05-22 15:29:00 +0200
commit140892264b71a14517ac902836fb90768e24cb55 (patch)
tree2144a5d67f434b9481aab31f5b2dbbf9b9f426e6 /src
parent7c67691f585d0ece73fcc63c0cf9d468dc46983a (diff)
downloaddwb-140892264b71a14517ac902836fb90768e24cb55.zip
Remove unnecessary call to g_thread_init
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c4
-rw-r--r--src/view.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 54d10a38..b3e7ec88 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -1138,6 +1138,7 @@ dwb_clean_load_end(GList *gl) {
}/*}}}*/
/* dwb_navigation_from_webkit_history_item(WebKitWebHistoryItem *) return: (alloc) Navigation* {{{*/
+/* TODO sqlite */
Navigation *
dwb_navigation_from_webkit_history_item(WebKitWebHistoryItem *item) {
Navigation *n = NULL;
@@ -1786,6 +1787,7 @@ dwb_load_uri(GList *gl, Arg *arg) {
g_slist_free(content);
fullpath = g_str_has_prefix(arg->p, "file://") ? g_strdup(arg->p) : g_strdup_printf("file:///%s", path);
/* add a history item */
+ /* TODO sqlite */
if (arg->b) {
WebKitWebBackForwardList *bf_list = webkit_web_view_get_back_forward_list(web);
WebKitWebHistoryItem *item = webkit_web_history_item_new_with_data(fullpath, fullpath);
@@ -2229,6 +2231,7 @@ dwb_clean_up() {
g_hash_table_remove_all(dwb.settings);
dwb_free_list(dwb.fc.bookmarks, (void_func)dwb_navigation_free);
+ /* TODO sqlite */
dwb_free_list(dwb.fc.history, (void_func)dwb_navigation_free);
dwb_free_list(dwb.fc.searchengines, (void_func)dwb_navigation_free);
dwb_free_list(dwb.fc.se_completion, (void_func)dwb_navigation_free);
@@ -2989,7 +2992,6 @@ int main(int argc, char *argv[]) {
gtk_init(&argc, &argv);
- g_thread_init(NULL);
if (argc > 1) {
for (int i=1; i<argc; i++) {
if (argv[i][0] == '-') {
diff --git a/src/view.c b/src/view.c
index f5725b1b..caa018c6 100644
--- a/src/view.c
+++ b/src/view.c
@@ -395,6 +395,7 @@ dwb_web_view_load_status_cb(WebKitWebView *web, GParamSpec *pspec, GList *gl) {
case WEBKIT_LOAD_FINISHED:
dwb_update_status(gl);
dwb_execute_script(web, "DwbHintObj.createStyleSheet()", false);
+ /* TODO sqlite */
if (dwb_prepend_navigation(gl, &dwb.fc.history) && !dwb.misc.private_browsing)
dwb_util_file_add_navigation(dwb.files.history, dwb.fc.history->data, false, dwb.misc.history_length);
dwb_clean_load_end(gl);