Firefox needs to use "gtk_image_menu_item_set_always_show_image" for essential icons.

Bug #408361 reported by Vish
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Ubuntu)
Fix Released
Low
Unassigned
Nominated for Karmic by Vish
firefox-3.5 (Ubuntu)
Fix Released
Low
Unassigned
Nominated for Karmic by Vish

Bug Description

Icons are not displayed by default in either context menus, dialogue buttons or firefox bookmarks menu

Upstream is setting these two options to false by default.
http://bugzilla.gnome.org/show_bug.cgi?id=557469
http://bugzilla.gnome.org/show_bug.cgi?id=583352

To ensure that *essential* icons are displayed, relevant applications must be patched.

Design Suggestion:
Meanwhile, now that we have flicked the switch and set icons to be off by default, we need to fix relevant applications to match. You can help! Whenever you see a program that has menu items for objects where those menu items now don't include icons, report a bug on the program that it should use always-show-icons for those particular items. And conversely, whenever you see a program with icons on menu items for things that aren't objects, report a bug that the icons should be removed.

Examples of menu items that count as objects, and should therefore have icons: applications, documents (including any recent documents in a "File" menu), disks, partitions, folders, bookmarks, history items, IM accounts, IM statuses, user accounts.

Examples of menu items that don't count as objects, and should therefore *not* have icons: openable windows (e.g. "Edit" > "Preferences" or "Go" > "Edit Bookmarks"), toolbars (e.g. "View" > "Toolbars" > anything), actions (e.g. "Go" > "Back").

Unlike menus in Windows, whether a menu item has an equivalent toolbar button is irrelevant to whether the menu item should have an icon.
----------------

Please use this bug report only for Firefox, and report missing menu icons in other applications as separate bugs. Otherwise anyone who fixes the bug in one package will be punished by being spammed about changes in packages they have no interest in. Use a common tag ("menu-icons") for bug reports on this issue.

For further details on the related discussions and design suggestions see Bug #407621

Tags: menu-icons
Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

So what's the problem? You're saying that bookmark menu items should always have an icon?

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

And if that's the case, should folders/smart folders that are submenus also show icons?

This really seems like an odd inconsistency from the GNOME folks, almost like a begrudging admission that icons do actually work ;-)

Revision history for this message
In , Michael-monreal+moz (michael-monreal+moz) wrote :

Well, not talking about my own preferences or feelings regarding this change here... :)

But the GNOME HIG explictly mentions¹ this case: "Show icons for bookmark entries on the Bookmarks menu that indicate the type of the bookmark, even if the user has globally turned off icons for other menu items on the desktop."

As I read this, smart bookmarks should indicate that they are smart bookmarks. I don't think "smart" folders are covered by this.

[1] http://www.gnome.org/~calum/hig-devel/menus-standard.html#menu-standard-bookmarks

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

Created attachment 388841
Patch

This has buckley's chance of making 3.5 (though you can try and request it, I guess), and if the schedule plans did change as proposed in the last meeting, then we only have 1 week for it to be certain of making 3.6.

Revision history for this message
In , Dao (dao) wrote :

Comment on attachment 388841
Patch

Can you put this in browser/base/content/browser.css with %ifdef MOZ_WIDGET_GTK2? That would be consistent with xul.css.

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

Created attachment 388881
Patch

Sure.

Revision history for this message
In , Michael-monreal+moz (michael-monreal+moz) wrote :

(In reply to comment #4)
> This has buckley's chance of making 3.5 (though you can try and request it, I
> guess), and if the schedule plans did change as proposed in the last meeting,
> then we only have 1 week for it to be certain of making 3.6.

When is 3.6 due out then? GNOME 2.28 is set for a Sep 23 release and Ubuntu will have a release shortly after that.

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

