summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
authorportix <none@none>2012-10-26 21:43:31 +0200
committerportix <none@none>2012-10-26 21:43:31 +0200
commit636103f4496a8005ebaaf3aa10eb3ef95be8e2b6 (patch)
tree928714c6b7fad2daadbf3bfa25b8915d5a224009 /src/dwb.c
parent78f702905ada582dbca9ec6fd7d0a7c7345fddf0 (diff)
downloaddwb-636103f4496a8005ebaaf3aa10eb3ef95be8e2b6.zip
Indicator for quick/bookmarks
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 704cd1d8..2eb3e735 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -660,6 +660,19 @@ dwb_update_status_text(GList *gl, GtkAdjustment *a) {
g_string_append_c(string, 'u');
g_string_append(string, "</span>]");
}
+ if (webkit_web_view_get_load_status(WEBVIEW(gl)) == WEBKIT_LOAD_FINISHED) {
+ const char *uri = webkit_web_view_get_uri(WEBVIEW(gl));
+ gboolean has_quickmark = g_list_find_custom(dwb.fc.quickmarks, uri, (GCompareFunc)util_quickmark_compare_uri) != NULL;
+ gboolean has_bookmark = g_list_find_custom(dwb.fc.bookmarks, uri, (GCompareFunc)util_navigation_compare_uri) != NULL;
+ if (has_quickmark || has_bookmark) {
+ g_string_append_c(string, '[');
+ if (has_quickmark)
+ g_string_append_c(string, 'Q');
+ if (has_bookmark)
+ g_string_append_c(string, 'B');
+ g_string_append_c(string, ']');
+ }
+ }
if (v->status->progress != 0) {
wchar_t *bar_blocks = PROGRESS_DEFAULT;
wchar_t buffer[PBAR_LENGTH + 1] = { 0 };