Chun-wei Fan
5b9177f53b
testsuite/gsk/test-render-nodes.c: Include <stdlib.h>
...
This is so that the compiler won't complain about our use of exit()
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2017-10-25 00:50:21 +08:00
Timm Bäder
9f1716edaa
testsuite: Disable vulkan tests when vulkan isn't available
...
They are always going to fail in that case anyway.
2017-10-23 08:02:57 +02:00
Matthias Clasen
243bd4f0c8
gsk: Tweak cairo node apis
...
Rename the surface getter to peek, following other render
node getters, and make the surface-based constructor private,
since it is not something we want to encourage.
Update all callers.
2017-10-20 13:54:01 +02:00
Matthias Clasen
82e33823a9
Add a test for opacity render nodes
...
This test currently fails with the Vulkan renderer, despite
having its own reference image.
2017-10-18 23:45:43 +02:00
Matthias Clasen
a2aa128178
Fix tools test
2017-10-18 18:52:06 +02:00
Matthias Clasen
c54294e2e1
Add a forgotten file
2017-10-18 18:52:06 +02:00
Matthias Clasen
2f96592e80
Use the cairo renderer for gtk tests for now
...
We haven't tracked down yet why the window size tests
fail with Vulkan, so use cairo for now.
2017-10-18 17:30:20 +02:00
Matthias Clasen
4a22704d82
Fix test environments
2017-10-18 17:30:20 +02:00
Matthias Clasen
f8f94ab329
Install tools tests
...
At the same time, update the expected test output to match
the current tools output, and write diff and ref files in /tmp.
2017-10-18 17:30:20 +02:00
Matthias Clasen
896316a9d1
Install gtk tests
...
Some of these currently fail on my system.
2017-10-18 17:30:20 +02:00
Matthias Clasen
090832c6fa
redo the gdk installed tests
2017-10-18 17:30:20 +02:00
Matthias Clasen
b7098a0ebc
testsuite: be a bit more verbose
...
This may help tracking down some failures.
2017-10-18 17:30:20 +02:00
Matthias Clasen
389307eb2c
Install separate render node test for cairo and vulkan
...
The vulkan test currently fails.
2017-10-18 17:30:20 +02:00
Matthias Clasen
fb22f84059
testsuite: don't write into installed locations
...
Save the output of the render node tests in /tmp.
2017-10-18 17:30:20 +02:00
Matthias Clasen
4c64509b28
Install gdk tests
...
This was missing so far
2017-10-18 17:30:20 +02:00
Matthias Clasen
b0b0095cf8
Test suite cosmetics
...
Reshuffle things a bit more, sort the test files into subdirectories,
and shorten their names.
2017-10-18 17:30:20 +02:00
Matthias Clasen
68503c3e13
Add some backend-specific reference images for render nodes
2017-10-18 17:30:20 +02:00
Matthias Clasen
e9d47e9516
Run the gsk tests for both cairo and vulkan
...
The vulkan tests fail currently.
2017-10-18 17:30:20 +02:00
Matthias Clasen
abe7d8a846
More testsuite cosmetics
...
Unify the test naming some more.
2017-10-18 17:30:20 +02:00
Matthias Clasen
3166dc45e8
Fix the a11y test
2017-10-18 17:30:20 +02:00
Matthias Clasen
cd87b02103
Update expected output of statusbar a11y test
2017-10-18 17:30:20 +02:00
Matthias Clasen
50c8221058
testsuite: Add missing files
2017-10-18 17:30:20 +02:00
Matthias Clasen
2a71a4382a
testsuite: Use the cairo renderer for now
2017-10-18 17:30:20 +02:00
Matthias Clasen
8b63b180d3
Distribute all test files
2017-10-18 17:30:20 +02:00
Matthias Clasen
91497348bf
Update all css parser tests
...
I have not tracked down in detail where all these changes originate,
this commit just gets things back to working again.
2017-10-18 17:30:20 +02:00
Matthias Clasen
6b2eafe1bb
Drop widget style property test
2017-10-18 17:30:20 +02:00
Matthias Clasen
5824d8b5ee
Stop testing deprecated css features
2017-10-18 17:30:20 +02:00
Carlos Garnacho
06b21b4bec
testsuite: Make all gesture test touches happen in the middle of the window
...
The event coordinates are (so far) irrelevant to what we are testing here,
just make all events happen in the middle of the window in order to ensure
all widgets receive it. More importantly, avoid using fixed pixel distances,
since we don't get guarantees about window sizes.
Fixes the gestures testsuite on X11.
2017-10-12 18:32:27 +02:00
Timm Bäder
54ed2d1e63
testsuite: Updated expected GtkSwitch nodes
...
The slider comes last now.
2017-10-12 16:09:31 +02:00
Carlos Garnacho
40a2b91a6c
testsuite: Update gestures test to pointer emulation removal
...
Now all widgets are mandated to handle the real thing, which means no
pointer events are emulated for the pointer emulating touch. The output
of these tests relied on this fact, so update to the tests handling real
touch events.
2017-10-12 14:47:15 +02:00
Carlos Garnacho
ff31bdd334
testsuite: Fix gesture test inconsistencies due to legacy event handling
...
Legacy GtkWidget vmethods are now handled on an event controller, which
due to being the very first controller added to every widget, runs in
a different order than the previously hardcoded.
Probably testing legacy events is not really futurible, specially after
we stop installing this legacy controller by default. I'll leave the
choice to remove these specific tests for later though.
2017-10-12 14:47:15 +02:00
Matthias Clasen
cb19bbba0c
Update the css style test
...
The new font-variant support affected the output here.
2017-10-12 17:23:35 +08:00
Matthias Clasen
18519a7ca0
Make css node and style tests run
...
Just like the previous commit, we need to set G_TEST_SRCDIR.
2017-10-12 16:06:03 +08:00
Matthias Clasen
37f1d180c3
Make css parser tests run
...
We need to set G_TEST_SRCDIR and friends for this to do anything.
Setting it reveals that a bunch of the tests are broken.
2017-10-12 15:58:05 +08:00
Matthias Clasen
9ea8235cc7
Update some a11y tests
2017-10-11 20:09:21 -05:00
Matthias Clasen
f09b5a8953
Fix a typo
2017-10-11 19:59:07 -05:00
Matthias Clasen
eb71cd195a
testsuite: cosmetics
...
Put all tests in a suite, and order them in a nicer way.
This makes the test output look better.
2017-10-11 19:33:43 -05:00
Matthias Clasen
a4deb7e7b4
Reshuffle the css tests a bit
2017-10-10 00:18:21 -04:00
Matthias Clasen
8c41365437
Reshuffle the a11y tests a bit
2017-10-10 00:16:31 -04:00
Matthias Clasen
a45e497fdf
Install css api test again
2017-10-09 23:35:19 -04:00
Matthias Clasen
a2ee124d99
Install css style tests again
...
Reinstate the installed tests for css style.
2017-10-09 23:32:13 -04:00
Matthias Clasen
6c294e6804
Install css parser tests again
...
Reinstate the installed tests for the css parser.
2017-10-09 23:29:10 -04:00
Matthias Clasen
e5aa2021a0
Install css node tests again
...
Reinstate the installed tests for css nodes.
2017-10-09 23:24:23 -04:00
Matthias Clasen
49ab093f26
Add a transform node reftest
2017-10-08 23:19:35 -04:00
Matthias Clasen
4db1a7541a
Add another cross-fade reftest
2017-10-08 22:45:05 -04:00
Matthias Clasen
e3f5a8bd47
Regenerate blendmodes reftest
2017-10-08 21:13:43 -04:00
Matthias Clasen
cd4892c50a
Stop using gsk_cairo_node_new_for_surface
...
Best to avoid handling the surface ourselves.
2017-10-08 20:05:16 -04:00
Matthias Clasen
6e5ded8492
Add another blendmodes reftest
...
This tests all blendmodes. Again, the Vulkan renderer fails.
2017-10-08 19:58:09 -04:00
Matthias Clasen
87aaa5685b
Add a cross-fade node ref test
...
The Vulkan renderer doesn't pass this one either, currently.
2017-10-08 14:36:35 -04:00
Matthias Clasen
eacdeec29e
Add a blendmode node reftest
...
The Vulkan renderer doesn't pass this, currently.
2017-10-08 14:29:27 -04:00
Matthias Clasen
8dc48d0322
Expand the repeat node test
...
Still not exhaustive, but enough to find some issues.
2017-10-08 13:50:41 -04:00
Matthias Clasen
1fe4e12356
Add a repeat node test
2017-10-08 12:23:18 -04:00
Matthias Clasen
df549c4e9f
Add a basic cairo node test
2017-10-08 12:21:45 -04:00
Matthias Clasen
95f29de710
Allow backend-specific reference images
...
This is not ideal, but lets us deal with differences for now.
2017-10-08 12:21:36 -04:00
Matthias Clasen
8beb78149d
Start reftests for gsk
...
Add a framework similar to what we have for gtk reftests
that lets us drop in a function to generate render nodes,
and compare reference output.
2017-10-02 00:21:56 -04:00
Timm Bäder
c8c39af454
testsuite: Add test case for previous commit
...
This previously led to a loop in the child widgets.
2017-09-29 12:16:06 +02:00
Timm Bäder
18837248a6
build: Add widgetorder unit test to build system
2017-09-29 12:10:42 +02:00
Debarshi Ray
60cee7339f
GtkBuilder: Enforce "class" as a mandatory attribute for <object>
...
https://bugzilla.gnome.org/show_bug.cgi?id=786931
2017-09-25 15:26:34 +02:00
Matthias Clasen
b350db58e0
testsuite: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Chun-wei Fan
60297b9fc7
testsuite: Fix builder test on Windows/MSVC
...
Visual Studio does not support things like -Wl,export-dynamic, so we
need to export those symbols by using __declspec(dllexport). So, we
decorate these with macros which we define accordingly for this purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=785210
2017-09-15 21:41:15 +08:00
Debarshi Ray
fd9aec27fc
GtkBuilder: Prefer "type-func" over "class" when looking for the GType
...
https://bugzilla.gnome.org/show_bug.cgi?id=786932
2017-08-29 15:41:01 +02:00
Timm Bäder
4fbe313cbc
build: Remove wrong kwargs from a11y test()s
...
test() does not take install: or install_dir: kwargs.
2017-08-15 14:56:13 +02:00
Emmanuele Bassi
391d1a04ec
Drop Autotools build
...
We are officially switching to Meson as the default build system for
GTK+.
2017-08-14 22:23:09 +01:00
Benjamin Otte
77c9ef1b7b
testsuite: Don't use GtkEventBox in gestures test
2017-08-02 16:58:17 +01:00
Benjamin Otte
b6efd89225
testsuite: Remove GtkEventBox from a11y test
2017-08-02 16:47:39 +01:00
Benjamin Otte
9ec22d6652
reftests: Always wait for rendering to settle
...
We wait for a few 100ms for rendering to settle in various WMs. So far
we only did that for windows that were controlled by the WM (aka
toplevels).
With modern compositing gnome-shell however, this now also applies to
override-redirect windows, so we now wait there, too.
This makes the reftests a lot slower, but they now actually work when
running make check in gnome-shell.
2017-08-02 11:34:57 +01:00
Benjamin Otte
64b7308328
reftests: Remove event box usage
2017-08-02 11:34:57 +01:00
Benjamin Otte
bb238894dc
testuite: Remove EventBox from builder test
2017-08-02 11:34:57 +01:00
Chun-wei Fan
171ff43340
tests: Include system headers appropriately
...
Don't include unistd.h on Windows, and include the appropriate headers on
Windows as necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2017-07-21 23:36:03 +08:00
Timm Bäder
348871d9fc
Fix a few testsuite failures
...
Adjust default property values, skip GtkRange:adjustment.
2017-07-19 21:27:16 -04:00
Timm Bäder
271749d4a6
testsuite: Update expected css node output
2017-07-19 21:27:14 -04:00
Timm Bäder
b497b066b0
cssprovider test: Remove style property test case
...
It's getting harder and harder to find a dummy style property to use
here, so remove the test case since style properties should be going
away soon anyway.
2017-07-19 21:27:14 -04:00
Timm Bäder
ec1984bd93
revealer: Request child size for NONE transition type
...
Previously, we would request a size of 0×0 when the transition type was
NONE and the child un-revealed, making the revealer in this case a
gtk_widget_set_visible replacement. Instead, to the exact same thing we
do in the CROSSFADE case and request the child size instead. This also
keeps the revealer from under allocating the child when the transition
type is set to NONE.
2017-07-19 21:27:13 -04:00
Timm Bäder
3babd184c0
scale: Fix css node ordering and expected results
...
Add :dir(ltr) where expected, i.e. everywhere we now have a widget but
had a gadget before.
Also, fix the expected output to expect mark subnodes in the order
specified in the GtkScale does, i.e.
├── mark
├── [label]
╰── indicator
for marks at the top of the scale and
├── mark
├── indicator
╰── [label]
For marks at the bottom of the scale.
2017-07-19 21:27:13 -04:00
Timm Bäder
fe9833a2f8
css nodes: Fix expander test case
...
Vertical box subnode.
2017-07-19 21:27:13 -04:00
Timm Bäder
f4bfb0a07a
css nodes: Fix entries test case
...
Spinbuttons now have a subnode box and the undershoot nodes belong to
the entry node.
2017-07-19 21:27:13 -04:00
Matthias Clasen
f0f5c67c9d
a11y tests: Update expected results
...
The license urls in the about dialog changed.
2017-07-19 15:46:32 -04:00
Carlos Garnacho
b151b1ba9e
testsuite: Adjust gestures tests to gtk4 event delivery
...
Events that get to gtk_main_do_event() have the toplevel GdkWindow
as event->any.window. Also, ensure that coordinates fall within
sensible places of the windows, since those might have shadows,
headerbars and whatnot on wayland.
2017-07-19 21:05:19 +02:00
Matthias Clasen
ca098bb42a
Update a11y test output
2017-05-22 21:42:18 -04:00
Daniel Boles
9546673d33
testsuite/scrolledwindow: Try non-overlay/non-auto
...
It was only testing the default configuration, where overlay scrolling
is on and both scrollbars use POLICY_AUTOMATIC. We should also test the
other 3 configurations that are available by including non-overlay
scrollbars and/or those that use POLICY_ALWAYS.
https://bugzilla.gnome.org/show_bug.cgi?id=778853
2017-05-10 22:29:01 +01:00
Daniel Boles
91f2a310ab
testsuite/gtk/scrolledwindow: Fix a copy-paste-o
...
It measured horizontal size when it needs height, making the test fail.
2017-05-10 19:12:16 +01:00
Emmanuele Bassi
0226163269
meson: Build the reftests suite
...
It does not pass, but at least we can check it.
2017-05-10 11:37:40 +01:00
Emmanuele Bassi
29bc0b1911
meson: Use libexecdir option
2017-05-10 11:37:40 +01:00
Timm Bäder
3d21128dbb
Remove gtk_widget_get_preferred_*
...
They are unnecessary now that we have gtk_widget_measure.
2017-05-05 11:18:25 +02:00
Emmanuele Bassi
fb6f9e10da
build: Use appropriate linker flag for the builder test
...
The `-export-dynamic` flag is a libtool-specific flag; since we're not
using libtool with Meson, we should instruct the C compiler to use the
appropriate linker flag instead.
2017-05-03 16:11:17 +01:00
Emmanuele Bassi
bc0a08eced
testsuite: Remove unused function
...
Silence a compiler warning.
2017-05-03 15:21:20 +01:00
Emmanuele Bassi
3ba514d31f
build: Port the a11y test suite to Meson
...
Copy the location of the test data and binaries from the autotools
build, even though it's not really correct; currently we install the
test data under libexecdir, but it should live under datadir, and we
should use `G_TEST_DIST` to figure it out.
The `state` subdirectory is missing.
2017-05-03 15:15:17 +01:00
Emmanuele Bassi
a54b6be606
build: Add common settings for tests
...
We are going to reuse them in the various parts of the test suite.
2017-05-03 15:10:58 +01:00
Tim-Philipp Müller
7cbf92505c
meson: testsuites: tools: add meson build
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
b95a5678f4
meson: testsuite: reftests: add build defs, but needs more work
...
Not sure how these are supposed to work yet, we can specify
arguments for running the tests uninstalled as well with test(),
if that helps in any way.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
bffbc6e1b9
meson: testsuite: gdk: use array for test definitions
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
9bc24bf4d9
meson: testsuite: gtk: sync with Makefile and add some missing bits
...
Also use an array. A few tests fail, needs investigation.
2017-05-03 15:10:55 +01:00
Tim-Philipp Müller
f67a9d58db
meson: make sure gsk/gdk generated headers exist for libgtk_dep users
...
Add back dependencies on libgdk_dep and libsk_dep which are declared
dependencies. We removed this before because these declarations had
link_with: lines that dragged in the static libgdk.a and libgsk.a libs
which are linked into libgtk-4.so anyway and thus shouldn't be used
when linking internal exes/tools against libgtk-4. Remove the static
libs from the declared dependencies and have libgtk link those in
explicitly, so that the declared deps now just provide all the built
dependencies and include dirs and such for declared libgtk_dep users
such as the internal exes/tools, which want all the generated gsk/gdk/gtk
headers to exist before attempting to compile anything against the
gtk+ headers.
2017-05-03 15:10:54 +01:00
Tim-Philipp Müller
e675675b78
meson: testsuite: gdk: need to dep on gtk
...
Almost all of these tests include gtk/gtk.h so we need
to dep on libgtk not just libgdk. Otherwise compilation
fails because graphene.h include can't be found.
2017-05-03 15:10:52 +01:00
Timm Bäder
4fcca9945f
meson: update build files
2017-05-03 15:10:52 +01:00
Timm Bäder
409ed21594
meson: Sort input files by name
2017-05-03 15:10:52 +01:00
Timm Bäder
092f6d5c43
meson: Install libgtk and libgdk
2017-05-03 15:10:52 +01:00
Timm Bäder
082cf3553d
meson: Build gtk marshallers
...
And fix libgtk_dep/libgdk_dep to link_with the shared lib
2017-05-03 15:10:50 +01:00
Timm Bäder
1e8a606403
meson: Add unit test files
2017-05-03 15:10:50 +01:00
Emmanuele Bassi
98b1075764
gdk: Remove GdkX11DisplayManager from the build
...
We don't instantiate it, and we don't use it any more.
2017-05-03 14:15:57 +01:00
Matthias Clasen
92b0d2e8ea
Remove GtkWindow::hide-titlebar-when-maximized
...
This was only every implemented under X11, and with CSD,
this is clearly in the application realm. We should not
pretend that we can support it on the toolkit level.
https://bugzilla.gnome.org/show_bug.cgi?id=775061
2017-05-01 13:26:46 -04:00
Timm Bäder
57b8a136bf
reftests: Remove reference to deleted files
2017-04-25 20:55:56 +02:00
Timm Bäder
db4b1d28f5
label: Remove angle property
2017-04-25 20:30:37 +02:00
Timm Bäder
ec1e063cb2
testsuite: Add widget ordering test case
2017-04-25 20:30:37 +02:00
Timm Bäder
fb927d1993
box: Remove center child
2017-04-25 20:30:37 +02:00
Timm Bäder
c92b7d4224
box: Remove fill child property
...
GtkWidget:halign and GtkWidget:valign are sufficient
2017-04-25 20:30:37 +02:00
Timm Bäder
5729ea7744
box: Remove expand child property
...
GtkWidget already has hexpand/vexpand properties.
2017-04-25 20:30:37 +02:00
Timm Bäder
8f4c0bea65
expander: Use widgets for title box and arrow
2017-04-25 20:30:36 +02:00
Matthias Clasen
99ae996a71
reftests: Remove a test using -gtk-gradient
...
No longer available.
2017-03-31 14:04:59 -04:00
Matthias Clasen
8ced9f8fd6
a11y tests: Update test results
...
Most of the changes here are due to visibility.
2017-03-31 14:04:59 -04:00
Matthias Clasen
0f4a31edae
css style tests: Update expected results for gradient tests
...
This is the same as the previous commit.
2017-03-31 14:04:58 -04:00
Matthias Clasen
52b7a96bec
css parser tests: Fix radial gradient test results
...
This changed in commit 2a5a94b260
.
2017-03-31 12:50:14 -04:00
Matthias Clasen
19f6df0c5e
css parser tests: Fix up the pseudo class test
...
We don't recognize non-standard names anymore.
2017-03-31 12:48:06 -04:00
Matthias Clasen
55a1587f55
css parser tests: Update border image test results
...
We lost the ability to dump some images.
2017-03-31 12:48:05 -04:00
Matthias Clasen
7d7b45cac0
css parser tests: Drop tests for -gtk-gradient
...
No longer needed.
2017-03-31 12:48:05 -04:00
Matthias Clasen
7f08336108
css parser tests: Update background-image test results
...
We lost the ability to dump some kinds of images.
2017-03-31 12:48:05 -04:00
Matthias Clasen
215f1b9e96
css parser tests: Fix integer test results
...
Many of the deprecation have been removed here.
2017-03-31 12:48:05 -04:00
Matthias Clasen
b2f90e0e3b
css parser tests: Fix background-blend-mode test
...
The css spec calls it 'saturation', not 'saturate'.
2017-03-31 12:48:05 -04:00
Matthias Clasen
ef0956f810
css tests: Update progressbar test results
...
This was a documented change that has not been reflected
in the tests yet.
2017-03-31 12:48:05 -04:00
Matthias Clasen
bdc607bbd9
css tests: Update entry test results
...
Just visibility changes here.
2017-03-31 12:48:05 -04:00
Matthias Clasen
ca0a291e5f
css nodes: Update the combobox test results
...
Some changes in the details here; we removed an old widget name.
2017-03-31 12:48:05 -04:00
Matthias Clasen
0934052618
css tests: Update the GtkSwitch node tests
...
The node hierarchy for GtkSwitch has changed.
2017-03-31 12:48:05 -04:00
Timm Bäder
b6790b112f
tests/revealer-size: Use gtk_widget_measure
2017-03-05 09:24:41 +01:00
Timm Bäder
7f79c36cb7
testsuite: Remove :sorted usage
...
Not valid CSS anymore.
2017-03-05 09:24:41 +01:00
Daniel Boles
449a17b56d
Revert "testsuite/scrolledwindow—Test non-overlay/non-auto"
...
This reverts commit 5a6e6689ec
.
Reverting until I can be sure gtkscrolledwindow.c does the right thing.
https://bugzilla.gnome.org/show_bug.cgi?id=778853
2017-02-22 19:31:57 +00:00
djb
5a6e6689ec
testsuite/scrolledwindow—Test non-overlay/non-auto
...
It was only testing the default configuration where overlay-scrolling is
TRUE and the policy is POLICY_AUTOMATIC. We should also test FALSE and
POLICY_ALWAYS. This commit adds those tests and makes the !overlay &&
POLICY_ALWAYS case pass by excluding the size of the relevant scrollbar,
as we are only interested in whether the content size is as requested.
https://bugzilla.gnome.org/show_bug.cgi?id=778853
2017-02-19 17:03:44 +00:00
Daniel Boles
397bced61b
testsuite/gtk/textiter: Add missing assertion
...
gboolean ret for whether gtk_text_iter_backward_line() moved the iter
was declared but not used anywhere. I presume it was meant to be
checked, and it passes now, so let’s do it.
2017-02-18 20:20:34 +00:00
Daniel Boles
75b0431dcf
Revert "testsuite/gtk/textiter: Remove an unused variable"
...
This reverts commit 8bddf52b51
.
2017-02-18 20:20:21 +00:00
Daniel Boles
8bddf52b51
testsuite/gtk/textiter: Remove an unused variable
2017-02-18 19:37:50 +00:00
Nelson Benítez León
aa48399002
textiter: fix bug in gtk_text_iter_backward_line()
...
gtk_text_iter_backward_line() checks the value of
real->line_char_offset without previously calling
ensure_char_offsets (real) to make sure the former
is up-to-date.
As a consequence of this, when gtk_text_iter_backward_line()
is called after a gtk_text_buffer_insert_range() in the
first line of buffer, the iter is not moved to the start of
the line, and the return value is wrong.
Fixed by adding the ensure_char_offsets() call.
A test case for this bug is added to the textiter gtk testsuite.
2017-02-17 19:49:55 +05:00
Daniel Boles
439fcf7578
combobox: Remove property cell-area
...
The CellArea is going to become a pure implementation detail & be moved
to the .ui, instead of letting users mess with it (if anyone ever did).
2017-01-21 21:34:45 +00:00
Timm Bäder
ea897c6df4
Remove gtk_widget_show_all
2017-01-20 21:37:04 +01:00
Matthias Clasen
2c7e567f05
Update callers
...
Adapt all our tests and examples to the new initialization api.
2017-01-19 13:50:17 -05:00
Benjamin Otte
e5e5beafa5
cssimage: Fallback images have no aspect ratio
...
The aspect ratio for fallback image was incorrectly set to 1.
Reftest is included.
2017-01-13 03:38:36 +01:00
Benjamin Otte
a06b1ea1ba
cssimage: Scale images to contain, not cover
...
Images with just an aspect ratio, but without a size, should be scaled
to be fully visible in the given area.
But we scaled them to completely cover the given area, which made them
partially invisible.
Reftest included.
2017-01-13 03:38:36 +01:00
Benjamin Otte
9616df9292
reftests: Fix test
...
No, GtkActions don't need to be part of this test.
2017-01-13 03:38:36 +01:00
Timm Bäder
ad8acdcebf
testsuite/cssprovider: Use actual existing style property
...
All the style properties in GtkTreeView are gone, so use one from
GtkScrollbar for now.
2017-01-08 13:10:43 +01:00
Timm Bäder
f00ccd3259
testsuite/builder: Use g_assert_no_error to check GError
...
So we get a proper error message.
2017-01-08 12:02:48 +01:00
Timm Bäder
3698f664b2
testsuite: Stop testing style properties
2017-01-07 17:19:30 +01:00
Benjamin Otte
5b33127692
gtk: Replace -gtk-icon-effect with -gtk-icon-filter
...
Instead of
-gtk-icon-effect: dim;
-gtk-icon-effect: hilight;
we now use
-gtk-icon-filter: opacity(0.5);
-gtk-icon-filter: brightness(1.2);
respectively.
2016-12-31 02:49:47 +01:00
Benjamin Otte
1b553478f6
cssimageradial: Handle "partial" gradients correctly
...
When the first/last color stop is not at 0%/100%, we need to start the
repeating at their offsets and not at 0%/100%.
Attached reftest demonstrates the problem.
2016-12-20 18:01:12 +01:00
Benjamin Otte
dd1cf1ac0f
css: An opaque background does not allow omitting push_group
...
When the background-clip of the background is smaller than the
background-clip of blended images, not pushing a group is wrong.
Test testing exactly that included.
2016-12-20 18:01:10 +01:00
Matthias Clasen
c4fd5bc233
Add a css parser test for border-spacing
2016-12-10 20:41:07 -05:00
Matthias Clasen
b1f2e3b581
Remove -gtk-gradient from css parser tests
...
It is not supported anymore.
2016-12-10 20:40:48 -05:00
Benjamin Otte
196737a958
reftest: Make screenshot code work without GDK
...
GDK does not support taking images of GDK windows.
2016-11-20 11:20:34 +01:00
Benjamin Otte
dfd9150a82
build: Don't link against libgtk and libgdk
...
libgdk is statically linked these days, so if you link against it, all
of its symbols will exist twice: Once in libgtk.so and once in your
binary.
2016-11-20 11:19:32 +01:00
Matthias Clasen
b404ecf294
Drop deprecated gtk_dialog_get_action_area
...
Add an internal version for the few places where we still need it,
and drop it from everywhere else.
2016-11-19 21:23:17 -05:00
Benjamin Otte
cd8d84beb6
testsuite: Don't use draw signal, use a drawing area instead
2016-11-18 06:40:53 +01:00
Benjamin Otte
46b9b07a11
reftests: Add reftest for the last 2 fixes
...
Makes sure that the clipping we do when pushing a group is at the
correct place and in particular doesn't influence shadows.
2016-11-08 02:32:39 +01:00
Benjamin Otte
24d0baec38
API: gdk: Add gdk_window_new_popup()
...
... and use it.
2016-11-06 23:47:56 +01:00
Benjamin Otte
4585af5719
gdk: Remove visual APIs from GdkScreen
...
gdk_screen_list_visuals(), gdk_screen_get_system_visual() and
gdk_screen_get_rgba_visual() are gone now.
2016-11-04 00:02:37 +01:00
Timm Bäder
3ae14630a3
tests: Don't add wigets to a GtkInvisible
...
It's not a GtkContainer.
2016-10-31 12:20:41 +01:00
Benjamin Otte
45c0379f87
API: gdk: Remove visual querying APIs
...
They are unused, only work on the default display anyway and visuals are
on their way out.
2016-10-28 05:22:50 +02:00
Alexander Larsson
723b588b5d
Make gdk.la and gsk.la a noninst helper library
...
This merged gtk, gdk and gsk into one library, making it possible to
have internal private APIs between gtk them, as well as producing more
efficient code.
https://bugzilla.gnome.org/show_bug.cgi?id=773100
2016-10-26 16:34:15 +02:00
Alexander Larsson
70935f0952
Drop support for offscreen GdkWindows
...
These complicate a lot of GdkWindow internals to implement features
that not a lot of apps use, and will be better achieved using gsk.
So, we just drop it all.
2016-10-25 09:54:37 +02:00
Rico Tzschichholz
502e63eddc
stylecontext: Remove deprecated API
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
2273f5d28e
iconset: Remove stray references
2016-10-23 11:12:13 +02:00
Timm Bäder
f8eaadb32e
testsuite: Update buttons.nodes
...
We don't create a box anymore here.
2016-10-20 17:09:47 +02:00
Emmanuele Bassi
59af3a0c15
build: Enable subdir-objects
...
Newer versions of Automake warn about forward compatibility when the
build uses sources in sub-directories without the subdir-objects option.
Both GTK+ and GDK have an almost-but-not-quite non-recursive Automake
layout, with sources in sub-directories contributing to the build of a
top-level object.
In theory, just adding subdir-objects to AM_INIT_AUTOMAKE would be
enough, but the test suite references sources in a different top-level
in order to build tests that verify the implementation of private data
structures. This is not really allowed when using subdir-objects and out
of srcdir builds. In order to fix this case, we require some ad hoc
rules to create symbolic links in the appropriate build directory.
2016-10-19 15:26:24 +01:00
Emmanuele Bassi
d519e4aafe
gsk: Initial commit / build environment
2016-10-18 11:29:34 +01:00
Matthias Clasen
dfb45f4396
Add a test for cursor names
...
This tests both that all standard cusor yield a cursor, and that
unknown cursor names yield NULL.
2016-10-17 19:11:32 -04:00
Timm Bäder
4384628afb
Remove GtkAction
2016-10-18 00:34:41 +02:00
Timm Bäder
ead36206a3
Remove GtkActionGroup
2016-10-18 00:34:41 +02:00
Timm Bäder
1bb3501ef7
Fix unittests
2016-10-18 00:34:41 +02:00
Timm Bäder
8245374f9c
tests/testylecontext: Don't double-free widgetpath
2016-10-18 00:34:41 +02:00
Timm Bäder
f7d22fec7b
Remove GtkRecentAction
2016-10-18 00:34:41 +02:00
Timm Bäder
d963ede668
Remove GtkUIManager
2016-10-18 00:34:41 +02:00
Timm Bäder
62b2949fa2
Remove GtkActivatable
2016-10-18 00:34:41 +02:00
Timm Bäder
41f5d3b14c
Remove GtkToggleAction
2016-10-18 00:34:40 +02:00
Timm Bäder
53ab8eb46d
Remove GtkRadioAction
2016-10-18 00:34:40 +02:00
Timm Bäder
dece018994
Remove GtkAlignment
2016-10-18 00:29:19 +02:00
Timm Bäder
3ad624d6c0
adjustment: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
37c728be12
testsuite/gtk: Use a GtkMenuButton to test exposing objects
2016-10-18 00:29:19 +02:00
Timm Bäder
d844abe066
Remove GtkTable
2016-10-18 00:29:18 +02:00
Benjamin Otte
4322b69528
cssprovider: Return void, not TRUE
...
Parsing a css file always succeeds as CSS can recover from parsing
errors.
2016-10-17 17:41:03 +02:00
Benjamin Otte
dbeeaf7de6
cssprovider: Remove GError out argument from load functions
...
People should use the GtkCssProvider::parsing-error signal instead.
2016-10-17 16:52:05 +02:00
Benjamin Otte
cda617df4d
API: sizegroup: Remove gtk_size_group_set_ignore_hidden()
2016-10-16 18:18:58 +02:00
Benjamin Otte
1d4f23da8e
API: container: Remove GtkContainer::child property
2016-10-16 18:18:58 +02:00
Benjamin Otte
4df6ddad54
API: container: Remove gtk_container_set_border_width()
2016-10-16 18:18:58 +02:00
Benjamin Otte
1518fe0a8f
API: stylecontext: Remove state argument from getters
...
The argument must always be the current state.
2016-10-16 18:18:58 +02:00
Benjamin Otte
9b9b475f0a
API: stylecontext: Remove regions
2016-10-16 18:17:21 +02:00
Timm Bäder
f2c455fedb
Remove GtkThemingEngine
...
As well as the corresponding GtkCssEngineValue used to parse it in css.
2016-10-16 18:17:21 +02:00
Timm Bäder
9f930c08a6
ui: Don't unnecessarily set GtkEntry:invisible-char
2016-10-16 18:17:21 +02:00
Timm Bäder
ed184b3935
Remove GtkIconFactory
...
Move the icon size lookup API into gtkicontheme.c
2016-10-16 18:17:21 +02:00
Timm Bäder
9fd1a1bbe3
widget: Remove cursor-aspect-ratio/window-dragging style properties
...
And replaces its usages in GtkTextView/GtkStyleContext with a hard-coded
0.04 which was the default value for cursor-aspect-ratio. Also remove
the public gtk_draw_insertion_cursor which used draw_insertion_cursor
which in turn looked up cursor-aspect-ratio
2016-10-16 18:17:21 +02:00
Timm Bäder
878f2e4107
widget: Remove deprecated margin-left/right properties
2016-10-16 18:17:21 +02:00
Timm Bäder
96d9abded8
widget: Remove deprecated style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
040db1efcd
Remove some deprecated GdkColor style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
134556435d
Remove various deprecated GtkOrientable subclasses
2016-10-16 18:17:21 +02:00
Timm Bäder
d06d17b81e
Remove gtkcolorsel(dialog).{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
9cfbaf4916
Remove gtkfontsel.{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
2acc31b46a
Remove GtkHandleBox
2016-10-16 18:17:21 +02:00
Timm Bäder
155fa4664d
Remove GtkImageMenuItem
2016-10-16 18:17:21 +02:00
Timm Bäder
8a3595236d
reftests: Remove GtkMisc tests
2016-10-16 18:17:21 +02:00
Timm Bäder
5d3a5ffdfb
Fix a few css/a11y test cases
...
They were broken because of missing -icon-stock properties in GtkEntry
and GtkButton not creating an adjustment child anymore.
2016-10-16 18:17:21 +02:00
Timm Bäder
7088d9d294
reftests: Remove celldenderer-pixbuf-stock
...
The stock properties tested here don't exist anymore.
2016-10-16 18:17:21 +02:00
Timm Bäder
367f13a76f
Remove GtkArrow
2016-10-16 18:17:21 +02:00
Timm Bäder
ad155fb26c
Remove GtkStock API from GtkImage
2016-10-16 18:17:21 +02:00
Timm Bäder
f37cb8f9d0
reftests: Remove GtkMisc properties from now non-misc widgets
2016-10-16 18:17:21 +02:00
Timm Bäder
f45dadadd0
box: Remove 'padding' child property
2016-10-16 18:17:21 +02:00