[ModeButton] n_items is not correct when called from on_mode_removed callback
Bug #1187313 reported by
Jan Hrdina
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
lp:~davidgomes/granite/fix-1187313
- Cody Garver (community): Approve
-
Diff: 13 lines (+1/-1)1 file modifiedlib/Widgets/ModeButton.vala (+1/-1)
Changed in granite: | |
status: | New → Confirmed |
importance: | Undecided → Low |
milestone: | none → 0.2.3 |
assignee: | nobody → David Gomes (davidgomes) |
status: | Confirmed → In Progress |
Changed in granite: | |
status: | In Progress → Fix Released |
To post a comment you must log in.