diff options
author | portix <none@none> | 2012-12-26 02:20:16 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-26 02:20:16 +0100 |
commit | 2fbdba9c84bdaaeb5640c245d9228df6411c8929 (patch) | |
tree | 0f26a654556d6c1577ba429a5ea8c0b165c3fa52 /src/completion.c | |
parent | 7f198e7deff463210ed44251fc03c449261f2002 (diff) | |
download | dwb-2fbdba9c84bdaaeb5640c245d9228df6411c8929.zip |
New option 'load-on-focus'
Diffstat (limited to 'src/completion.c')
-rw-r--r-- | src/completion.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/completion.c b/src/completion.c index 41159758..7c0f2482 100644 --- a/src/completion.c +++ b/src/completion.c @@ -557,10 +557,18 @@ completion_complete_buffer() format = g_list_length(dwb.state.views) > 10 ? "%02d : %s" : "%d : %s"; for (GList *l = dwb.state.views;l; l=l->next) { - wv = WEBVIEW(l); - title = webkit_web_view_get_title(wv); - uri = webkit_web_view_get_uri(wv); - text = g_strdup_printf(format, i, title != NULL ? title : uri); + if (VIEW(l)->status->deferred) + { + text = g_strdup_printf(format, i, VIEW(l)->status->deferred_uri); + uri = "deferred"; + } + else + { + wv = WEBVIEW(l); + title = webkit_web_view_get_title(wv); + uri = webkit_web_view_get_uri(wv); + text = g_strdup_printf(format, i, title != NULL ? title : uri); + } c = completion_get_completion_item(text, uri, NULL, l); gtk_box_pack_start(GTK_BOX(dwb.gui.compbox), c->event, false, false, 0); |