Matthias Clasen
a51a6a3ee2
Deprecate GtkColorChooser and implementations
...
These are being replaced by GtkColorDialog
and GtkColorDialogButton.
This commit only moves the headers for GtkColorChooserWidget
and GtkColorChooserDialog to deprecated/, and keeps the
implementations in gtk/, since they will eventually be
salvaged into a private GtkColorChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
aeacc8f3c5
Add GtkFontDialogButton
...
This is like GtkColorDialogButton, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
7d0ebe02db
Add GtkFontDialog
...
This is similar to GtkColorDialog, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
655675e6a1
Add GtkColorDialogButton
...
This is a new color button implementation
built around GtkColorDialog.
2022-10-29 13:02:15 -04:00
Matthias Clasen
cd4dbd67a2
testsuite: Skip known-broken tests
...
The tiff pixbuf tests fail because of known
issues with the pixbuf tiff loader. Skip them.
Fixes : #4615
2022-10-18 23:22:47 -04:00
Matthias Clasen
5a6eab05e9
testsuite: Fix tiff pixbuf tests
...
This test wasn't actually testing what it claims,
since that functionality is broken in gdk-pixbuf.
Test it anyway.
2022-10-18 23:21:28 -04:00
Matthias Clasen
ccaaff406f
testsuite: Ignore deprecations
...
Some of our tests use deprecated style context
apis. Ignore the deprecations for now.
2022-10-12 15:35:00 -04:00
Matthias Clasen
c32fed9238
testsuite: Ignore deprecations
...
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
2022-10-11 17:18:21 -04:00
Matthias Clasen
5e256590db
Deprecate treeviews and cell renderers
...
This includes
GtkCellArea
GtkCellAreaBox
GtkCellAreaContext
GtkCellEditable
GtkCellRenderer
GtkCellRendererAccel
GtkCellRendererCombo
GtkCellRendererPixbuf
GtkCellRendererProgress
GtkCellRendererSpin
GtkCellRendererSpinner
GtkCellRendererText
GtkCellRendererToggle
GtkCellView
GtkComboBox
GtkComboBoxText
GtkIconView
GtkListStore
GtkTreeModel
GtkTreeModelFilter
GtkTreeModelSort
GtkTreeStore
GtkTreeView
GtkTreeViewColumn
GtkTreeSelection
2022-10-11 17:18:21 -04:00
Matthias Clasen
7c5e1c6195
gtk: Rename some private headers
...
Improve the consistency of our private header
naming, by add 'private' to a bunch of them.
2022-10-05 23:01:28 -04:00
Matthias Clasen
7e9ca5b41d
Deprecate GtkEntryCompletion
...
We want to drop cell renderers and tree models
in GTK 5. The functionality of GtkEntryCompletion
may be replaced by a new widget in GTK 5.
2022-10-03 23:23:56 -04:00
Matthias Clasen
a527a4d82e
Deprecate the app chooser widgets
...
These are a family of pretty specialized widgets, and
are very rarely used. Instead of porting them away
from GtkTreeView and GtkComboBox, deprecate them.
2022-10-03 23:02:09 -04:00
Matthias Clasen
911abe2d2c
Fix expected test output
...
The major.minor version number shows up in the expected
output of this test, so it needs to be adjusted at the
beginning of every cycle.
2022-09-28 13:32:40 -04:00
Matthias Clasen
1e65d6640f
tests: Rewrite the icontheme tests
...
The lookup order tests were relying on out
debug spew using g_log, so they can redirect
the output by setting a log writer function.
Rewrite this to use g_test_subprocess() and
parse stderr.
2022-09-23 18:12:39 -04:00
Matthias Clasen
72d6241c84
Add a test for short compose sequences
...
Add a table that has a short sequence
to verify that we can parse this.
2022-09-12 22:30:47 -04:00
Matthias Clasen
aac3f1860f
Update test results
...
The table sizes change, even though none of our
test tables include short sequences.
2022-09-12 22:30:47 -04:00
Matthias Clasen
e8e69a1208
Make clipboard tests work with portals
...
This was not working right, since it hasn't been
tested with portals - there are no portals in ci.
2022-09-07 08:45:31 -04:00
Matthias Clasen
9cc1dcf2a4
4.8.0
2022-09-06 15:59:04 -04:00
Matthias Clasen
83bf193218
Add a test for treelistmodel row collapse
...
Test that we can expand and collapse a row, and then
add another child below it, without crashing.
Adapted from the testcase in #4595 .
This tests the fix in the previous commit.
2022-08-24 08:23:22 -04:00
Simon McVittie
3cfe04aa74
icontheme test: Assert that the subprocess passed
...
Noticed while backporting GLogWriterFunc fixes to 3.24.x (#5119 ).
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-08-20 19:38:29 +01:00
Marc-André Lureau
3585da6b7f
build-sys: fix linker warning on win32
...
[196/296] Linking target testsuite/gtk/builder.exe
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/../../../../x86_64-w64-mingw32/bin/ld: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-08-18 11:44:34 +04:00
Matthias Clasen
6c3119bc33
tests: Check the error first
...
The error contains useful information when
things fail, so check it first to get useful
output in case of failure.
2022-08-11 07:29:56 -04:00
Emmanuele Bassi
ba1a084899
Apply 1 suggestion(s) to 1 file(s)
2022-08-07 18:54:19 +00:00
Hannes Müller
703fc51d8e
build: fix for use with glib 2.66.0
...
Add missing #define g_memdup2() for gdksurface-broadway.c in case of enabled
broadway-backend as used otherwise.
Copy static would_drop() replacement for g_log_writer_default_would_drop()
from gtk-builder-tool.c to gtk-reftest.c
2022-08-06 21:11:08 +02:00
Emmanuele Bassi
6c37158bbc
Re-enable the TextBuffer wrap-mode serialization test
...
The private serialization function is now available on all platforms.
2022-08-04 23:39:54 +01:00
Emmanuele Bassi
d030c92d63
Move private function out of the AT-SPI a11y backend
...
The textbuffer test is calling into a function defined by the AT-SPI
accessibility backend. As of commit 4ddf1b70
we only build and run the
test on Linux, but the function in question isn't really
accessibility-related: it's just a serialization function.
2022-08-04 23:34:41 +01:00
Matthias Clasen
edf8c9e501
Merge branch 'matthiasc/for-main' into 'main'
...
css: Fix handling of transform values
See merge request GNOME/gtk!4890
2022-07-18 14:24:49 +00:00
Matthias Clasen
03f24bb5cf
css: Improve test coverage
...
Among other things, this includes a test for the fix
in the previous commit.
2022-07-18 07:08:01 -05:00
Matthias Clasen
eb1a2268bb
gtk: Improve test coverage
2022-07-18 07:08:01 -05:00
Matthias Clasen
64193ae706
sortlistmodel: Add more tests
2022-07-18 07:08:01 -05:00
Matthias Clasen
4682eb214a
filterlistmodel: Add more tests
2022-07-18 07:08:01 -05:00
Mat
89db59a40d
treepopover: Add support for scrolling
...
Add support for scrolling large tree popovers in a similar fashion to GtkPopoverMenu.
Fixes #3674
Fixes #4877
2022-07-18 00:44:28 +03:00
Matthias Clasen
d840e082e6
slicelistmodel: Improve a test
...
Make sure that replacements in the underlying model
don't affect the slice list model if they are outside
the slice window.
2022-07-17 06:32:15 -04:00
Matthias Clasen
2ed954d307
sortlistmodel: Add a test
...
Add a test to prove that additions and removals
in the underlying model show up as expected.
2022-07-17 06:22:55 -04:00
Matthias Clasen
7b815768e0
filterlistmodel: Add a test
...
Test that items added in the underlying model show
up in the filter model (if they pass the filter).
Test removals as well.
See #5050
2022-07-17 06:22:31 -04:00
Benjamin Otte
188cb49b44
Merge branch 'content-fit-reftests' into 'main'
...
reftests: Add content-fit picture tests
See merge request GNOME/gtk!4879
2022-07-16 16:06:57 +00:00
Marco Melorio
6da65b25b6
reftests: Add content-fit picture tests
2022-07-16 17:53:13 +02:00
Matthias Clasen
61a843e824
gdk: Improve test coverage
2022-07-16 09:43:46 -04:00
Matthias Clasen
882c805b53
gdk: Improve test coverage
2022-07-16 09:43:46 -04:00
Matthias Clasen
63c61340ac
Merge branch 'test-coverage' into 'main'
...
node-editor: Make the help more helpful
See merge request GNOME/gtk!4874
2022-07-15 22:34:02 +00:00
Marco Melorio
d8a73cbd03
picture: Add content-fit property
...
It allows to specify the resize mode of the paintable inside the
GtkPicture allocation. This also deprecates the keep-aspect-ratio
property.
Fixes #5027 .
2022-07-15 23:01:23 +02:00
Matthias Clasen
5064a8eac0
gsk: Improve test coverage
2022-07-15 16:41:05 -04:00
Matthias Clasen
42042e6811
Add some tests for GtkNoSelection
2022-07-15 15:46:06 -04:00
Matthias Clasen
f8f669b895
Add some tests for the listlistmodel
2022-07-15 15:46:06 -04:00
Matthias Clasen
fa1daf50a7
Add more maplistmodel tests
...
Add some tests for adding and removing items.
2022-07-14 17:04:02 -04:00
Matthias Clasen
b3ecc40cf1
testsuite: Fix up a few test for GtkStackPage changes
...
GtkStackPage objects can no longer be freely created.
Update our generic object tests to take that into
account.
2022-07-13 15:03:05 +01:00
Benjamin Otte
2d14372142
reftests: Add an inscription xalign RTL test
...
This checks mainly that we do the right thing wrt PangoAlignment
weirdness.
0.25 and 0.75 are set to 0.0 and 1.0 currently because of Pango
limitations (and no desire to manually move lines).
But if that were to be fixed, both the ref and the test should update in
the same way and things should just keep working.
2022-06-13 06:49:22 +02:00
Benjamin Otte
4927b6e625
reftests: Add inscription reftest for xalign
...
Compare with labels again.
2022-06-13 06:49:11 +02:00
Matthias Clasen
62984d091a
Merge branch 'wip/otte/inscription' into 'main'
...
More inscription work
See merge request GNOME/gtk!4808
2022-06-12 01:38:40 +00:00
Benjamin Otte
4c1fc4f5d7
reftests: Test inscription multiline overflow
2022-06-12 02:42:00 +02:00