summaryrefslogtreecommitdiff
path: root/testsuite/gtk
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Remove menu special-casingMatthias Clasen2019-12-292-16/+0
|
* testsuite: Remove menu testsMatthias Clasen2019-12-293-587/+0
| | | | Menus are going away.
* testsuite: Cosmetic changeMatthias Clasen2019-12-291-1/+0
|
* builder: Improve type name manglingMatthias Clasen2019-12-131-12/+20
| | | | | | | | | When looking for the get_type function for GThemedIcon, try both g_themed_icon_get_type and gthemed_icon_get_type The former is what gio has, the latter is still supported to avoid breaking gweather_location_get_type. Update tests to cover this new case.
* builder: Add GtkBuilderScopeBenjamin Otte2019-12-121-0/+5
| | | | | | | | | | | | | | | | | | | | | GtkBuilderScope is an interface that provides the scope that a builder instance operates in. It creates closures and resolves types. Language bindings are meant to use this interface to customize the behavior of builder files, in particular when instantiating templates. A default implementation for C is provided via GtkBuilderCScope (to keep with the awkward naming that glib uses for closures). It is derivable on purpose so that languages or extensions that extend C can use it. The reftest code in fact does derive GtkBuilderCScope for its own scope implementation that implements looking up symbols in modules. gtk-widget-factory was updated to use the new GtkBuilderCScope to add its custom callback symbols. So it does it different from gtk-demo, which uses the normal way of exporting symbols for dlsym() and thereby makes the 2 demos test the 2 ways GtkBuilder uses for looking up symbols.
* Fix treelistmodel testsMatthias Clasen2019-12-041-1/+1
| | | | | | They were failing to return a reference where they need to. This was uncovered by fixing an unrelated ref leak.
* Fix leaks in testsMatthias Clasen2019-12-046-6/+24
| | | | | | | | All the list model tests were leaking items, because g_list_model_get_item is transfer full. Fixing these unveils a crash in the treelistmodel and maplistmodel tests.
* Use a single compilation symbolEmmanuele Bassi2019-11-271-1/+1
| | | | | | | | | | | | We use a compilation symbol in our build to allow the inclusion of specific headers while building GTK, to avoid the need to include only the global header. Each namespace has its own compilation symbol because we used to have different libraries, and strict symbol visibility between libraries; now that we have a single library, and we can use private symbols across namespaces while building GTK, we should have a single compilation symbol, and simplify the build rules.
* builder: Connect signals automaticallyBenjamin Otte2019-11-221-5/+0
| | | | | | gtk_builder_connect_signals() is no longer necessary, because all the setup that made it necessary to have this extra step is now done automatically via the closure functions.
* builder: Remove user_data argument from gtk_builder_connect_signals()Benjamin Otte2019-11-221-5/+5
| | | | | | | | This is pretty unused and gets in the way of the next steps. A potential side effect is that for templates the widget was passed as the user data argument. If that turns out to be important, we have to special case that situation.
* testsuite: Print useful statement on notify test errorBenjamin Otte2019-11-221-13/+28
| | | | ... and don't instantly abort, test the rest of the properties, too.
* Privatize popover menu piecesMatthias Clasen2019-11-111-4/+0
| | | | | | Don't allow manual creation of popover menus anymore. This lets us also make GtkModelButton private
* text: add undo support to GtkTextChristian Hergert2019-11-051-0/+2
| | | | | | | | | This adds support using the GtkTextHistory helper for undo/redo to the GtkText widget. It is similar in use to GtkTextView, but with a simplified interface. You can disable undo support using the GtkText:enable-undo property. By default, it is enabled.
* gtk: Add GtkNoSelectionBenjamin Otte2019-10-153-0/+4
| | | | Allows not to have anything selected.
* singleselection: Fix model propertyBenjamin Otte2019-10-153-4/+8
| | | | | | | 1. Make the model property construct-only. Allowing to change the model has invalid side effects. 2. Add a getter for the model property.
* eventcontrollerkey: Change behavior of contains-focusBenjamin Otte2019-10-071-4/+4
| | | | | | contains-focus now returns TRUE when is-focus is TRUE instead of FALSE. Fixes #2184
* eventcontrollerkey: Add getters for the propertiesBenjamin Otte2019-10-071-28/+16
| | | | ...and use them.
* icontheme: Return a paintable from gtk_icon_info_load_iconTimm Bäder2019-09-091-4/+4
|
* icontheme: Return paintables from more APITimm Bäder2019-09-091-14/+15
|
* infobar: Inherit from GtkContainerTimm Bäder2019-09-091-18/+8
| | | | | | | infobars being a GtkBox doesn't make sense. Also implement infobars without exposing internal children. Closes #1957 because it adds the bottom border.
* Add builder tests for bind-source without bind-propertyMohammed Sadiq2019-08-101-4/+14
| | | | Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2080
* Remove new attributes from testsMatthias Clasen2019-07-281-2/+0
| | | | | Until we can depend on pango 1.44, these will fail in ci. Partially reverts f1c7803f800588e
* label: Parse new pango attributesMatthias Clasen2019-07-271-0/+2
| | | | | Support allow-breaks and show attributes. These will be in pango 1.44
* Change the few examples that use a full GTK_ enum value in .ui files.Robert Ancell2019-07-081-5/+5
| | | | Lowercase versions work just as well and are much more readable.
* Merge branch 'wip/ebassi/constraint-layout' into 'master'Matthias Clasen2019-07-022-0/+385
|\ | | | | | | | | | | | | Add constraint-based layout manager Closes #1090 See merge request GNOME/gtk!973
| * Use explicit values for constraint strengthEmmanuele Bassi2019-07-011-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of playing games with mapping negative symbolic values to positive ones, let's use the appropriate constants everywhere. This allows us to use: GTK_CONSTRAINT_STRENGTH_WEAK * 2 Or GTK_CONSTRAINT_STRENGTH_STRONG + 1 In code using the public API. We also store the strength values as integers, so we can compare them properly, and only turn them into doubles when they are inserted into the solver, just like every other variable.
| * Amend a constraint solver testMatthias Clasen2019-07-011-0/+12
| | | | | | | | | | | | | | Make the 'repeat edit' test make more than to suggestions in a single edit phase. It turns out that this does not work, whereas just doing two in a row does.
| * Add constraint solverEmmanuele Bassi2019-06-302-0/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GtkConstraintSolver is an implementation of the Cassowary constraint solving algorithm: http://constraints.cs.washington.edu/cassowary/ The Cassowary method allows to incrementally solve a tableau of linear equations, in the form of: x = y × coefficient + constant with different weights, or strengths, applied to each one. These equations can be used to describe constraints applied to a layout of UI elements, which allows layout managers using the Cassowary method to quickly, and efficiently, lay out widgets in complex relations between themselves and their parent container.
* | flattenlistmodeL: Compute items-changed position properlyBenjamin Otte2019-07-021-0/+39
|/ | | | | | | | The code previously forgot to include the left child of the model's node. Which of course only happened if that child wasn't NULL, which is a common case. Found and test provided by Matthias Clasen.
* Add another grid layout testMatthias Clasen2019-06-281-0/+113
| | | | | This one will be used for comparison with constraint layouts.
* Some more grid layout testsMatthias Clasen2019-06-281-21/+277
| | | | Add testcases for spanning children and homogeneity.
* Add a test for the grid layout managerMatthias Clasen2019-06-282-0/+313
| | | | | | Test some obvious conditions. This is mainly to test the waters for more intesting tests with other layout managers later.
* Add another action testMatthias Clasen2019-06-231-0/+26
| | | | Test that disabled actions aren't activated.
* Add another test for action inheritanceMatthias Clasen2019-06-221-1/+96
| | | | | This one checks for precedence between class actions and inserted groups.
* Add a test for action introspectionMatthias Clasen2019-06-221-0/+49
| | | | This checks that gtk_widget_query_action works.
* Add another test for action inheritanceMatthias Clasen2019-06-221-0/+58
| | | | | Check that overlapping prefixes are handled correctly.
* Add a test for GtkText actionsMatthias Clasen2019-06-211-0/+91
| | | | Check that the class actions are there and work.
* Add a test for gtk_widget_insert_action_groupMatthias Clasen2019-06-212-1/+113
| | | | | This tests that action group inheritance behaves as expected.
* Add a focus-chain test for focusable containersMatthias Clasen2019-06-114-0/+41
|
* testsuite: Be robust against broken focusMatthias Clasen2019-06-111-1/+10
| | | | | When we start cycling on a subset, abort after a while.
* testsuite: more focus-chain outputMatthias Clasen2019-06-116-2/+18
| | | | | | | | Differentiate between wrapping around and stopping at the end of the focus chain. Update the existing tests, and add two new ones where the difference matters.
* Add a focus chain testMatthias Clasen2019-06-115-0/+335
| | | | | | | | | | Add a test that enumerates the focus chain by emitting move-focus repeatedly, and compares the result to expected output. The test expects a ui file and a reference file as input. The reference file can be created using the --generate option.
* Expand focus testsMatthias Clasen2019-06-091-16/+34
|
* Move transform tests to the gsk suiteMatthias Clasen2019-06-032-294/+0
| | | | That is where they belong.
* tests: Fix issues with menu shellsMatthias Clasen2019-06-011-2/+2
| | | | | The menu shell is no longer the direct parent of menu items.
* Rename GtkGestureMultiPress to GtkGestureClickMatthias Clasen2019-05-291-1/+1
| | | | | The name just made it hard for people to find the right gesture to use.
* treeview column: Make finalMatthias Clasen2019-05-281-115/+0
|
* iconview: Make finalMatthias Clasen2019-05-281-116/+2
|
* Stop using gtk_widget_get_surfaceMatthias Clasen2019-05-281-6/+12
| | | | | Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
* testsuite: Fix popover-related failuresMatthias Clasen2019-05-281-0/+5
|