summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* testdnd2: Actually test gtk_drag_set_icon_widgetMatthias Clasen2016-05-051-6/+20
| | | | | | I added a new test function, but didn't actually use it. No wonder I couldn't reproduce the lifecycle issues with drag widgets that firefox is experiencing.
* Expand the drag widget testcaseMatthias Clasen2016-05-051-5/+17
| | | | | This adds a testcase which reuses the drag widget for multiple drags.
* Add a dnd test using a window as iconMatthias Clasen2016-05-051-1/+61
| | | | | This case is causing problems in firefox. Lets at least make sure that it doesn't crash in GTK+.
* testnotebookdnd: add one GtkListBox as tab contentCarlos Soriano2016-05-021-1/+50
| | | | | | | To make sure we test regressions on widgets that bubble up motion handling and can trigger the motion handling code path on GtkNotebook. https://bugzilla.gnome.org/show_bug.cgi?id=764395
* tests: Add missing break statementsBenjamin Otte2016-03-201-0/+2
| | | | http://www.viva64.com/en/b/0383/
* Minor cleanupMatthias Clasen2016-03-051-1/+3
| | | | The GtkStatusIcon::size-changed signal expects a boolean return.
* testscale: change example to use upwards labelsCosimo Cecchi2016-03-031-3/+3
| | | | There's no example of that in testscale.
* tests: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-283-4/+4
| | | | g_logv adds one for us already.
* Add a testcase for revealer size allocationMatthias Clasen2016-02-232-0/+86
| | | | This was taken from https://bugzilla.gnome.org/show_bug.cgi?id=761760
* tests: Port testlockbutton to GTaskBenjamin Otte2016-02-131-12/+12
| | | | Get rid of deprecations that way.
* testgtk: Compile without warnings on win32Benjamin Otte2016-02-111-0/+2
|
* tests: Remove unused variableBenjamin Otte2016-02-111-3/+0
|
* testgtk: Remove an unused variableMatthias Clasen2016-02-101-97/+0
|
* testgtk: Avoid deprecation warningsMatthias Clasen2016-01-291-0/+2
| | | | | | Eventually, we should probably remove the examples that rely on geometry support, since they probably don't work correctly anymore. For now, just disable the warnings.
* testoffscreen: Remove deprecated callsMatthias Clasen2016-01-291-3/+0
| | | | | Not doing these calls doesn't seem to affect the demo, so lets just remove them.
* testgeometry: Ignore deprecationsMatthias Clasen2016-01-291-0/+2
| | | | | All the functionality that is tested here has been deprecated recently.
* tests: Avoid deprecated API usage in testgtkCarlos Garnacho2016-01-281-22/+11
| | | | We can use seat grabs here.
* tests: Avoid deprecated API usage in testsocketCarlos Garnacho2016-01-281-13/+7
| | | | We can use seat grabs here.
* tests: Fix deprecation warnings in testinputCarlos Garnacho2016-01-281-4/+4
|
* Add a color editor testMatthias Clasen2016-01-233-0/+92
| | | | This tests using a color editor embedded in other ui.
* testnotebookdnd: Add an action widgetBenjamin Otte2016-01-111-3/+24
| | | | Just so we have some test that tests action widgets.
* Add foreigndrawing example to gtk3-demoMatthias Clasen2016-01-102-339/+0
| | | | | This makes it easier accessible and nicer to refer to from the documentation.
* wayland: prefer subsurface when possibleOlivier Fourdan2016-01-082-0/+69
| | | | | | | | | | | | Quite a few applications use GTK_WINDOW_POPUP to create various temporary windows and place then on screen. That works fine on X11 but on Wayland there is no global coordinate system for regular surfaces. If the application is using a gdk temp window and set a parent with gtk_window_transient_for(), the gdk wayland backend has all it needs to create a subsurface that can be placed at will by the application. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759738
* tests: Rework the way foreigndrawing worksMatthias Clasen2016-01-041-36/+124
| | | | | | | Instead of the weird PathElt struct, generate a quick-n-dirty parser that parses CSS selectors into GtkWidgetPath elements. Based on a patch by Benjamin Otte.
* testframe: Pass correct state to GtkStyleContext APITimm Bäder2016-01-021-5/+16
|
* Add more icon entry testsMatthias Clasen2015-12-181-0/+68
| | | | This test shows that changing icon types works.
* testdnd2: Add some verbositywip/matthiasc/dnd-animationMatthias Clasen2015-12-131-0/+21
| | | | | This makes it easier to see that we're missing some signals under Wayland.
* Add a drag-end callbackMatthias Clasen2015-12-111-0/+13
| | | | | This will be helpful in figuring out life-cycle issues with icon widgets.
* Add a dnd testcaseMatthias Clasen2015-12-112-0/+270
| | | | This has tests for drag images, widgets, hotspots.
* Add more examples to foreigndrawingMatthias Clasen2015-12-051-2/+73
| | | | Show how to draw checks and radios.
* wayland: fix testtooltipsOlivier Fourdan2015-12-041-0/+5
| | | | | | | | | | On Wayland, for tooltips to work as expected, the type hint must be set to tooltips, otherwise the popup window won't be translated as a subsurface. Fix the test do work as expected under Wayland. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759018
* tests: Rework some foreigndrawing codeBenjamin Otte2015-12-031-21/+18
| | | | | Instead of specifying the full path everytime, just specify the parent style context and then use its path.
* Simplify foreign drawing example a bitMatthias Clasen2015-12-031-21/+9
|
* Add a selected text exampleMatthias Clasen2015-12-021-0/+51
|
* Make foreign drawing example workMatthias Clasen2015-12-021-33/+53
| | | | Set up multiple style contexts to get inheritance right.
* Add another hand-drawn scrollbarMatthias Clasen2015-12-021-13/+15
| | | | This one is supposed to show up in active state, but doesn't.
* Add an example of foreign drawingMatthias Clasen2015-12-022-0/+125
| | | | | This uses the gtk_render apis with a style context constructed from a style path.
* testentryicons: update dnd exampleMatthias Clasen2015-11-301-8/+4
| | | | This code was #ifdefed out since 2008. Time to try it.
* testentryicons: Use an existing icon nameMatthias Clasen2015-11-301-1/+1
| | | | dialog-info is not an existing icon.
* Update testlevelbarMatthias Clasen2015-11-131-6/+4
| | | | | This test needs some small updates after the recent changes to levelbar styling.
* Add gtk_native_dialog_destroy()Alexander Larsson2015-11-111-1/+8
| | | | | | | Its very easy to get extra references to the NativeDialog so that when you release your last reference any visible dialog is not hidden. We handle this by adding a destroy method similar to how you destroy regular toplevels.
* Improve testlevelbarMatthias Clasen2015-11-101-18/+41
| | | | Add a switch to toggle between discrete and continuous modes.
* testgtk: Add native dialog testsAlexander Larsson2015-11-051-0/+357
|
* tests: Make stack expandBenjamin Otte2015-11-041-0/+1
| | | | | This is to test invisible children are actually resized before they are made visible (which they currrently are not.
* Add a more complex widget in the flipping assistantSébastien Granjoux2015-10-291-3/+8
| | | | | This reproduces the problem from bug https://bugzilla.gnome.org/show_bug.cgi?id=756385
* testassistant: Add another exampleMatthias Clasen2015-10-261-0/+88
| | | | | | This adds a test involving removing and re-adding pages, to help with https://bugzilla.gnome.org/show_bug.cgi?id=756385
* testgtk/Alpha Window: fix the drawn area when we are drawing decorationsOwen W. Taylor2015-10-221-0/+16
| | | | | | | | A GtkWindow's allocation includes the titlebar, borders, and shadows; we only want to draw our custom alpha content over the child allocation of the GtkWindow. https://bugzilla.gnome.org/show_bug.cgi?id=756886
* Allow testglarea to work with legacy GL contextsEmmanuele Bassi2015-10-071-4/+44
| | | | | | Use the 1.30 GLSL shading language for the fragment and vertex shaders. https://bugzilla.gnome.org/show_bug.cgi?id=756142
* gdkgears: Use a headerbarMatthias Clasen2015-09-291-1/+1
| | | | | This is a testcase for https://bugzilla.gnome.org/show_bug.cgi?id=755675
* testflowbox: Add an example with buttonsMatthias Clasen2015-08-261-1/+22
| | | | | | | This example populates a flow box with buttons, and makes the flow box children unfocusable, with the intention that the focus moves directly between the buttons. Currently, keynav does not work at all in this case.