After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350853 - Visual indication the current page is bookmark
Visual indication the current page is bookmark
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Bookmarks
git master
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 517060 600444 615088 (view as bug list)
Depends on: 541782
Blocks: 755378
 
 
Reported: 2006-08-11 08:16 UTC by Wouter Bolsterlee (uws)
Modified: 2016-09-28 16:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Mockup (3.61 KB, image/png)
2006-08-15 08:26 UTC, Wouter Bolsterlee (uws)
  Details
Implements a bookmark icon (1.99 KB, patch)
2007-01-01 19:47 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Screenshot of the implemented icon (107.53 KB, image/png)
2007-01-01 19:48 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
Screenshot of new implementation (34.66 KB, image/png)
2007-03-14 19:24 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
Implements the icon without abusing existing functions. (22.27 KB, patch)
2007-03-14 19:27 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Updated patch (16.00 KB, patch)
2007-09-19 03:22 UTC, Diego Escalante Urrelo (not reading bugmail)
needs-work Details | Review
Non working update (16.00 KB, patch)
2007-10-07 12:27 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Non working update, for real (15.49 KB, patch)
2007-10-07 12:29 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Ok, now it works :) (14.34 KB, patch)
2007-10-07 13:02 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Update to trunk (r7659), after EphyTab migration (12.16 KB, patch)
2007-11-11 02:42 UTC, Cyril Brulebois
none Details | Review
[PATCH] Include a bookmark indication in the woohoo bar (4.37 KB, patch)
2009-01-14 01:06 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Wouter Bolsterlee (uws) 2006-08-11 08:16:35 UTC
From a comment in bug #324452

Wouter Bolsterlee (uws):
However, I would really welcome a visual indication that the current page is
one of my bookmarks. What about adding an indicator/icon/color to the location
bar, eg. a bookmark icon at right side of the location bar?

Diego Escalante Urrelo (dieguito):
The icon is a good idea I would like to try doing this, is this still
hack-eable or it has been fixed in 2.15?
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2006-08-15 07:56:27 UTC
How can this be done? 
A background color like secure sites? Maybe an icon?
Comment 2 Wouter Bolsterlee (uws) 2006-08-15 08:21:35 UTC
A libsexy-like icon perhaps?
Comment 3 Wouter Bolsterlee (uws) 2006-08-15 08:26:28 UTC
Created attachment 70921 [details]
Mockup
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2006-08-16 00:36:58 UTC
I need to solve this doubts:

1. Where is the best place to add this (connect to a signal, inside an already existing callback)
2. What's the proper way to know if the url is already bookmarked

About (2):
Wouter pointed me to src/bookmarks/ephy-bookmark-editor.c, there's some calls to ephy_bookmarks_get_similar with a GPtrArray as an argument, but that seems overkill for this case.

Ideas?
Comment 5 Wouter Bolsterlee (uws) 2006-08-16 08:13:58 UTC
Perhaps some new API that does exactly what you want would be nice: ephy_bookmark_bookmark_for_url(...) or something along those lines. CC'ing harves.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2007-01-01 19:47:48 UTC
Created attachment 79147 [details] [review]
Implements a bookmark icon

It's kind of dirty actually, I'm fooling ephy_toolbar_set_security_state... I think that function should be generic instead of security centric.
But nevermind, what do you think.
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2007-01-01 19:48:35 UTC
Created attachment 79148 [details]
Screenshot of the implemented icon

:)
Comment 8 Christian Persch 2007-01-08 21:52:22 UTC
This looks fine in principle.

The patch needs to be done differently though :)
This has nothing to do with the security-state so let's not abuse that interface. You should instead add a set_is_bookmark interface that show/hides the bookmark icon. Also the icon needs to be present _in addition_ to the security icon if it's a secure page. And maybe clicking the icon should open the bmk properties windows for it?
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2007-01-08 22:32:14 UTC
Pure and delicious abuse :). I don't think there should be more than 1 icon, the current patch shows either the security or the bookmark icon, being the latest the lest preferred.

The security thingy needs to be make more general.
Comment 10 Diego Escalante Urrelo (not reading bugmail) 2007-03-09 18:39:17 UTC
Christian, is there a reason why a new interface is better than making the current one more general?.
Comment 11 Diego Escalante Urrelo (not reading bugmail) 2007-03-14 19:24:49 UTC
Created attachment 84596 [details]
Screenshot of new implementation

