Matthias Clasen
566010e91d
Add a testcase for revealer size allocation
...
This was taken from https://bugzilla.gnome.org/show_bug.cgi?id=761760
2016-02-23 20:53:23 -05:00
Benjamin Otte
e7470be7bf
tests: Port testlockbutton to GTask
...
Get rid of deprecations that way.
2016-02-13 06:26:42 +01:00
Benjamin Otte
b561af25ec
testgtk: Compile without warnings on win32
2016-02-11 03:44:47 +01:00
Benjamin Otte
34db80c28b
tests: Remove unused variable
2016-02-11 03:44:47 +01:00
Matthias Clasen
8e6cc260ca
testgtk: Remove an unused variable
2016-02-10 16:10:23 -05:00
Matthias Clasen
e79db79e2c
testgtk: Avoid deprecation warnings
...
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.
2016-01-29 11:54:07 -05:00
Matthias Clasen
17d9e94682
testoffscreen: Remove deprecated calls
...
Not doing these calls doesn't seem to affect the demo,
so lets just remove them.
2016-01-29 11:54:07 -05:00
Matthias Clasen
3302c2a12c
testgeometry: Ignore deprecations
...
All the functionality that is tested here has been deprecated
recently.
2016-01-29 11:54:07 -05:00
Carlos Garnacho
cf4e179a45
tests: Avoid deprecated API usage in testgtk
...
We can use seat grabs here.
2016-01-28 12:50:50 +01:00
Carlos Garnacho
a74db1de77
tests: Avoid deprecated API usage in testsocket
...
We can use seat grabs here.
2016-01-28 12:50:50 +01:00
Carlos Garnacho
fef661ae84
tests: Fix deprecation warnings in testinput
2016-01-28 12:50:50 +01:00
Matthias Clasen
5febf4f170
Add a color editor test
...
This tests using a color editor embedded in other ui.
2016-01-23 18:16:51 -05:00
Benjamin Otte
4e627e108e
testnotebookdnd: Add an action widget
...
Just so we have some test that tests action widgets.
2016-01-11 17:03:07 +01:00
Matthias Clasen
7ee65da0e3
Add foreigndrawing example to gtk3-demo
...
This makes it easier accessible and nicer to refer to
from the documentation.
2016-01-10 15:32:53 -05:00
Olivier Fourdan
28f011eb05
wayland: prefer subsurface when possible
...
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
2016-01-08 10:33:26 +01:00
Matthias Clasen
bc020fdeb7
tests: Rework the way foreigndrawing works
...
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.
2016-01-04 15:39:48 -05:00
Timm Bäder
2b2a538629
testframe: Pass correct state to GtkStyleContext API
2016-01-02 15:52:20 +01:00
Matthias Clasen
7acb670e70
Add more icon entry tests
...
This test shows that changing icon types works.
2015-12-18 19:38:19 -05:00
Matthias Clasen
934941d95d
testdnd2: Add some verbosity
...
This makes it easier to see that we're missing some signals
under Wayland.
2015-12-13 16:02:02 -05:00
Matthias Clasen
a8a33b71e4
Add a drag-end callback
...
This will be helpful in figuring out life-cycle issues
with icon widgets.
2015-12-11 10:50:25 -05:00
Matthias Clasen
c418ca451b
Add a dnd testcase
...
This has tests for drag images, widgets, hotspots.
2015-12-11 10:44:46 -05:00
Matthias Clasen
6915aba952
Add more examples to foreigndrawing
...
Show how to draw checks and radios.
2015-12-05 17:09:59 -05:00
Olivier Fourdan
7fc493a8a8
wayland: fix testtooltips
...
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
2015-12-04 13:17:29 +01:00
Benjamin Otte
52ba39ba73
tests: Rework some foreigndrawing code
...
Instead of specifying the full path everytime, just specify the parent
style context and then use its path.
2015-12-03 14:43:56 +01:00
Matthias Clasen
36d5d29af6
Simplify foreign drawing example a bit
2015-12-03 07:55:57 -05:00
Matthias Clasen
574246a3d8
Add a selected text example
2015-12-02 23:10:56 -05:00
Matthias Clasen
16eed47e87
Make foreign drawing example work
...
Set up multiple style contexts to get inheritance right.
2015-12-02 21:32:45 -05:00
Matthias Clasen
09c74f958d
Add another hand-drawn scrollbar
...
This one is supposed to show up in active state, but doesn't.
2015-12-02 18:59:59 -05:00
Matthias Clasen
b5bcc299ad
Add an example of foreign drawing
...
This uses the gtk_render apis with a style context constructed
from a style path.
2015-12-02 18:49:07 -05:00
Matthias Clasen
a3ce702a5a
testentryicons: update dnd example
...
This code was #ifdefed out since 2008. Time to try it.
2015-11-30 18:41:33 -05:00
Matthias Clasen
4005f137a0
testentryicons: Use an existing icon name
...
dialog-info is not an existing icon.
2015-11-30 18:21:44 -05:00
Matthias Clasen
e0aa35ca58
Update testlevelbar
...
This test needs some small updates after the recent changes
to levelbar styling.
2015-11-13 06:41:14 -05:00
Alexander Larsson
51dc4873fd
Add gtk_native_dialog_destroy()
...
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.
2015-11-11 16:06:44 +01:00
Matthias Clasen
601cbbcc87
Improve testlevelbar
...
Add a switch to toggle between discrete and continuous modes.
2015-11-10 23:31:33 -05:00
Alexander Larsson
5e50abf411
testgtk: Add native dialog tests
2015-11-05 16:54:12 +01:00
Benjamin Otte
c580a9d01f
tests: Make stack expand
...
This is to test invisible children are actually resized before they are
made visible (which they currrently are not.
2015-11-04 19:39:29 +01:00
Sébastien Granjoux
ffaaa1e66e
Add a more complex widget in the flipping assistant
...
This reproduces the problem from bug
https://bugzilla.gnome.org/show_bug.cgi?id=756385
2015-10-29 19:21:20 -04:00
Matthias Clasen
8db30aa9a0
testassistant: Add another example
...
This adds a test involving removing and re-adding pages, to
help with
https://bugzilla.gnome.org/show_bug.cgi?id=756385
2015-10-26 09:16:38 -04:00
Owen W. Taylor
26d8a56506
testgtk/Alpha Window: fix the drawn area when we are drawing decorations
...
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
2015-10-22 11:05:04 -04:00
Emmanuele Bassi
9601479f0c
Allow testglarea to work with legacy GL contexts
...
Use the 1.30 GLSL shading language for the fragment and vertex shaders.
https://bugzilla.gnome.org/show_bug.cgi?id=756142
2015-10-07 16:21:57 +01:00
Matthias Clasen
983cd2f7cc
gdkgears: Use a headerbar
...
This is a testcase for
https://bugzilla.gnome.org/show_bug.cgi?id=755675
2015-09-29 21:19:06 -04:00
Matthias Clasen
29f5cdda10
testflowbox: Add an example with buttons
...
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.
2015-08-26 20:00:03 -04:00
Matthias Clasen
0f1c4a303e
gdkgears: Add a popover
...
As pointed out in bug 754143, this reveals a crash in the Wayland
backend.
2015-08-26 18:26:56 -04:00
Matthias Clasen
3d7647991a
Add a test for gtk_flow_box_bind_model
2015-08-16 18:20:50 -04:00
Matthias Clasen
408358c9d9
Add a test for g_list_box_bind_model
2015-08-16 18:20:50 -04:00
Matthias Clasen
c514d1dd5e
testfilechooser: Say Save
...
Thats a more typical affirmative action in save mode.
2015-07-31 07:12:35 -04:00
Matthias Clasen
ccfacb383c
testgtk: Remove pointless code
...
The display is getting overwritten immediately. Pointed out by
coverity.
2015-07-17 19:54:09 -04:00
Matthias Clasen
2b105dc3d9
testdialog: Error out if templates are missing
...
Coverity complained about us ignoring the return value
here, and it is nicer to get an error message about this.
2015-07-17 16:11:17 -04:00
Emmanuele Bassi
b274a2656d
tests/gears: Ensure we don't use unavailable GL resources
...
We need to check on realize if we have access to a GL context, before
calling GL functions. We use gtk_gl_area_get_error() for that.
We also need to tear down the resources during unrealization, instead
of leaking them.
2015-07-16 14:55:25 +01:00
Benjamin Otte
bc19ea965f
tests: Remove testplacesview test
...
The GtkPlacesView widget was made private, so we can't create it in a
testcase.
2015-07-16 06:37:37 +02:00