[ModeButton] n_items is not correct when called from on_mode_removed callback

Bug #1187313 reported by Jan Hrdina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Granite
Fix Released
Low
David Gomes

Bug Description

If you connect mode_removed signal to a callback and try to obtain the count of items from it, the number is not correct. In my opinion the problem is in the remove method, where the mode_removed signal shouldn't be emitted before item_map.unset (index).

You can compile and run the example with:
valac --pkg=granite --pkg=gtk+-3.0 example.vala && ./example

take look at the terminal output.

Related branches

Revision history for this message
Jan Hrdina (jan-hrdina) wrote :
David Gomes (davidgomes)
Changed in granite:
status: New → Confirmed
importance: Undecided → Low
milestone: none → 0.2.3
assignee: nobody → David Gomes (davidgomes)
status: Confirmed → In Progress
Cody Garver (codygarver)
Changed in granite:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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