GNOME Bugzilla – Bug 310589
gtkmenutoolbutton improvements
Last modified: 2011-02-04 16:18:46 UTC
There are a couple of problems with gtkmenutoolbutton: - the menu isn't aligned to the button but to the arrow; a regression from Epiphany's own widget - the button isn't shown depressed when the menu is shown - in rev 1.9 of gtkmenutoolbutton.c, ssp broke prelighting The attached patch fixes all these, and fixes the code to use ->priv instead of GET_PRIVATE macro everywhere (except in _init of course).
Created attachment 49285 [details] [review] proposed patch Also sets focus-on-click to FALSE on the arrow button.
Soeren, can you look at this patch ?
I think the menu-alignment makes sense, provided that a menu which is narrower than the two buttons combined gets its right edge aligned with the right edge of the arrow-button (in LTR). Feel free to open a new bug about that. Also using button->priv is fine. Go ahead and commit that if you'd like. I don't like the other changes though. After discussing them with Seth, I am going to reject those. The two buttons represent different actions, so their depressed-ness and prelighted-ness should be independent. Closing NOTABUG.
I've committed the ->priv part; going to open separte bugs for the remaining things.