Disposition can't be reset to normal without changing the label text

Bug #937829 reported by Alberto Mardegan on 2012-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DBus Menu
Fix Released
Medium
Alberto Mardegan

Bug Description

If you have a DBusMenu item and do

dbusmenu_menuitem_property_set (menu_item
                                    DBUSMENU_MENUITEM_PROP_DISPOSITION,
                                    DBUSMENU_MENUITEM_DISPOSITION_ALERT);

the menu item becomes red, as expected. However, if you later do

dbusmenu_menuitem_property_set (menu_item
                                    DBUSMENU_MENUITEM_PROP_DISPOSITION,
                                    DBUSMENU_MENUITEM_DISPOSITION_NORMAL);

the item is not set to its normal color, unless you change the label text as well. The Genericmenuitem class in libdbusmenu-gtk/genericmenuitem.c should remember the string which was set as label by the client, and not re-read it from the Gtk label widget (where it will have the additional <span> elements for the colouring).

Related branches

Ted Gould (ted) on 2012-02-23
Changed in dbusmenu:
status: New → Fix Committed
milestone: none → 0.5.92
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → Medium
Ted Gould (ted) on 2012-02-23
Changed in dbusmenu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers