summaryrefslogtreecommitdiff
path: root/tests/testgmenu.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Stop using gtk_widget_show/hideMatthias Clasen2022-12-131-1/+1
|
* tests: Ignore deprecationsMatthias Clasen2022-10-111-0/+2
| | | | Eventually, most of these tests should be dropped.
* tests: Fix check vs toggle button confusionMatthias Clasen2021-06-101-6/+6
| | | | Check buttons aren't toggle buttons anymore.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-14/+14
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-1/+1
|
* Replace most remaining uses of container apiMatthias Clasen2020-05-111-6/+6
| | | | These are all on GtkBox or enumerating children.
* tests: Fix testgmenuAlexander Mikhaylenko2020-05-111-1/+1
| | | | GtkMenuButton isn't a GtkButton anymore.
* Use gtk_window_set_child throughoutMatthias Clasen2020-05-041-1/+1
| | | | | Replace all uses of gtk_container_add on windows by gtk_window_set_child.
* tests: Add common_cflags to buildTimm Bäder2020-03-061-5/+5
| | | | | | And fix all the errors and warnings resulting from that See #2491
* window: Remove type argument from gtk_window_new()Benjamin Otte2020-02-141-1/+1
|
* Stop using gtk_main and gtk_main_quitMatthias Clasen2020-02-091-2/+15
| | | | Replace these calls with direct use of GMainContext api.
* tests: Stop using menusMatthias Clasen2019-12-291-1/+0
|
* tests: Stop using the delete-event signalMatthias Clasen2018-01-161-10/+1
| | | | We can use ::destroy in most cases.
* Fix a few overlooked castsTimm Bäder2017-12-091-2/+2
| | | | glib warns about these now.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-1/+1
|
* Update callersMatthias Clasen2017-01-191-1/+5
| | | | Adapt all our tests and examples to the new initialization api.
* Separators not correctly placedBastien Nocera2016-06-011-2/+22
| | | | | | | | | | | | | | | | | | What it should look like: Bold ---- /Size/ x 0.5 x 1.0 What it looks like: Bold /Size/ ---- x 0.5 x 1.0 https://bugzilla.gnome.org/show_bug.cgi?id=767108
* testgmenu: use the menu binding codeRyan Lortie2015-07-071-373/+14
| | | | | | | | | | The menu tracker does a better job of this than we can, so move over to using it instead. This fixes issues with './testgmenu --import' not properly displaying the language submenu. https://bugzilla.gnome.org/show_bug.cgi?id=752016
* Drop most uses of GtkMisc in testsMatthias Clasen2014-05-131-5/+0
| | | | | | | Replace them by GtkWidget h/valign. The only remaining uses are those where a size group is involved; they can't be replaced until GtkLabel stops looking at GtkMisc alignment for size allocation.
* Don't use deprecated GSimpleActionGroup apiMatthias Clasen2013-09-051-10/+10
| | | | Instead, use the corresponding GActionMap api.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Remove one last user of gmenumarkupRyan Lortie2012-01-251-56/+56
|
* Update testgmenu to latest api changesMatthias Clasen2011-12-191-2/+2
|
* gmenu testcase: update to glib API changesRyan Lortie2011-12-191-2/+2
|
* Only add a separator when a section endsMatthias Clasen2011-12-191-8/+9
|
* Make it build against the current wip/menus-rebase3 branchMatthias Clasen2011-12-191-4/+2
|
* testgmenu: #ifdef out non-compiling code for nowColin Walters2011-12-191-0/+2
|
* testgmenu: Insert separators after sectionsMatthias Clasen2011-12-191-1/+8
| | | | | The previous code was only inserting a separator when a new section was starting right away.
* testgmenu: Initial attempt at section headingsMatthias Clasen2011-12-191-3/+22
| | | | | | This should be redone to show the label together with the separator line, somehow. For now, just put the label below the separator, as a separate item.
* testgmenu: Use activate with parameter for radio actionsMatthias Clasen2011-12-191-37/+32
| | | | | This is how stateful actions are supposed to be activated, using change_state for this was not right at all.
* testgmenu: Use activate for toggle actionsMatthias Clasen2011-12-191-21/+21
| | | | | This is how stateful actions are supposed to be activated, using change_state for this was not right at all.
* testgmenu: Quit on delete-eventColin Walters2011-12-191-0/+10
|
* Adapt to api changes in GMenuModelMatthias Clasen2011-12-191-11/+9
|
* Adapt to object path conventionsMatthias Clasen2011-12-191-6/+8
| | | | Seems common to expect 'path == bus name with slashes'.
* testgmenu: Demonstrate how translatable labels workMatthias Clasen2011-12-191-3/+5
|
* More dynamic changesMatthias Clasen2011-12-191-11/+92
|
* CleanupsMatthias Clasen2011-12-191-148/+189
| | | | | Separate the menu generation code and all callbacks in a MenuHolder struct.
* Brute-force dynamic change propagationMatthias Clasen2011-12-191-12/+17
| | | | | We need to make sure that we connect to ::items-changed on every single model, as they appear and disappear. Ugly business.
* First attempt at handling dynamic changesMatthias Clasen2011-12-191-1/+43
| | | | | | | We need to connect to items-changed on _every_ menu model, which is somewhat icky. For some reason, this works fine with a local model, but not with D-Bus in between. Debugging needed.
* Add code for dynamic changesMatthias Clasen2011-12-191-0/+98
| | | | | Add and remove items and actions - we don't update the menus properly yet.
* Add some todosMatthias Clasen2011-12-191-0/+13
|
* Some GMenu test codeMatthias Clasen2011-12-191-0/+728
This is some test code for constructing GtkMenus from GMenus.