summaryrefslogtreecommitdiff
path: root/tests/testmenubutton.c
Commit message (Collapse)AuthorAgeFilesLines
* testmenubutton: Fix inverted keynav in the GtkMenuDaniel Boles2017-10-081-7/+5
| | | | | | | | | | | | | | | GtkMenu’s own keynav code, which actually bothers to account for the layout of items, only happens if columns > 1. So, adding items to 1 column using a reverse loop meant they were placed in the Menu’s list of children in that order, and because we only have 1 column, Menu passes keynav up to MenuShell, which doesn’t adjust for the items’ positions. ‘Fix’ that here by adding items in the same order they’ll have when laid out in the Menu, so keynav does what you’d expect, not the opposite. For that, it’s simpler just to use gtk_container_add(). Let’s presume users are using add(), attach() with a non-inverted loop, or attach() with arguments that create 2+ columns and so GtkMenu keynav.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-2/+2
|
* Update callersMatthias Clasen2017-01-191-1/+1
| | | | Adapt all our tests and examples to the new initialization api.
* API: container: Remove gtk_container_set_border_width()Benjamin Otte2016-10-161-1/+0
|
* tests: Drop manual property editorMatthias Clasen2014-05-221-2/+0
| | | | No need for this anymore, now that we have the inspector everywhere.
* testmenubutton: Add a toggle for use-popoverMatthias Clasen2014-04-281-0/+7
|
* Fix testmenubuttonMatthias Clasen2014-04-261-1/+1
| | | | The menu model examples was messing up the order of its items.
* tests: add menu alignments to the menubutton testWilliam Jon McCann2014-01-061-16/+80
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=720939
* tests: add some space to menubutton testWilliam Jon McCann2014-01-061-0/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=720939
* Add a test for icons in menu modelsMatthias Clasen2013-09-081-1/+6
| | | | testmenubutton now features an icon.
* Remove most of the stock API usage from the testsWilliam Jon McCann2013-06-241-1/+1
| | | | With the exception of GtkActions and the tests for stock items.
* tests: Add accelerator example to testmenubuttonBastien Nocera2012-09-121-4/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=680962
* tests: Add test for mnemonics in GtkMenuButtonBastien Nocera2012-09-101-3/+3
| | | | To check https://bugzilla.gnome.org/show_bug.cgi?id=680962
* GtkMenuButton: rename _set_menu() to _set_popup()Ryan Lortie2012-08-201-1/+1
| | | | | | | | It's too close to the release so we'll keep _set_menu() around, but deprecate it, pointing to the new API. It will be removed (and the name reused) before the 3.6.0 release. https://bugzilla.gnome.org/show_bug.cgi?id=682235
* gtkmenubutton: Add menu button widgetBastien Nocera2012-06-151-0/+78
| | | | | | | | | As used in Totem and gnome-contacts. The widget takes either a GtkMenu or a GMenuModel to construct its menu, and can be given a parent widget to use to position the drop-down (as used in GtkMenuToolButton). https://bugzilla.gnome.org/show_bug.cgi?id=668013
* Revert "gtkmenubutton: Add menu button widget"Matthias Clasen2012-05-301-78/+0
| | | | This reverts commit 9d35f7e5121c863685375d1afb7e14e886e46348.
* gtkmenubutton: Add menu button widgetBastien Nocera2012-05-301-0/+78
As used in Totem and gnome-contacts. The widget takes either a GtkMenu or a GMenuModel to construct its menu, and can be given a parent widget to use to position the drop-down (as used in GtkMenuToolButton). https://bugzilla.gnome.org/show_bug.cgi?id=668013