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 332584 - Inconsistency in displayed tag icons
Inconsistency in displayed tag icons
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Browsing
CVS
Other All
: Normal minor
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 340886 341839 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-25 23:46 UTC by Thomas PARIS
Modified: 2006-10-29 23:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed trivial (albeit non-elegant) fix (568 bytes, patch)
2006-02-25 23:47 UTC, Thomas PARIS
none Details | Review
Alternate patch (safer?) (805 bytes, patch)
2006-04-06 22:46 UTC, Jean-Christophe Dubacq
none Details | Review
new version (1.50 KB, patch)
2006-10-02 18:45 UTC, Stephane Delcroix
none Details | Review

Description Thomas PARIS 2006-02-25 23:46:08 UTC
Please describe the problem:
If a tag has a parent tag, then the parent tag is displayed in browsing mode
whereas the child tag is displayed in edit mode. It should probably be the child
tag in both cases.

This bug was originally reported in Debian's BTS, at http://bugs.debian.org/347470

I had a quick look at fixing this bug in the way suggested by the OP, but it
seems to me the change is non-trivial as TagView was intended to be used in a
GTK box while IconView was made to work with absolute positionning. But it's the
first time I get to play with C# and I have close to no experience with GUI code
so don't take my word for it.

Steps to reproduce:
1. Define a tag as a child of another one
2. Assign that tag to a picture in the library
3. Go from Browse mode to Edit mode


Actual results:
The assigned tag is displayed using the icon of its parent tag in the Browse
view but with its own icon in the Edit view.

Expected results:
I expect the same icon to be used in both cases, presumably the child's.

Does this happen every time?
Yes

Other information:
Comment 1 Thomas PARIS 2006-02-25 23:47:41 UTC
Created attachment 60135 [details] [review]
proposed trivial (albeit non-elegant) fix
Comment 2 Larry Ewing 2006-02-26 04:31:27 UTC
this was actually done intentionally as the tag displayed in the icon view was initialy going to just be the toplevel group.  I don't think this is really working out well but I want to give it a little thought before changing.
Comment 3 srn 2006-02-27 06:26:34 UTC
I find the top-level group idea to be a bad one - I already know, for example, that all photos were taken in some location (I have very few photos taken in a void :) ); what I really want to know is _which_ location they were taken in.
Comment 4 Thomas PARIS 2006-02-27 16:51:09 UTC
(In reply to comment #3)
> I find the top-level group idea to be a bad one - I already know, for example,
> that all photos were taken in some location (I have very few photos taken in a
> void :) ); what I really want to know is _which_ location they were taken in.

To me it sounds like your argument is more against the "Places" tag than against the mere existence of a top-level tag. In any case, I can see the use for the "Places" tag, at least in my own photography (namely to identify photographs mainly about a place as opposed to, say, portraits or abstract works). Or is it just the example you have given that is fooling my judgement?

Still, I would argue that consistency is important here (everywhere, really) and that the same tag should be displayed in all views. Especially considering I cannot imagine a use case where the current behaviour would be desirable.

Larry, am I missing something?
Comment 5 srn 2006-02-27 20:03:05 UTC
I think of the Places tag as a way of organising my categories, rather than as a tag I'd ever apply directly to a photo. Similarly I have a People tag, under which are about 50 people, and a Events tag with weddings and parties and things under it.

Generally, I can tell from the thumbnail if the photo has people in it, or if it is a landscape, for example - so why bother having a little icon on the photo that gives me no more information than what I can trivially tell already?

Or am I missing something too? :)
Comment 6 Thomas PARIS 2006-03-01 17:40:53 UTC
I was thinking of tags mainly as a way to easily filter, not as a way to quickly tell the subject of a particular picture.

Which is still not relevant in discussing which icon should be used ;)
Comment 7 Jean-Christophe Dubacq 2006-04-06 22:27:59 UTC
Other possibility to solve this issue: give priority to t.icon instead of t.category.icon, but ensure there is still something done if t.icon is null. A bit more elegant, but not by much.
Comment 8 Jean-Christophe Dubacq 2006-04-06 22:46:23 UTC
Created attachment 62884 [details] [review]
Alternate patch (safer?)
Comment 9 Gabriel Burt 2006-05-08 03:07:21 UTC
*** Bug 340886 has been marked as a duplicate of this bug. ***
Comment 10 Bengt Thuree 2006-05-16 09:08:37 UTC
*** Bug 341839 has been marked as a duplicate of this bug. ***
Comment 11 Stephane Delcroix 2006-07-03 12:50:54 UTC
(In reply to comment #7)
> give priority to t.icon instead of
> t.category.icon, but ensure there is still something done if t.icon is null.

I'm in favour of that...
Comment 12 Stephane Delcroix 2006-10-02 18:45:57 UTC
Created attachment 73880 [details] [review]
new version

there's a bug in the 'safer' version...

while (category != null && icon == null) {
     icon = category.Icon;
     category = t.Category; ///Ooops, endless loop if t.Category.Icon = null
}
Comment 13 Gabriel Burt 2006-10-29 23:22:41 UTC
Fixed in CVS, thanks guys.