summaryrefslogtreecommitdiff
path: root/gtk/gtkmenusectionbox.c
Commit message (Collapse)AuthorAgeFilesLines
* Ref the popover before activating the itemGarrett Regier2014-08-231-2/+15
| | | | | Otherwise the item could cause the popover to be destroyed, for example a Quit item, and cause a warning to be printed.
* Improve popover menu spacingMatthias Clasen2014-06-281-0/+8
| | | | | | Make iconic buttons have a more reasonable height, and add some space above an iconic row. https://bugzilla.gnome.org/show_bug.cgi?id=732229
* GtkMenuSectionBox: Don't show separators for nested subsectionsMatthias Clasen2014-04-291-6/+8
| | | | | | | | ...unless they are labeled. To implement this, keep track of the nesting depth of section boxes, starting from 0 for the toplevel and the submenu ones, and only insert unlabeled separators if the depth is at most 1.
* GtkMenuSectionBox: Always show separators for labeled sectionsMatthias Clasen2014-04-291-3/+8
| | | | ...unless they are empty.
* Add a comment with rules for separatorsMatthias Clasen2014-04-291-0/+9
|
* GtkMenuSectionBox: don't leakMatthias Clasen2014-04-291-0/+20
| | | | This wasn't fully fleshed out yet.
* GtkMenuSectionBox: add support for iconic sectionsMatthias Clasen2014-04-281-7/+27
| | | | | | Sections that have the display-hint attribute set to "horizontal-boxes" will be rendered as a row of icon buttons, instead of menuitem-like.
* GtkPopover: new approach to menu model bindingRyan Lortie2014-04-281-0/+405
Instead of using GtkMenuTracker to flatten the sections into a single linear menu, handle the sections ourselves by nesting boxes. Each section gets an inner and outer box. The inner box numbers its children in the way that the tracker instructs. The outer box containes the inner box and the separator, if appropriate. Having the two separate boxes will allow us to change the orientation of the inner box if we want to pack widgets horizontally within a section.