See next attachment for patch.
Comment 12 Diego Escalante Urrelo (not reading bugmail) 2007-03-14 19:27:00 UTC
Created attachment 84597 [details] [review]
Implements the icon without abusing existing functions.

Ok. This patch should be fine, I made a whole new set of functions for this (well I copy-pasted).
There are some rough edges like the name of some variables and functions, I'm listening to critics.

:)
Comment 13 Diego Escalante Urrelo (not reading bugmail) 2007-05-31 00:40:44 UTC
So any decision about this?
Xan suggested time ago that we are looking a problem for a solution.

In my opinion, this doesn't produce clutter and is a nice detail. What do you think epiphaniers?
Comment 14 Jean-François Fortin Tam 2007-05-31 00:45:12 UTC
does this show the icon in the dropdown too, or only in the location bar? 'cause I'd think having this icon besides each bookmark in the dropdown would be very good for consistency *and* for quickly spotting bookmarks
Comment 15 Cosimo Cecchi 2007-07-27 12:30:24 UTC
Diego, i think that this is a very nice detail that i have not seen in other browsers, and is quite useful too! I'd like to see this in Epiphany.
Comment 16 Diego Escalante Urrelo (not reading bugmail) 2007-09-19 03:22:34 UTC
Created attachment 95831 [details] [review]
Updated patch
Comment 17 Christian Persch 2007-10-07 11:00:05 UTC
ephy_toolbar_set_is_bookmark only ever uses EPHY_STOCK_BOOKMARK as stock-id; so you can remove the book-stock-id property.

+++ src/ephy-statusbar.h	(working copy)
These changes look unrelated to this bug ?

+g_param_spec_string  ("book-tooltip",
"bookmark-tooltip" ?

+	g_print("sync show_book: %d;\n", priv->show_book);
Remove this.

+	gboolean show_lock = FALSE;
+	show_lock = (gboolean) g_object_get_data (G_OBJECT (priv->actions[LOCATION_ACTION]),
+					"show-lock");
[...]
+	gboolean show_book = FALSE;
+	show_book = (gboolean) g_object_get_data (G_OBJECT (priv->actions[LOCATION_ACTION]),
+					"show-book");

Totally bogus :)
I guess you meant to write
g_object_get (action, "show-X", &show_X, NULL);
?

+	g_print ("%s; lock_is_visible?: %d; is_bookmark: %d\n", location, lock_is_visible, is_bookmark);
Remove.

+		g_signal_connect_object (embed, "ge-location",
+					 G_CALLBACK (sync_tab_is_bookmark),
+					 window, 0);

Use the notify::address handler for this. (Also the ge-location signal is going to be removed anyway.)

-	g_signal_connect_swapped (priv->statusbar, "lock-clicked",
-				  G_CALLBACK (gtk_action_activate), action);
Doesn't belong into this bug, does it?

 }
+//bookmarks
+void

No C++ comments in C files. Add an empty line.

+	g_print("show_book: %d;\n", show_book);
Remove.



Comment 18 Diego Escalante Urrelo (not reading bugmail) 2007-10-07 12:27:56 UTC
Created attachment 96816 [details] [review]
Non working update

I can't get this to work on trunk, no idea why... not even the signals seem to be called, maybe I'm doing an obvious mistake... I'm a bit sleepy :)
Comment 19 Diego Escalante Urrelo (not reading bugmail) 2007-10-07 12:29:11 UTC
Created attachment 96817 [details] [review]
Non working update, for real

Damn, wrong patch.
Comment 20 Diego Escalante Urrelo (not reading bugmail) 2007-10-07 12:39:11 UTC
I can't get the signal to call sync_tab_is_bookmark, no idea why. I would blame myself.
g_object_notify's doesn't seem to ever be emitted. Which is very weird. Check my g_debugs.
Comment 21 Diego Escalante Urrelo (not reading bugmail) 2007-10-07 13:02:38 UTC
Created attachment 96818 [details] [review]
Ok, now it works :)

It was a silly mistake, but besides that seems like enabling debug at build time and later using g_debug doesn't work well :/. Or maybe just a mistake by me?
Comment 22 Cyril Brulebois 2007-11-11 02:42:46 UTC
Created attachment 98900 [details] [review]
Update to trunk (r7659), after EphyTab migration

