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 410223 - right click icon weirdness
right click icon weirdness
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
git master
Other All
: Normal minor
: 2.18.x
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2007-02-21 00:22 UTC by Andreas Nilsson
Modified: 2007-07-24 09:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
menu seen using the tango-icon-theme icon theme (26.64 KB, image/png)
2007-02-21 00:25 UTC, Andreas Nilsson
  Details
attempt to fix this bug (1.76 KB, patch)
2007-07-19 17:56 UTC, Cosimo Cecchi
none Details | Review
modified patch using icon-naming-spec and chpe's directions (2.62 KB, patch)
2007-07-20 13:35 UTC, Cosimo Cecchi
committed Details | Review

Description Andreas Nilsson 2007-02-21 00:22:58 UTC
When currently using the right click menu, some icon weirdness appears.
* Open Link is combined with the file-open icon, even though clicking the option just follows the link.
* There seems to be a distinction between Download link and Save Link As, although  download is actually just file-save (this also causes some weirdness when ).
* The download/save confusion gets even worse when you're using tango-icon-theme, as that uses the harddrive approach for file-save and file-save-as, something we're probably going to use in gnome-icon-theme for 2.20 as well.

I would suggest removing the icons in this menu, as the labels are great by themselves.

Other information:
Comment 1 Andreas Nilsson 2007-02-21 00:25:12 UTC
Created attachment 83006 [details]
menu seen using the tango-icon-theme icon theme
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2007-03-14 05:21:03 UTC
That reminds me that Open Image and Open Link always confuse me :/. Can we change the Open Image icon for something that makes you think of viewing images (like a glass over a photograph?)?
Comment 3 Wouter Bolsterlee (uws) 2007-03-14 08:26:42 UTC
Or just remove the icon. Too many icons is annoying.
Comment 4 Cosimo Cecchi 2007-07-19 17:55:30 UTC
I made a patch where i removed icons for the Download Link, Open Image and Save Image As options; i also substituted GTK_STOCK_OPEN with GNOME_STOCK_MAIL_NEW for the "Send Email" action and GTK_STOCK_OPEN with GTK_STOCK_JUMP_TO for the "Open Link" action.
Comment 5 Cosimo Cecchi 2007-07-19 17:56:30 UTC
Created attachment 91998 [details] [review]
attempt to fix this bug
Comment 6 Christian Persch 2007-07-19 18:40:22 UTC
+	{ "SendEmail", GNOME_STOCK_MAIL_NEW, N_("_Send Email…"),

As far as I know, the gnome stock items are deprecated...

The other changes are fine, thanks for the patch.
Comment 7 Cosimo Cecchi 2007-07-19 18:57:32 UTC
Devhelp says that the deprecated items are GNOME_STOCK_PIXMAP_*, replaced with GNOME_STOCK_*. Maybe someone from gnome-themes could help us here.
Comment 8 Christian Persch 2007-07-19 19:54:22 UTC
I meant deprecated that the gnome-* icons that those #defines expand to are deprecated icon names, afaik. 
Comment 9 Cosimo Cecchi 2007-07-20 10:26:01 UTC
So how could i use e.g. the new mail icon in Epiphany? Do I need to "hack" with gtk_icon_theme_lookup_icon() and similar?
Comment 10 Christian Persch 2007-07-20 12:57:22 UTC
Have you consulted the icon naming spec (http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html ) for a suitable icon name? If there is one, just add it to the others in lib/ephy-stock-icons.[ch] and then you can use it. Otherwise we'd need to copy the one from gnome-icon-theme into epiphany (data/icons/*) and then proceed like above.
Comment 11 Cosimo Cecchi 2007-07-20 13:35:24 UTC
Created attachment 92043 [details] [review]
modified patch using icon-naming-spec and chpe's directions

Thanks Christian, i modified the patch following your directions.
Comment 12 Christian Persch 2007-07-20 19:04:24 UTC
Perfect. Thanks!
Comment 13 Cosimo Cecchi 2007-07-20 23:50:41 UTC
Sorry for the silly question (it's a short time I'm here on bugzilla), but my patch being marked as "accepted-commit_now", does mean that *I* have to commit it in any way (which would be unknown to me) or that you or another dev will commit it later? Thanks!
Comment 14 Christian Persch 2007-07-21 08:19:52 UTC
It means that if you have an svn account, you may commit the patch now; otherwise someone else will commit it for you.
Comment 15 Wouter Bolsterlee (uws) 2007-07-21 13:37:48 UTC
2007-07-21  Wouter Bolsterlee  <wbolster@svn.gnome.org>

    * lib/ephy-stock-icons.c: (ephy_stock_icons_init):
    * lib/ephy-stock-icons.h:
    * src/ephy-window.c:

    Remove some icons from the context menu, and use better
    ones for some menu items. Reported by Andreas Nilsson.
    Patch by Cosimo Cecchi. Fixes bug #410223.
Comment 16 Luca Ferretti 2007-07-24 08:11:58 UTC
Please note that we have yet a STOCK_SEND_MAIL stock icon defined in ephy-stock-icons.h. This stock icon should be currently used in File->Send Link menu item.

I can't see any reason to add another stock icon for send email action (STOCK_NEW_MAIL), but I've no time and resources (until September, at least) to produce a patch, and no permissions to reopen this bug.

Note: STOCK_SEND_MAIL is currently linking to "mail-forward" named icon just because "mail-send" is currently missing in gnome-icon-theme and "mail-message-new" appearance don't suggest you an email related action (it seems to me "new-document" instead).
Comment 17 Cosimo Cecchi 2007-07-24 08:50:45 UTC
Luca, isn't it a bug of gnome-icon-theme not providing the right icons then, rather than a epiphany one?
STOCK_NEW_MAIL is used in a different context than STOCK_SEND_MAIL, because the former appears if i right-click on a "mailto: ..." link when the latter is used to send the link of an arbitrary page in a pre-compiled email, and imho forward is the right action there.
Comment 18 Luca Ferretti 2007-07-24 09:53:07 UTC
(In reply to comment #17)
> Luca, isn't it a bug of gnome-icon-theme not providing the right icons then,
> rather than a epiphany one?

Of course, there was a comment in ephy-stock-icons.h saying that "mail-forward" was just a placeholer, waiting for complete icon set before pick up the proper icon.

> STOCK_NEW_MAIL is used in a different context than STOCK_SEND_MAIL, because the
> former appears if i right-click on a "mailto: ..." link when the latter is used
> to send the link of an arbitrary page in a pre-compiled email, and imho forward
> is the right action there.
> 

Oh, that's right. So use different icons could be the right choise. 

Then, isn't a good idea use better names for stocks? For example STOCK_WRITE_MAILTO and STOCK_SEND_LINK_BY_MAIL (maybe too much descriptive)

Or remove both stock definitons and directly use named icons in code. I.e.

- { "FileSendTo", STOCK_SEND_MAIL, N_("S_end Link by Email…"), NULL,
+ { "FileSendTo", "mail-forward", N_("S_end Link by Email…"), NULL,