gtk/tests
Daniel Boles 30effaf7fc testmenubutton: Fix inverted keynav in the GtkMenu
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.
2017-10-08 13:15:33 +01:00
..
dummy-headers quartz: move atom/pasteboard type conversions functions to GDK 2013-03-28 13:10:38 +01:00
visuals tests: Connect signals in visuals test 2014-02-20 02:10:07 +01:00
3DRings.xpm
animated-resizing.c animated-resizing, video-timer: Add missing return value from ::draw 2013-04-25 13:44:58 -04:00
animated-revealing.c tests: Exit test when main window is closed 2014-10-10 00:27:45 +02:00
apple-red.png
blur-performance.c shadow-box: Blur only horizontally/vertically for the non-corner parts 2015-03-21 21:31:49 +01:00
check-n.xpm
check-y.xpm
dialog.ui Set initial focus in some dialog tests 2014-08-02 11:59:05 +02:00
FilesQueue.xpm
flicker.c
frame-stats.c tests/animated-resizing: Split frame statistics out into a separate file 2013-04-23 14:04:40 -04:00
frame-stats.h tests/animated-resizing: Split frame statistics out into a separate file 2013-04-23 14:04:40 -04:00
gdkgears.c gdkgears: Use a headerbar 2015-09-29 21:19:06 -04:00
gnome-textfile.png
gradient1.png
gtkgears.c Avoid redefining GNU_SOURCE 2017-03-26 15:05:27 +01:00
gtkgears.h tests: Make gtkgears compile without complaints 2014-10-14 14:33:08 +02:00
gtkoffscreenbox.c tests: Strip newlines from g_warning and g_error 2016-02-28 12:23:12 -05:00
gtkoffscreenbox.h
listmodel.c Add a test for gtk_flow_box_bind_model 2015-08-16 18:20:50 -04:00
Makefile.am tests: Add testforeign 2017-05-23 09:39:29 +08:00
makefile.msc Deprecate the unused gtk-file-chooser-backend setting 2013-06-30 13:44:24 -04:00
marble.xpm
merge-1.ui
merge-2.ui
merge-3.ui
Modeller.xpm
motion-compression.c Drop most uses of GtkMisc in tests 2014-05-13 07:43:21 -04:00
mydialog2.ui Add missing templates to testdialog 2014-04-25 22:11:54 -04:00
mydialog.ui Add missing templates to testdialog 2014-04-25 22:11:54 -04:00
overlayscroll.c Port the overlayscroll example 2014-10-20 23:07:45 -04:00
popover2.ui Add a scale to the popover menu example 2014-10-29 06:49:59 -04:00
popover.ui GtkMenuSectionBox: Always show separators for labeled sections 2014-04-29 12:19:53 -04:00
popupat.ui add demo for testing gtk_menu_popup_at_* () 2016-07-19 09:38:54 -04:00
print-editor.c gdk: Deprecate gdk_cairo_create() 2016-06-09 17:45:40 +01:00
scrolling-performance.c tests/scrolling-performance: Define MyTextView 2016-05-30 19:11:27 +02:00
selectionmode.ui Reconstruct a missing file 2014-08-11 16:25:21 -04:00
simple.c
stresstest-toolbar.c
styleexamples.c gtkwindow: Remove resize grips 2014-07-03 12:58:41 -04:00
subsurface.c Make subsurface test use a stack 2014-09-17 12:42:32 -04:00
syncscroll.c Add an example for synchronized scrolling 2014-10-09 20:18:51 -04:00
test.xpm
testaccel.c testaccel: Add another focus location 2014-09-06 19:03:00 -04:00
testactionbar.c tests: add a visibility toggle to the action bar test 2014-02-12 08:08:03 -05:00
testactions.c Deprecate GtkAction and GtkUIManager 2013-06-30 11:19:50 -04:00
testadjustsize.c More removal of deprecated API 2014-10-07 22:35:02 -04:00
testanimation.c tests: Stop using GtkAlignment 2014-05-23 21:32:51 -04:00
testappchooser.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testappchooserbutton.c tests: Include config.h 2012-11-06 21:29:58 +01:00
testapplication.desktop
testassistant.c Add a more complex widget in the flipping assistant 2015-10-29 19:21:20 -04:00
testbaseline.c More removal of deprecated API 2014-10-07 22:35:02 -04:00
testbbox.c Add an expand button box type 2014-01-17 17:52:07 -05:00
testbox.c Add a testcase for box sizing 2014-02-16 23:24:13 -05:00
testboxcss.c tests: Drop manual property editor 2014-05-22 08:32:48 -04:00
testbuttons.c tests: Ignore deprecation warnings 2013-06-26 15:51:32 +02:00
testcairo.c
testcalendar.c Avoid a crash in testcalendar 2014-12-23 21:47:50 -05:00
testcellarea.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testcellrenderertext.c
testclipboard.c tests: fix clipboard test by loading correct icon 2016-10-21 11:38:19 -04:00
testcolorchooser2.c Add a color editor test 2016-01-23 18:16:51 -05:00
testcolorchooser2.ui Add a color editor test 2016-01-23 18:16:51 -05:00
testcolorchooser.c
testcombo.c testcombo: Test grid :row- and :column-span-column 2017-10-04 11:04:52 +01:00
testcombochange.c Drop most uses of GtkMisc in tests 2014-05-13 07:43:21 -04:00
testdialog.c testdialog: Error out if templates are missing 2015-07-17 16:11:17 -04:00
testdnd2.c testdnd2: Actually test gtk_drag_set_icon_widget 2016-04-26 20:34:24 -04:00
testdnd.c
testellipsise.c tests: Stop using GtkAlignment 2014-05-23 21:32:51 -04:00
testemblems.c Add a testcase for icons with emblems 2014-03-24 20:17:21 -04:00
testentrycompletion.c tests: Drop manual property editor 2014-05-22 08:32:48 -04:00
testentryicons.c testentryicons: Set tooltips on all icons 2017-07-31 20:05:11 +01:00
testerrors.c Remove executable bit from C source files in tests 2017-01-19 00:17:40 +00:00
testexpand.c tests: Update testexpand example for deprecations 2014-10-12 05:27:27 +02:00
testexpander.c
testfilechooser.c testfilechooser: Say Save 2015-07-31 07:12:35 -04:00
testfilechooserbutton.c tests: Stop using GtkAlignment 2014-05-23 21:32:51 -04:00
testflowbox.c testflowbox: Add an example with buttons 2015-08-26 20:00:03 -04:00
testfontchooser.c tests: Drop manual property editor 2014-05-22 08:32:48 -04:00
testfontchooserdialog.c GtkFontChooser: Allow a custom font map 2015-05-07 07:33:23 -04:00
testfontoptions.c Add a testcase for font options 2015-07-01 19:14:58 -07:00
testfontselection.c
testfontselectiondialog.c
testforeign.c tests: Add testforeign 2017-05-23 09:39:29 +08:00
testframe.c testframe: Don’t unnecessarily query the padding 2017-03-07 01:32:24 +00:00
testfullscreen.c tests: add a test for fullscreen mode 2013-01-25 13:16:57 +01:00
testgeometry.c testgeometry: Ignore deprecations 2016-01-29 11:54:07 -05:00
testgiconpixbuf.c
testglarea.c tests: Add GLES shaders to testglarea 2016-04-25 14:35:02 +01:00
testglblending.c Add tests/testglblending 2014-10-13 10:43:31 -04:00
testgmenu.c Separators not correctly placed 2016-06-01 10:03:19 -04:00
testgrid.c More removal of deprecated API 2014-10-07 22:35:02 -04:00
testgrouping.c
testgtk2.css testgtk: fix css 2017-09-03 12:20:13 +01:00
testgtk.1
testgtk.c testgtk: fix css 2017-09-03 12:20:13 +01:00
testgtk.css testgtk: fix css 2017-09-03 12:20:13 +01:00
testheaderbar.c tests: use actionbar in headerbar test 2014-01-07 08:46:37 -05:00
testheightforwidth.c tests: Fix use of C99 inline declaration 2017-03-07 09:48:44 +00:00
testicontheme.c testicontheme: Use rtl/ltr lookup flags 2014-09-21 14:09:16 -04:00
testiconview-keynav.c
testiconview.c tests: Drop manual property editor 2014-05-22 08:32:48 -04:00
testimage.c Test size constraints 2014-03-14 13:46:31 -04:00
testinput.c gdk: Deprecate gdk_cairo_create() 2016-06-09 17:45:40 +01:00
testkineticscrolling.c Don't use gtk_scrolled_window_add_with_viewport() in tests 2013-02-01 22:58:55 -05:00
testlevelbar.c Update testlevelbar 2015-11-13 06:41:14 -05:00
testlist2.c tests: Adapt to gtk_widget_reparent deprecations 2014-05-22 08:50:18 -04:00
testlist3.c Redo the listbox dnd example 2017-05-31 21:15:34 -04:00
testlist.c testlist: Test double click mode 2013-06-17 15:15:07 +02:00
testlockbutton.c tests: Port testlockbutton to GTask 2016-02-13 06:26:42 +01:00
testlogout.c
testmenubutton.c testmenubutton: Fix inverted keynav in the GtkMenu 2017-10-08 13:15:33 +01:00
testmerge.c
testmountoperation.c
testmultidisplay.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testnoscreen.c
testnotebookdnd.c testnotebookdnd: add one GtkListBox as tab content 2016-05-02 13:17:48 +02:00
testnouiprint.c Bump GLib dependency to 2.35 2012-11-04 13:01:38 -05:00
testnumerableicon.c tests: Remove unused args 2014-05-22 11:17:32 -04:00
testoffscreen.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testoffscreenwindow.c
testorientable.c
testoverlay.c overlay: remove gtk_overlay_add_pass_through_overlay() 2015-06-17 11:48:37 -07:00
testoverlaystyleclass.c tests: Update testoverlaystyleclass test 2014-10-12 05:11:13 +02:00
testpixbuf-color.c
testpixbuf-save.c
testpixbuf-scale.c tests: Stop using GtkAlignment 2014-05-23 21:32:51 -04:00
testplacesview.c tests: Remove testplacesview test 2015-07-16 06:37:37 +02:00
testpopover.c testpopover: Use HeaderBar to get CSD decorations 2017-08-24 20:57:00 +01:00
testpopup.c wayland: prefer subsurface when possible 2016-01-08 10:33:26 +01:00
testpopupat.c add demo for testing gtk_menu_popup_at_* () 2016-07-19 09:38:54 -04:00
testprint.c
testprintfileoperation.c
testprintfileoperation.h
testrc.c
testrecentchooser.c tests: Drop manual property editor 2014-05-22 08:32:48 -04:00
testrecentchoosermenu.c Deprecate GtkImageMenuItem 2013-06-27 18:48:46 -04:00
testrevealer2.c Add a testcase for revealer size allocation 2016-02-23 20:53:23 -05:00
testrevealer.c Replace all margin-left and margin-right with margin-start and margin-end 2013-11-15 02:54:35 +01:00
testrichtext.c
testscale.c Remove executable bit from C source files in tests 2017-01-19 00:17:40 +00:00
testscrolledge.c scrolledwindow: add a new edge-reached signal 2015-01-31 23:08:17 +00:00
testscrolledwindow.c tests: adapt testscrolledwindow to have max content sizes 2016-06-05 11:03:11 -03:00
testselection.c tests: Add missing break statements 2016-03-20 05:36:17 +01:00
testselectionmode.c Add a selection mode testcase 2014-08-08 13:30:54 +02:00
testsensitive.c testsensitive: Remove deprecated part 2013-04-02 11:45:44 +02:00
testsocket_child.c
testsocket_common.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testsocket.c tests: Avoid deprecated API usage in testsocket 2016-01-28 12:50:50 +01:00
testspinbutton.c
testsplitheaders.c Make testsplitheaders more robust 2014-01-07 13:45:55 -05:00
testsplitheaders.ui Fix separator in testsplitheaders 2015-03-28 22:32:12 -04:00
teststack.c tests: Make stack expand 2015-11-04 19:39:29 +01:00
teststackedheaders.c Add a testcase for stacked headerbars 2016-11-03 08:33:38 -04:00
teststackedheaders.ui Add a testcase for stacked headerbars 2016-11-03 08:33:38 -04:00
teststatusicon.c Remove executable bit from C source files in tests 2017-01-19 00:17:40 +00:00
teststockbuttonmenu.c Add an example for accelerators with manual image menuitems 2015-03-06 20:36:11 -05:00
testswitch.c Add a delayed state test case 2014-04-06 01:52:48 -04:00
testtextview.c tests: Sanitize 2014-08-15 00:13:06 +02:00
testthreads.c
testtitlebar.c Make testtitlebar more versatile 2014-01-06 23:37:05 -05:00
testtoolbar2.c Add an example for a hig-style toolbar 2014-08-15 23:22:00 -04:00
testtoolbar.c testtoolbar: Don't expand rows that shouldn't be expanded 2015-07-08 05:48:59 +02:00
testtooltips.c wayland: fix testtooltips 2015-12-04 13:17:29 +01:00
testtoplevelembed.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testtreechanging.c tests: Drop manual property editor 2014-05-22 08:32:48 -04:00
testtreecolumns.c tests: fix testtreecolumns not to segfault at startup 2012-09-27 16:54:40 -04:00
testtreecolumnsizing.c
testtreednd.c Add a tree dnd testcase 2015-06-05 08:33:59 -04:00
testtreeedit.c tests: Drop use of deprecated api 2014-08-04 12:27:56 +02:00
testtreeflow.c tests: Drop use of deprecated api 2014-08-04 12:27:56 +02:00
testtreefocus.c tests: Drop use of deprecated api 2014-08-04 12:27:56 +02:00
testtreemenu.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testtreemodel.c testtreemodel: fix unused variable on windows 2014-07-24 08:34:02 +02:00
testtreepos.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testtreesort.c tests: Drop use of deprecated api 2014-08-04 12:27:56 +02:00
testtreeview-plan.txt
testtreeview.c tests: Drop use of deprecated api 2014-08-04 12:27:56 +02:00
testverticalcells.c Remove most of the stock API usage from the tests 2013-06-24 19:53:08 -04:00
testvolumebutton.c tests: fix volume button 2014-02-13 20:47:24 -05:00
testwindows.c tests: Don't force black background in testwindows 2014-10-12 05:15:23 +02:00
testwindowsize.c tests: Add max-width-chars to testwindowsize test 2013-11-25 03:56:21 +01:00
testxinerama.c
treestoretest.c tests: Drop use of deprecated api 2014-08-04 12:27:56 +02:00
variable.c tests/animated-resizing: Split frame statistics out into a separate file 2013-04-23 14:04:40 -04:00
variable.h Fix another header guard oversight 2014-12-08 19:34:23 -05:00
video-timer.c animated-resizing, video-timer: Add missing return value from ::draw 2013-04-25 13:44:58 -04:00