diff options
author | portix <portix@gmx.net> | 2011-05-22 15:29:00 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-05-22 15:29:00 +0200 |
commit | 140892264b71a14517ac902836fb90768e24cb55 (patch) | |
tree | 2144a5d67f434b9481aab31f5b2dbbf9b9f426e6 /src | |
parent | 7c67691f585d0ece73fcc63c0cf9d468dc46983a (diff) | |
download | dwb-140892264b71a14517ac902836fb90768e24cb55.zip |
Remove unnecessary call to g_thread_init
Diffstat (limited to 'src')
-rw-r--r-- | src/dwb.c | 4 | ||||
-rw-r--r-- | src/view.c | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -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] == '-') { @@ -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); |