summaryrefslogtreecommitdiff
path: root/src/bookmarks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks.c')
-rw-r--r--src/bookmarks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c
index 5fff9c75..1f887c98 100644
--- a/src/bookmarks.c
+++ b/src/bookmarks.c
@@ -219,7 +219,7 @@ iBool remove_Bookmarks(iBookmarks *d, uint32_t id) {
219 if (bm) { 219 if (bm) {
220 /* If this is a remote source, make sure all the remote bookmarks are 220 /* If this is a remote source, make sure all the remote bookmarks are
221 removed as well. */ 221 removed as well. */
222 if (hasTag_Bookmark(bm, "remotesource")) { 222 if (hasTag_Bookmark(bm, remoteSource_BookmarkTag)) {
223 iForEach(Hash, i, &d->bookmarks) { 223 iForEach(Hash, i, &d->bookmarks) {
224 iBookmark *j = (iBookmark *) i.value; 224 iBookmark *j = (iBookmark *) i.value;
225 if (j->sourceId == id_Bookmark(bm)) { 225 if (j->sourceId == id_Bookmark(bm)) {
@@ -240,7 +240,7 @@ iBool updateBookmarkIcon_Bookmarks(iBookmarks *d, const iString *url, iChar icon
240 const uint32_t id = findUrl_Bookmarks(d, url); 240 const uint32_t id = findUrl_Bookmarks(d, url);
241 if (id) { 241 if (id) {
242 iBookmark *bm = get_Bookmarks(d, id); 242 iBookmark *bm = get_Bookmarks(d, id);
243 if (!hasTag_Bookmark(bm, "remote") && !hasTag_Bookmark(bm, "usericon")) { 243 if (!hasTag_Bookmark(bm, remote_BookmarkTag) && !hasTag_Bookmark(bm, userIcon_BookmarkTag)) {
244 if (icon != bm->icon) { 244 if (icon != bm->icon) {
245 bm->icon = icon; 245 bm->icon = icon;
246 changed = iTrue; 246 changed = iTrue;
@@ -257,7 +257,7 @@ iChar siteIcon_Bookmarks(const iBookmarks *d, const iString *url) {
257 } 257 }
258 static iRegExp *tagPattern_; 258 static iRegExp *tagPattern_;
259 if (!tagPattern_) { 259 if (!tagPattern_) {
260 tagPattern_ = new_RegExp("\\busericon\\b", caseSensitive_RegExpOption); 260 tagPattern_ = new_RegExp("\\b" userIcon_BookmarkTag "\\b", caseSensitive_RegExpOption);
261 } 261 }
262 const iRangecc urlRoot = urlRoot_String(url); 262 const iRangecc urlRoot = urlRoot_String(url);
263 size_t matchingSize = iInvalidSize; /* we'll pick the shortest matching */ 263 size_t matchingSize = iInvalidSize; /* we'll pick the shortest matching */
@@ -412,7 +412,7 @@ const iString *bookmarkListPage_Bookmarks(const iBookmarks *d, enum iBookmarkLis
412 412
413static iBool isRemoteSource_Bookmark_(void *context, const iBookmark *d) { 413static iBool isRemoteSource_Bookmark_(void *context, const iBookmark *d) {
414 iUnused(context); 414 iUnused(context);
415 return hasTag_Bookmark(d, "remotesource"); 415 return hasTag_Bookmark(d, remoteSource_BookmarkTag);
416} 416}
417 417
418void remoteRequestFinished_Bookmarks_(iBookmarks *d, iGmRequest *req) { 418void remoteRequestFinished_Bookmarks_(iBookmarks *d, iGmRequest *req) {
@@ -484,7 +484,7 @@ void fetchRemote_Bookmarks(iBookmarks *d) {
484 size_t numRemoved = 0; 484 size_t numRemoved = 0;
485 iForEach(Hash, i, &d->bookmarks) { 485 iForEach(Hash, i, &d->bookmarks) {
486 iBookmark *bm = (iBookmark *) i.value; 486 iBookmark *bm = (iBookmark *) i.value;
487 if (hasTag_Bookmark(bm, "remote")) { 487 if (hasTag_Bookmark(bm, remote_BookmarkTag)) {
488 remove_HashIterator(&i); 488 remove_HashIterator(&i);
489 delete_Bookmark(bm); 489 delete_Bookmark(bm);
490 numRemoved++; 490 numRemoved++;