Unable to remove icon from menuitem

Bug #1070421 reported by Vsevolod Velichko
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Messaging Menu
Fix Released
Medium
Lars Karlitski
qutim
Fix Released
Medium
Vsevolod Velichko
indicator-messages (Ubuntu)
Fix Released
Low
Unassigned
Quantal
Won't Fix
Low
Unassigned

Bug Description

Impact:
It's not possible to remove icons once added

Test Case:
- download the file from comment #4
- Compile with:
  gcc reproduce-lp1070421.c -o testcase `pkg-config --cflags --libs messaging-menu`
- "Something happened" will appear below the "Empathy" entry in the messaging menu. Without the fix to this bug, an "icon-not-found" icon will be displayed. With the fix, no icon should appear.

Regression Potential:
Limited, it makes work a case which was broken, if the fix is not correct it would keep not working
---

At the moment if I create some Messaging Menu menuitem with no icon (GIcon *icon = NULL), it is created with no icon, as it is supposed to be.
Then I set some icon with messaging_menu_app_set_source_icon, and later I want to remove it. I call messaging_menu_app_set_source_icon again, providing NULL as pointer to icon, and icon is not removed, but is set to some "icon-not-found" icon (I don't know real name for that icon).
So the only way to remove icon from source is to completely remove it and create again. I suppose that it is a bug.

Related branches

Revision history for this message
Vsevolod Velichko (torkvemada) wrote :

Practically you have to call
  g_menu_item_set_attribute (menuitem, "x-canonical-type", "s", "ImSourceMenuItem");
in case if icon is null.

Changed in qutim:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Vsevolod Velichko (torkvemada)
Revision history for this message
Lars Karlitski (larsu) wrote :

Thanks for spotting that bug, Vsevolod. The attached branch fixes it.

Changed in indicator-messages:
status: New → In Progress
assignee: nobody → Lars Uebernickel (larsu)
importance: Undecided → Medium
milestone: none → 12.10.5
Changed in indicator-messages:
status: In Progress → Fix Committed
Changed in indicator-messages (Ubuntu):
status: New → In Progress
importance: Undecided → Low
Changed in indicator-messages (Ubuntu Quantal):
importance: Undecided → Low
status: New → In Progress
Lars Karlitski (larsu)
Changed in indicator-messages:
status: Fix Committed → Fix Released
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote :

The provided test case is not straightforward for a tester to follow. Please provide a test case that does not rely on knowledge of the indicator APIs.

Revision history for this message
Lars Karlitski (larsu) wrote :

Attached a program that reproduces this issue. Compile with:

  cc reproduce-lp1070421.c `pkg-config --cflags --libs messaging-menu`

"Something happened" will appear below the "Empathy" entry in the messaging menu. Without the fix to this bug, an "icon-not-found" icon will be displayed. With the fix, no icon should appear.

description: updated
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Vsevolod, or anyone else affected,

Accepted indicator-messages into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/indicator-messages/12.10.5-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in indicator-messages (Ubuntu Quantal):
status: In Progress → Fix Committed
tags: added: verification-needed
tags: added: verification-done
removed: verification-needed
Changed in qutim:
status: Confirmed → Fix Committed
Changed in indicator-messages (Ubuntu):
status: In Progress → Fix Released
Tretyakov R (roman-i)
Changed in qutim:
status: Fix Committed → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

quantal has seen the end of its life and is no longer receiving any updates. Marking the quantal task for this ticket as "Won't Fix".

Changed in indicator-messages (Ubuntu Quantal):
status: Fix Committed → Won't Fix
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.