Merge lp:~charlesk/libdbusmenu/lp-953509 into lp:libdbusmenu/0.6
Status: | Merged |
---|---|
Approved by: | Charles Kerr |
Approved revision: | 389 |
Merged at revision: | 388 |
Proposed branch: | lp:~charlesk/libdbusmenu/lp-953509 |
Merge into: | lp:libdbusmenu/0.6 |
Diff against target: |
116 lines (+0/-51) 1 file modified
libdbusmenu-gtk/parser.c (+0/-51) |
To merge this branch: | bzr merge lp:~charlesk/libdbusmenu/lp-953509 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry | Approve | ||
Lars Karlitski (community) | Approve | ||
Review via email: mp+98621@code.launchpad.net |
Description of the change
Don't listen for "changed" events from the screen's default GtkIconTheme. Fixes lp bug #953509
The crash in bug #953509 was being caused by the last two lines of theme_changed_cb() (a) leaving a dangling handler id in priv.theme_
"But wait," you say. "How will our menu icons follow the theme changes?" It works anyway because we always listen for property changes to our reference GtkImage, **and** we listen for property changes to its GtkImageMenuItem parent so that if the GtkImageMenuItem changes GtkImages we can stop listening to the old one and start listening to the new one.
Yes!