libdbusmenu doesn't use the menu item's label if it has a stock icon
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | libdbusmenu (Ubuntu) |
High
|
Marco Trevisan (Treviño) | ||
Bug Description
To reproduce, run the attached testcase1.py. You will see a new indicator, inside it will be one menu item with label "Pause" and a pause button icon. The menu item should have the label "Hello".
Also note that this bug has been fixed once before:
https:/
For trusty, see comment 3. Glade is used by deluge to set the indicator menu, this is where the problem was first observed.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: indicator-
Uname: Linux 3.11.0-
NonfreeKernelMo
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Sat Jan 18 20:40:29 2014
InstallationDate: Installed on 2013-08-27 (143 days ago)
InstallationMedia: Xubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130827)
MarkForUpload: True
SourcePackage: indicator-
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Timo Jyrinki: Approve on 2015-04-10
- PS Jenkins bot: Approve (continuous-integration) on 2015-04-09
- Lars Karlitski: Pending requested 2015-04-09
-
Diff: 95 lines (+15/-11)4 files modifiedINSTALL (+12/-7)
libdbusmenu-gtk/parser.c (+1/-1)
tests/Makefile.am (+1/-1)
tests/test-json-server.c (+1/-2)
| Alistair Buxton (a-j-buxton) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
| Changed in indicator-application (Ubuntu): | |
| status: | New → Confirmed |
| tags: | added: regression |
| description: | updated |
| tags: | added: trusty |
| Alistair Buxton (a-j-buxton) wrote : | #3 |
testcase1.py does not trigger the bug on trusty, but testcase2.py does:
| description: | updated |
| Changed in indicator-application (Ubuntu): | |
| status: | Confirmed → Triaged |
| importance: | Undecided → Medium |
| tags: | added: ubuntu-desktop-trusty |
| Sebastien Bacher (seb128) wrote : | #4 |
Ted said he would have a look, assigning to him
| Changed in indicator-application (Ubuntu): | |
| assignee: | nobody → Ted Gould (ted) |
| importance: | Medium → High |
| Ted Gould (ted) wrote : | #5 |
This issue is in the dbusmenu parser code. Specifically right here:
What we're doing is taking the stock label, for stock images. I think this is correct as the idea of a stock image is that there is a consistent application of it across the user experience. Using the stock icon without the label would mean you're trying to change the meaning of that icon, which seems like incorrect usage.
| affects: | indicator-application (Ubuntu) → libdbusmenu (Ubuntu) |
| Changed in libdbusmenu (Ubuntu): | |
| status: | Triaged → Won't Fix |
| Cas (calumlind) wrote : | #6 |
For Deluge we use the stock add icon and have custom text of "Add Torrent" but now it's just "Add", "Pause All" becomes "Pause" etc. so it is an issue and it is breaking with the convention that you can specify custom labels with stock icons in a GTK application.
| Matthew Paul Thomas (mpt) wrote : | #7 |
That seems perfectly reasonable to me. Ubuntu doesn't use images in most command buttons and menu items. But if we did, it would be routine to make button/menu text more specific in particular apps or situations while retaining the stock icon: "Log Out Anyway" rather than "Log Out", "Remove Photo" rather than just "Remove", "Date & Time Settings…" rather than just "Settings…", and so on. It's not changing the meaning of the icon, it's just being helpfully more specific.
| Changed in libdbusmenu (Ubuntu): | |
| status: | Won't Fix → Triaged |
| tags: |
added: regression-release removed: regression trusty ubuntu-desktop-trusty |
| Alistair Buxton (a-j-buxton) wrote : | #8 |
Just for the record this still affects trusty, including transmission which is a default app.
| Sebastien Bacher (seb128) wrote : | #9 |
what item is buggy in the transmission case?
| Alistair Buxton (a-j-buxton) wrote : | #10 |
See screenshot.
"Open" should be "Open a torrent"
"Open" should be "Open URL"
"Pause" should be "Pause all torrents"
"Play" should be "Start all torrents".
| Sebastien Bacher (seb128) wrote : | #11 |
The issue doesn't show on vivid/unity, is that fixed in new versions?
| Alistair Buxton (a-j-buxton) wrote : | #12 |
The bug still appears in vivid/xfce from about 3 days ago.
| summary: |
- indicator-application doesn't use the menu item's label if it has a - stock icon + libdbusmenu doesn't use the menu item's label if it has a stock icon |
| Changed in libdbusmenu (Ubuntu): | |
| assignee: | Ted Gould (ted) → Marco Trevisan (Treviño) (3v1n0) |
| status: | Triaged → In Progress |
| Launchpad Janitor (janitor) wrote : | #13 |
This bug was fixed in the package libdbusmenu - 12.10.3+
---------------
libdbusmenu (12.10.
[ CI Train Bot ]
* New rebuild forced.
[ Marco Trevisan (Treviño) ]
* Parser: don't override the label for stock items if a custom one is
provided (LP: #1270486)
-- CI Train Bot <email address hidden> Fri, 10 Apr 2015 21:56:13 +0000
| Changed in libdbusmenu (Ubuntu): | |
| status: | In Progress → Fix Released |
| tags: | added: trusty |


Status changed to 'Confirmed' because the bug affects multiple users.