Daniel Boles
55664f95ab
testspinbutton: Orient box orthogonally to Spins
...
This makes better use of space.
2018-03-14 23:01:06 +00:00
Daniel Boles
bde1328a07
testinfobar: Test more properties, response signal
...
Also test :message-type, :show-close-button, and ::response.
2018-03-12 19:16:07 +00:00
Daniel Boles
5fe14e06da
Merge branch 'wip/dboles/frame-yalign-byealign' into 'master'
...
Frame: Erase the now-useless property label-yalign
See merge request GNOME/gtk!40
2018-03-12 16:17:11 +00:00
Daniel Boles
6bb1f0dbf3
testinfobar: Add simple test of :visible/:revealed
...
This exists merely to prove that, having added :revealed, show() and
hide() now work reliably, as does set_revealed() for the animated case.
https://bugzilla.gnome.org/show_bug.cgi?id=710888
2018-03-12 15:30:55 +00:00
Daniel Boles
e4578ca7bf
Frame: Erase the now-useless property label-yalign
...
The border is now drawn on the frame node, not using an internal border
node, so we are no longer able to align the label to vertically overlap
the border. The property no longer performs its original purpose, & nor
is it a useful candidate for giving a new role, so no point keeping it.
https://bugzilla.gnome.org/show_bug.cgi?id=778886
2018-03-12 14:17:32 +00:00
Timm Bäder
38fa5ab57b
widget: Add a translate_coordinates version for doubles
...
So we can use that one when translating event coordinates. Also adapt
the widgetfocus demo to ensure this works.
We should probably at some point delete either the int or the double
version.
2018-03-07 20:17:39 +01:00
Timm Bäder
c02090b1f6
tests: Add testblur
2018-02-27 12:51:07 +01:00
Benjamin Otte
db267433c0
tests: Make text test have more glyphs
...
Load random strings from /usr/share/dict/words instead of reusing the
same 10 words all the time. That way, we get closer to the real world
use case of having a full alphabet.
2018-02-05 17:22:56 +01:00
Emmanuele Bassi
c655759cef
Replace gdk_threads_add_timeout* with g_timeout_add()
...
The main GDK thread lock is not portable and deprecated.
The only reason why gdk_threads_add_timeout() and
gdk_threads_add_timeout_full() exist is to allow invoking a callback
with the GDK lock held, in case 3rd party libraries still use the
deprecated gdk_threads_enter()/gdk_threads_leave() API.
Since we're removing the GDK lock, and we're releasing a new major API,
such code cannot exist any more; this means we can use the GLib API for
installing timeout callbacks.
https://bugzilla.gnome.org/show_bug.cgi?id=793124
2018-02-03 12:06:58 +01:00
Emmanuele Bassi
334acbfc39
Replace gdk_threads_add_idle* with g_idle_add()
...
The main GDK thread lock is not portable and deprecated.
The only reason why gdk_threads_add_idle() and
gdk_threads_add_idle_full() exist is to allow invoking a callback with
the GDK lock held, in case 3rd party libraries still use the deprecated
gdk_threads_enter()/gdk_threads_leave() API.
Since we're removing the GDK lock, and we're releasing a new major API,
such code cannot exist any more; this means we can use the GLib API for
installing idle callbacks.
https://bugzilla.gnome.org/show_bug.cgi?id=793124
2018-02-03 12:06:58 +01:00
Benjamin Otte
55874470ff
gtk: Remove GtkRecentChooser
...
It's not used any more, recent files are only used by the filtchooser
and that one uses GtkRecentManager directly.
2018-02-02 23:01:31 +01:00
Benjamin Otte
bb8baa2b76
tests: Unrealize renderer
...
Renderers must be unrealized these days.
2018-02-02 15:34:34 +01:00
Matthias Clasen
af0d876bb7
tests: Remove some unneeded gtk_widget_show calls
...
Widgets are visible by default now.
2018-01-19 23:29:13 +03:00
Matthias Clasen
cdb2fcb554
gdkgears: add a way to remove gears
...
This is needed to test the GL resource cleanup
code paths.
2018-01-17 19:47:45 -05:00
Matthias Clasen
f3927f1155
Drop GtkGLArea::has-alpha
...
We now always behave as if has-alpha is TRUE.
Update all callers.
2018-01-17 12:01:25 -05:00
Matthias Clasen
3fa0d4dad7
testgtk: Stop using gdk_display_get_maximal_cursor_size
...
This function is going away. Just make a reasonable assumption
that cursor sizes up to 128 are supported.
2018-01-16 23:25:50 -05:00
Matthias Clasen
ba844df6f0
tests: Stop using ::button-press/release-event
...
The generic ::event signal works fine here.
2018-01-16 14:14:10 -05:00
Matthias Clasen
a2bce67d3b
tests: Stop using ::button-press-event
...
A gesture will do here.
2018-01-16 14:14:10 -05:00
Matthias Clasen
81b8f0493a
tests: Stop using ::motion-notify-event
...
We can use the generic ::event signal here.
2018-01-16 14:14:10 -05:00
Matthias Clasen
9dc14b630d
testinput: Port to a drag gesture
...
This replaces both button-press-event and motion-notify-event
handlers.
2018-01-16 14:14:10 -05:00
Matthias Clasen
33e2f31de4
testgtk: Stop using ::button-press-event
...
This one example can just as well use a gesture.
2018-01-16 14:14:10 -05:00
Matthias Clasen
6d1dbec9dd
tests: Stop using ::focus-in/out-event
...
The has-focus property works just as well here.
2018-01-16 14:14:10 -05:00
Matthias Clasen
cf9074a2e9
Add x/y to GtkEventControllerMotion::enter
...
We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.
Update existing users.
2018-01-16 14:14:10 -05:00
Matthias Clasen
8338b0f0cc
testgtk: Stop using ::configure-event
2018-01-16 14:14:10 -05:00
Matthias Clasen
cbf1ff98f7
tests: Stop using ::configure-event
...
The generic ::event will do.
2018-01-16 14:14:10 -05:00
Matthias Clasen
41e4c93443
Replace all remaining uses of delete-event
2018-01-16 14:14:09 -05:00
Matthias Clasen
1c3f8ba252
testoverlay: Use an event controller
...
We can stop using ::enter-notify-event here, and use
our new motion event controller instead.
2018-01-16 14:14:09 -05:00
Matthias Clasen
96b2b1b2f3
testgtk: Redo the event watcher case
...
Make this watch for emissions of ::event, since we
want to get rid of individual signals first.
2018-01-16 14:14:09 -05:00
Matthias Clasen
6ac33215a5
testgtk: Use an event controller for 'testing scrolling'
...
The current code was not working with smooth scroll events,
for starters.
2018-01-16 14:14:09 -05:00
Matthias Clasen
97f805b888
testinput: Drop some no-op signal handlers
...
These were not doing anything.
2018-01-16 14:14:09 -05:00
Matthias Clasen
3cb93a479a
tests: Avoid a use of ::map-event
...
We can use the ::map signal here instead.
2018-01-16 14:14:09 -05:00
Matthias Clasen
67649763b6
tests: Stop using the delete-event signal
...
We can use ::destroy in most cases.
2018-01-16 14:14:09 -05:00
Timm Bäder
04ade9483b
testheightforwidth: Remove "vertical labels" test
...
This was testing lables with the angle property set, which doesn't exist
anymore.
2018-01-10 08:46:22 +01:00
Arnaud Bonatti
295726560e
Add test for GtkActionable GtkListBoxRow.
...
https://bugzilla.gnome.org/show_bug.cgi?id=741633
2018-01-02 17:56:10 -08:00
Matthias Clasen
48bfc9badf
testinput: Make this work again
...
This test was not updated to using a draw func instead
of the ::draw signal yet. At the same time, make it use
::size-allocate instead of ::configure-event.
2018-01-02 18:14:13 -05:00
Matthias Clasen
e522ff0532
testgtk: Fix the test scrolling test
...
We need to expand here, otherwise things look wrong.
2018-01-02 18:14:13 -05:00
Matthias Clasen
d3014c23b9
testgtk: Fix the scrolledwindow test
...
We need to expand here, otherwise things look wrong.
2018-01-02 18:14:13 -05:00
Matthias Clasen
4d6fbdd19e
Remove testthreads
...
As far as I can tell, this has not been in the Makefiles
since 2001...
2018-01-02 18:14:13 -05:00
Matthias Clasen
2c2288206e
Drop an unintentional use of ::destroy-event
...
Clearly, ::destroy was meant here.
2018-01-02 18:14:13 -05:00
Matthias Clasen
c0cd46355d
Drop a no-longer-working test
...
Embedding toplevels does not work anymore.
2018-01-02 18:14:13 -05:00
Matthias Clasen
7d659b21e6
Drop deprecated text view layers
...
These have been marked as deprecated, so lets drop them.
2017-12-29 13:13:36 -05:00
Timm Bäder
c4d5225aac
testoutsetshadowdrawing: Add more samples
2017-12-28 16:48:35 +01:00
Timm Bäder
9675b8a310
showrendernode: Add some advanced options
...
1) Add a --compare cmd line switch that lets people compare the normal
render path and the render_texture path.
2) Add a -o cmd line switch that lets people render the given .node
file to a texture and save that texture to the given png file name.
2017-12-28 16:48:35 +01:00
Timm Bäder
3158b481b7
testoutsetshadowdrawing: Add adwaita CSD window test case
2017-12-28 16:48:35 +01:00
Timm Bäder
006f2e32cf
testheaderbar: Fix custom CSS
2017-12-28 16:48:35 +01:00
Timm Bäder
8b880de4a2
tests: Add outset shadow drawing test
2017-12-21 19:12:33 +01:00
Timm Bäder
5eb4f65c32
showrendernode: Show at least the root node bounds
2017-12-21 19:12:32 +01:00
Timm Bäder
ac6b7b24f9
tests: Add border drawing test
2017-12-21 19:12:32 +01:00
Timm Bäder
7a739e80ef
showrendernode: Resize window to a reasonable size instead
2017-12-21 19:12:30 +01:00
Timm Bäder
851a5d48c3
add tests/showrendernode
...
A .node file viewer.
2017-12-21 18:25:52 +01:00