Update to trunk. There are some bugs: when changing tabs betweeen bookmarked and new pages, the icon disappears or stays there, even when that's not appropriate.
Comment 23 Christian Persch 2007-12-24 13:52:28 UTC
Marking needs-work based on comment 22.
Comment 24 Diego Escalante Urrelo (not reading bugmail) 2007-12-26 02:48:05 UTC
Marking my old patch obsolete.
Comment 25 Reinout van Schouwen 2008-02-18 22:31:13 UTC
*** Bug 517060 has been marked as a duplicate of this bug. ***
Comment 26 Diego Escalante Urrelo (not reading bugmail) 2008-02-19 07:05:10 UTC
Maybe we can consider the use firefox gave to the star in the location bar... give some similar use to this icon. I thought it was a good idea when I tried ff3.
Comment 27 Reinout van Schouwen 2008-02-19 09:18:40 UTC
I don't see why we should deviate from the stock bookmark icon!
Comment 28 Tomasz Sterna 2008-02-24 20:49:48 UTC
Firefox 3 shows silhouette when current site is not bookmarked yet. Clicking it bookmarks the site (without any questions asked).

Without this functionality it's just cute eye candy. I would need to keep the bookmark button on the toolbar anyway. :-/
Comment 29 Reinout van Schouwen 2008-07-10 11:08:42 UTC
Diego, ping?
Comment 30 Diego Escalante Urrelo (not reading bugmail) 2009-01-14 01:06:17 UTC
Ok I implemented this with woohoo bar, attaching the patch that goes on top of it and marking this bug as a dependant of the other.

See bug #541782.
Comment 31 Diego Escalante Urrelo (not reading bugmail) 2009-01-14 01:06:42 UTC
Created attachment 126397 [details] [review]
[PATCH] Include a bookmark indication in the woohoo bar

 lib/widgets/ephy-location-entry.c |   42 ++++++++++++++++++++++++++++++++++++-
 src/ephy-completion-model.c       |   17 +++++---------
 src/ephy-location-action.c        |    2 -
 3 files changed, 47 insertions(+), 14 deletions(-)
Comment 32 Diego Escalante Urrelo (not reading bugmail) 2009-01-19 23:20:33 UTC
The completion popup thing is done in trunk and 2.26. Now, do we want an icon in the entry itself?

If so I think we could show it when there was no lock icon to be shown, hence the priority would be:

- lock icon
- fav icon
- nothing

Sounds good?
Comment 33 Wouter Bolsterlee (uws) 2009-01-20 08:18:58 UTC
Wouldn't that be a bit strange? Bookmarked SSL sites won't get an icon in that case...
Comment 34 Tomasz Sterna 2009-01-20 08:54:07 UTC
Why do not show more than one icon?
Comment 35 Reinout van Schouwen 2009-01-20 09:15:40 UTC
(In reply to comment #32)
> The completion popup thing is done in trunk and 2.26. Now, do we want an icon
> in the entry itself?
> 
> If so I think we could show it when there was no lock icon to be shown, hence
> the priority would be:
> 
> - lock icon
> - fav icon
> - nothing
> 
> Sounds good?

What about the page icon? Or are you just talking about the right hand side of the address entry?

_If_ we could show >1 icon, we need to be careful to keep at least the most-used one (probably bookmark indication) in the same spot at all times.


Comment 36 Diego Escalante Urrelo (not reading bugmail) 2009-01-20 11:50:24 UTC
If we want more than 1 icon, we have to ask GTK+ to add that to the new GtkEntry *now* before they freeze the code. Right now you can only put 1 icon to each side.
Comment 37 John Stowers 2009-01-20 13:28:25 UTC
This epiphany user votes for more than one icon - bookmark on one side, and rss icon on the other (if rss auto discovery is present)
Comment 38 Mike Stoddart 2009-11-02 15:57:03 UTC
*** Bug 600444 has been marked as a duplicate of this bug. ***
Comment 39 Reinout van Schouwen 2009-11-02 16:00:26 UTC
@Diego, what's the status on this?
Comment 40 Reinout van Schouwen 2010-04-07 21:02:23 UTC
*** Bug 615088 has been marked as a duplicate of this bug. ***
Comment 41 Michael Catanzaro 2016-09-28 16:32:56 UTC
Now got a yellow star!