Assuming they are planning to quickly stabilize 1.9.2 in order to ship Fennec 1.0 on it (it's not 100% confirmed), the plan is to ship 3.6 "this fall" according to recent meeting notes.

Revision history for this message
In , Michael-monreal+moz (michael-monreal+moz) wrote :

Ok... "this fall" sounds like Fedora 12 would ship it (or some RC, as they did with 3.5) but Ubuntu will probably not. Probably worth asking distributions to ship the patch with 3.5 (if they ship GNOME 2.28).

Revision history for this message
In , Dao (dao) wrote :
Revision history for this message
In , Beltzner (beltzner) wrote :

Comment on attachment 388881
Patch

a1912=beltzner

Revision history for this message
In , Dao (dao) wrote :
Revision history for this message
In , Ashughes (ashughes) wrote :

Is there a way QA can verify this on Firefox 3.5.2 without GNOME 2.28? Do we have to wait until Ubuntu/Fedora become updated?

Revision history for this message
In , Michael-monreal+moz (michael-monreal+moz) wrote :

Sure, set /desktop/gnome/interface/menus_have_icon to false in gconf or untick the checkbox in Preferences->Appearance->Interface

Revision history for this message
In , Ashughes (ashughes) wrote :

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

Our menus look the same whether OS Preferences->Appearance->Interface->"Show icons in menus" is enabled or disabled.

Is this expected behaviour?

Revision history for this message
In , Michael-monreal+moz (michael-monreal+moz) wrote :

Surely not... I think it works for me, though. Using Fx 3.5.1 and the code from the patch in userChrome.css... have you tested if menu icons disappear from other GTK apps?

Revision history for this message
In , Ashughes (ashughes) wrote :

I can see the icons disappear from other menus (Applications, Places, System). In Firefox 3.5.2 they look the same (no matter the pref setting).

Revision history for this message
In , Dao (dao) wrote :

You probably need to restart Firefox (which is suboptimal and might be a bug on its own).

Revision history for this message
In , Ashughes (ashughes) wrote :

Created attachment 391988
Screenshot

Here is a screenshot of what I am seeing. Notice the icon for Organize Bookmarks is removed when the pref is disabled. All other icons that were there before are present. Is this expected?

Revision history for this message
In , Dao (dao) wrote :

Yes.

Revision history for this message
In , Ashughes (ashughes) wrote :

Excellent. Based on that, verified1.9.1.

Revision history for this message
Vish (vish) wrote : Applications need to use "gtk_image_menu_item_set_always_show_image" for essential icons.

Icons are not displayed be default in either context menus, dialogue buttons or firefox bookmarks menu

Upstream is setting these two options to false by default.
http://bugzilla.gnome.org/show_bug.cgi?id=557469
http://bugzilla.gnome.org/show_bug.cgi?id=583352

To ensure that *essential* icons are displayed, relevant applications are to be patched.

Design Suggestion:
Meanwhile, now that we have flicked the switch and set icons to be off by default, we need to fix relevant applications to match. You can help! Whenever you see a program that has menu items for objects where those menu items now don't include icons, report a bug on the program that it should use always-show-icons for those particular items. And conversely, whenever you see a program with icons on menu items for things that aren't objects, report a bug that the icons should be removed.

Examples of menu items that count as objects, and should therefore have icons: applications, documents (including any recent documents in a "File" menu), disks, partitions, folders, bookmarks, history items, IM accounts, IM statuses, user accounts.

Examples of menu items that don't count as objects, and should therefore *not* have icons: openable windows (e.g. "Edit" > "Preferences" or "Go" > "Edit Bookmarks"), toolbars (e.g. "View" > "Toolbars" > anything), actions (e.g. "Go" > "Back").

Unlike menus in Windows, whether a menu item has an equivalent toolbar button is irrelevant to whether the menu item should have an icon.
----------------

Kindly identify the applications that need icons and report it here, add them by using "Also affects project".

Vish (vish)
description: updated
affects: ubuntu → nautilus (Ubuntu)
Vish (vish)
description: updated
Changed in firefox:
status: Unknown → Fix Released
Revision history for this message
Andreas Nilsson (andreasn) wrote :

Totem:
The recently opened documents under Movie

Tomboy:
The notes that comes up when pressing the capplet. (not Create Note, Notebooks, Search All Notes)

gedit:
The recently opened documents under File

GIMP:
The files under File > Open Recent

Abiword:
The recently opened documents under File
The files under Documents

Gwibber:
the active accounts under the "Accounts", perhaps those under Create as well?

Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote :

See http://bugzilla.gnome.org/show_bug.cgi?id=546916 or https://bugs.launchpad.net/hundredpapercuts/+bug/387796 for a patch to show applications icons in the open with list in nautilus

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Please use this bug report only for Firefox, and report missing menu icons in other applications as separate bugs. Otherwise anyone who fixes the bug in one package will be punished by being spammed about changes in packages they have no interest in. Perhaps you could use a common tag ("menu-icons"?) for bug reports on this issue.

Vish (vish)
tags: added: menu-icons
description: updated
Changed in nautilus (Ubuntu):
status: New → Invalid
Revision history for this message
Vish (vish) wrote :
description: updated
summary: - Applications need to use "gtk_image_menu_item_set_always_show_image" for
+ Firefox needs to use "gtk_image_menu_item_set_always_show_image" for
essential icons.
Vish (vish)
description: updated
Revision history for this message
In , Andreas Nilsson (andreasn) wrote :

Created attachment 392287
quicksearch and tab dropdown

Seems this also affects the favicons for the quick search box dropdown and tabs dropdown (that both should have icons according to the new guidelines). Should that be filed as a separate bug?

Revision history for this message
In , Dao (dao) wrote :

(In reply to comment #22)
> Should that be filed as a separate bug?

Yes.

Revision history for this message
Micah Gersten (micahg) wrote :

This is fixed in Firefox 3.5.2 which will be released to Ubuntu in the next few days.

Changed in firefox-3.5 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
In , Andreas Nilsson (andreasn) wrote :

Created an attachment (id=392453)
screenshot

Related to bug 504275, GNOME recently set menus_have_icons to false by default. [1] What this means is that menus will no longer show icons.
However, bookmarks (and favicons) are exceptions that should use icons according to the guidelines [2] and those can be set to "always-show-icons" property (GtkImageMenuItem).

This also affects the tab dropdown, but I'll file another bug about that.

1. http://bugzilla.gnome.org/show_bug.cgi?id=557469
2. http://bugzilla.gnome.org/show_bug.cgi?id=588668

Revision history for this message
In , Andreas Nilsson (andreasn) wrote :

Filed those as Bug 508221 and Bug 508223

Revision history for this message
Micah Gersten (micahg) wrote :

This was released in Karmic -- Firefox 3.5.2

Changed in firefox-3.5 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , Martin McNickle (mmcnicklebugs) wrote :

Created an attachment (id=397040)
patch

Adds the search icons again.

Revision history for this message
In , Martin McNickle (mmcnicklebugs) wrote :

Created an attachment (id=397085)
combined rules

Revision history for this message
Daniel Ribeiro (danielrmt) wrote :

Using Firefox 3.5.2 in karmic. It displays correctly bookmarks and history icons, but I still think the search engines menu (see attachment) should display the icons.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Daniel, yes, that would be appropriate. You could report a bug in bugzilla.mozilla.org that the search engines menu should always have icons, because -- like bookmarks and history items -- the search engines are objects that can be added to or removed from the menu.

Revision history for this message
Daniel Ribeiro (danielrmt) wrote :
Revision history for this message
In , Hskupin (hskupin) wrote :

Martin, you should ask a specific person for review. Dao could be the right one.

Revision history for this message
In , Dao (dao) wrote :

I think this belongs in searchbarBindings.css, since the menuitems are anonymous...

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

I don't really have a strong opinion. Assuming it works, that patch seems fine to me.

Revision history for this message
In , Dao (dao) wrote :
Revision history for this message
In , Hskupin (hskupin) wrote :

Verified fixed with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091009 Minefield/3.7a1pre ID:20091009030724

Revision history for this message
In , Hskupin (hskupin) wrote :

*** Bug 525714 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Hskupin (hskupin) wrote :

It will probably not block, but bringing attention to drivers so we could get at least an approval for 1.9.2.

Revision history for this message
In , Beltzner (beltzner) wrote :

Henrik; the better way to bring it to drivers' attention is to email me a list of bugs that you think are safe for approval, along with quick rationale.

Revision history for this message
In , Dao (dao) wrote :
Revision history for this message
In , Hskupin (hskupin) wrote :

Verified fixed on 1.9.2 with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2b3pre) Gecko/20091111 Namoroka/3.6b3pre ID:20091111033750

Revision history for this message
In , Hskupin (hskupin) wrote :

*** Bug 531370 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Hskupin (hskupin) wrote :

*** Bug 534230 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Hskupin (hskupin) wrote :

We see a couple of complains from users who run Firefox 3.5.x on a current Ubuntu release where those icons are not displayed. Can we get this fix into 1.9.1 to show all of the search engine icons again?

Revision history for this message
In , Mozilla-bugs-micahscomputing (mozilla-bugs-micahscomputing) wrote :

(From update of attachment 397085)
Requesting landing on 1.9.1 branch

Revision history for this message
In , Samuel Sidler (samuel-sidler) wrote :

(From update of attachment 397085)
We're not going to take polish fixes on 1.9.1.

Revision history for this message
In , Mh+mozilla (mh+mozilla) wrote :

(In reply to comment #17)
> (From update of attachment 397085 [details])
> We're not going to take polish fixes on 1.9.1.

FYI, the fix for bookmarks, which this fix depends on, has been pushed in 1.9.1.2...

Revision history for this message
In , Gavin Sharp (gavin-sharp) wrote :

(From update of attachment 397085)
Yeah, I think we should take this.

Revision history for this message
In , Dveditz (dveditz) wrote :

(From update of attachment 397085)
Approved for 1.9.1.8, a=dveditz for release-drivers

Revision history for this message
In , Dao (dao) wrote :
Revision history for this message
In , Hskupin (hskupin) wrote :

Verified fixed on 1.9.1 with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100128 Shiretoko/3.5.8pre

Changed in firefox:
importance: Unknown → Medium
Mathew Hodson (mhodson)
Changed in firefox:
importance: Medium → Undecided
status: Fix Released → New
importance: Undecided → Unknown
status: New → Unknown
Mathew Hodson (mhodson)
affects: nautilus (Ubuntu) → firefox (Ubuntu)
Changed in firefox (Ubuntu):
status: Invalid → Fix Released
Changed in firefox:
importance: Unknown → Medium
status: Unknown → Fix Released
Mathew Hodson (mhodson)
Changed in firefox (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.