Matthias Clasen
4da281d20b
Adapt the testpopover example
...
We now use GtkPopoverMenu, and just add the model buttons
directly to it.
2014-10-29 06:49:58 -04:00
Matthias Clasen
a8cc4787d2
Add a manual popover menu example
...
Reproduce the testpopover popover manually, by packing model
buttons into a stack in a popover.
2014-10-29 06:49:58 -04:00
Cosimo Cecchi
96a3b23736
testlevelbar: fix CSS to be aligned with documentation
...
https://bugzilla.gnome.org/show_bug.cgi?id=707695
2014-10-27 06:56:19 -04:00
Cosimo Cecchi
0555ef20a4
testlevelbar: don't segfault when quitting testlevelbar
...
Quit the mainloop when the window is closed.
https://bugzilla.gnome.org/show_bug.cgi?id=707695
2014-10-27 06:56:19 -04:00
Matthias Clasen
f7813deb26
Test h/vhomogenenous in teststack
...
Add separate checkboxes for hhomogeneous and vhomogeneous.
2014-10-26 15:07:26 -04:00
Matthias Clasen
5ec56d2e6e
Port the overlayscroll example
...
Make the overlayscroll example use the overlay scrolling that is
now built into GtkScrolledWindow, instead of the manual prototype.
2014-10-20 23:07:45 -04:00
Matthias Clasen
05ab0f2227
Add an experiment for overlay scrollbars
...
This is just meant as a prototype for how we can show a
scroll position indicator for touch. This uses GTK_POLICY_EXTERNAL
to hide the scrolled windows scrollbar while still allowing
scrolling.
2014-10-20 23:07:45 -04:00
Carlos Garnacho
ca9d15df92
scrolledwindow: Add ::edge-overshot signal
...
This signal is emitted whenever user scrolling hits the overshoot
edge in the given direction. May be useful to add "reload" or "load
more" behaviors in apps.
https://bugzilla.gnome.org/show_bug.cgi?id=738534
2014-10-20 18:52:43 +02:00
Matthias Clasen
0b0c6a6477
testfilechooser: Test the preview again
...
There is code in there to show a preview, use it.
2014-10-19 20:03:58 -04:00
Lars Uebernickel
582adcab1a
Add GDK_DEP_LIBS to demos and tests
...
Some of them depend on libepoxy now.
2014-10-15 16:15:35 +02:00
Benjamin Otte
e0040acefc
tests: Make gtkgears compile without complaints
2014-10-14 14:33:08 +02:00
Alexander Larsson
fdeb4f8c16
gl: Make gdk_gl_context_make_current() return void
...
Its not really reasonable to handle failures to make_current, it
basically only happens if you pass invalid arguments to it, and
thats not something we trap on similar things on the X drawing side.
If GL is not supported that should be handled by the context creation
failing, and anything going wrong after that is essentially a critical
(or an async X error).
2014-10-13 10:43:32 -04:00
Alexander Larsson
5d7e268aac
Add tests/testglblending
...
This test stacks GL and cairo rendering in various
orders to test the layer handling.
2014-10-13 10:43:31 -04:00
Alexander Larsson
8f3e9d1b05
Add tests/gdkgears
...
A more complex test modeled on the traditional glxgears.
2014-10-13 10:43:31 -04:00
Alexander Larsson
3b3726ae57
Add tests/testglarea
...
This is a very simple test of GtkGLArea.
2014-10-13 10:43:31 -04:00
Benjamin Otte
75ed941ef1
tests: Update testexpand example for deprecations
2014-10-12 05:27:27 +02:00
Benjamin Otte
c96945b390
tests: Update testtooltips for deprecations
2014-10-12 05:21:01 +02:00
Benjamin Otte
3d45d53714
tests: Don't force black background in testwindows
2014-10-12 05:15:23 +02:00
Benjamin Otte
81fe943472
tests: Update testoverlaystyleclass test
...
Make it not use deprecations anymore and use CSS to show things work by
changing border-radius when a style class exists.
2014-10-12 05:11:13 +02:00
Benjamin Otte
0a6443ebaf
testgtk: Don't trigger deprecation warnings
...
.. and various other assorted fixes, mostly related to drawing code that
assumed stuff wasn't transparent by default.
2014-10-12 04:54:40 +02:00
Matthias Clasen
9dcb33ad34
Add an example for synchronized scrolling
...
This example uses GTK_POLICY_EXTERNAL to share a scrollbar among
multiple scrolled windows.
2014-10-09 20:18:51 -04:00
Benjamin Otte
f46c31f2fb
tests: Exit test when main window is closed
2014-10-10 00:27:45 +02:00
Matthias Clasen
3897041f4a
More removal of deprecated API
2014-10-07 22:35:02 -04:00
Benjamin Otte
7d1e79ef4b
tests: Add a test for a performance optimisation
...
text-shadow is too slow. Running this testcase reveals that.
2014-10-03 06:18:04 +02:00
Ikey Doherty
cdd2651db0
Add GtkSidebar
...
GtkSidebar behaves internally much like GtkStackSwitcher, providing a vertical
sidebar like widget. It is virtually identical in appearance to the widget
currently used in GNOME Tweak Tool.
This widget is connected to a GtkStack, and builds its own contents as a
GtkListBox subclass, using the "title" child property to provide a consistent
navigatable widget.
Being a subclass of GtkListBox it benefits immediately from strong keyboard
navigation, and minimal changes are required for theming.
https://bugzilla.gnome.org/show_bug.cgi?id=735293
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2014-10-01 00:44:46 -04:00
Eric Le Bihan
ed5f6d4333
Fix testgtk.c when building for Wayland.
...
Fix wrong usage of GDK_WINDOWING_WAYLAND instead of
GDK_WINDOWING_X11 in test/testgtk.c.
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
https://bugzilla.gnome.org/show_bug.cgi?id=737363
2014-09-25 17:48:43 -04:00
Matthias Clasen
39349cdea3
testicontheme: Use rtl/ltr lookup flags
...
This should help with diagnosing
https://bugzilla.gnome.org/show_bug.cgi?id=737000
2014-09-21 14:09:16 -04:00
Matthias Clasen
4d835f61a5
Make subsurface test use a stack
...
Just to show that it works.
2014-09-17 12:42:32 -04:00
Matthias Clasen
6e0960197f
Add a quick subsurface tests
...
Just to have some code that uses subsurfaces inside a widget
tree, and not like a 'pseudo-toplevel'.
2014-09-17 11:10:41 -04:00
Matthias Clasen
56bbf12fcd
testaccel: Add another focus location
...
It turns out GtkCellRendererAccel does not deal well with focus
being elsewhere. Adding an entry here makes this much easier to
reproduce.
2014-09-06 19:03:00 -04:00
Matthias Clasen
7b950941ce
testaccel: Handle accel-cleared
2014-09-06 19:02:41 -04:00
Jasper St. Pierre
1073ae57ce
testgtk: Fix enabling of the cursor demo
...
Make this a lot less hacky.
2014-09-02 11:26:56 -07:00
Matthias Clasen
41fe530795
testgtk: Make cursor demo work with wayland
...
We have the wayland apis to do this.
2014-09-02 09:53:51 -04:00
Matthias Clasen
e79348eafe
Add an example for a hig-style toolbar
2014-08-15 23:22:00 -04:00
Matthias Clasen
cab7dcde1b
Deprecate GtkStatusIcon
...
GtkStatusIcon is using a problematic, XEmbed-based protocol under X,
and we want to get rid of it eventually. Document our intentions by
marking GtkStatusIcon as deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=734826
2014-08-15 13:02:31 -04:00
Benjamin Otte
e7ffa16094
tests: Sanitize
...
gcc was unhappy again.
2014-08-15 00:13:06 +02:00
Руслан Ижбулатов
694c8d32d5
Fix various warnings about unused things
...
https://bugzilla.gnome.org/show_bug.cgi?id=734735
2014-08-13 23:38:47 +00:00
Matthias Clasen
8b2fb4a991
Reconstruct a missing file
...
Sadly I had forgotten to add selectionmode.ui to git.
Here is a reconstructed version that seems to work.
2014-08-11 16:25:21 -04:00
Matthias Clasen
7ecf5c43e0
Add a selection mode testcase
...
This shows what one currently has to do manually to get the typical
selection mode with blue headerbar and checkboxes in list rows.
The goal is to make this easier.
2014-08-08 13:30:54 +02:00
Matthias Clasen
9e3626ee24
tests: Drop use of deprecated api
...
Don't use gtk_tree_view_set_rules_hint anymore.
2014-08-04 12:27:56 +02:00
Matthias Clasen
29d756909d
Set initial focus in some dialog tests
...
Use the new <initial-focus> element here to confirm that it is
parsed properly and works as expected.
2014-08-02 11:59:05 +02:00
Alexander Larsson
341108d4fc
Update testtextview.c to use draw_layer
...
This fixes a regression in the test from the revert in
commit 4fe051bb4a
.
2014-07-28 21:19:31 +02:00
Ignacio Casal Quinteiro
09ecba9a53
testtreemodel: fix unused variable on windows
2014-07-24 08:34:02 +02:00
Matthias Clasen
17ad36bf8b
Trivial cleanup
2014-07-18 14:33:26 -04:00
Matthias Clasen
df007fb982
Add another dialog to test
...
This one is taken from polari, and currently doesn't work
as expected.
2014-07-17 12:17:32 -04:00
Benjamin Otte
46462ee7c4
tests: Add deprecation guards
...
... for newly deprecated gtk_icon_info_get_builtin_pixbuf()
2014-07-10 18:56:34 +02:00
Jasper St. Pierre
ece9ae4bc5
gtkwindow: Remove resize grips
...
Resize grips were introduced for GNOME 3.0, before we had any of the
"new GNOME app" features like invisible borders and CSD. With OS X 10.6
and 10.7, Apple has replaced the classic grips in their applications
with invisible borders as well.
New GNOME app designs don't use resize grips anymore and the new
default theme for GTK+, Adwaita, disables them entirely by forcing their
width and height to 0.
They're past their time. Remove the code to support them. This can
always be reverted if some app relies on them.
2014-07-03 12:58:41 -04:00
Benjamin Otte
62c6ef5a29
tests: Remove tests for icontheme properties
...
These properties have been removed and always return %NULL, so no need
to keep them.
2014-06-30 01:08:02 +02:00
Matthias Clasen
297abd6e54
testdialog: Add a spinner
...
Trying to track down a problem where animation stops when a modal
dialog is opened and closed.
2014-06-29 14:03:52 -04:00
Matthias Clasen
ecffe56955
Avoid deprecation warnings
...
We know regions are deprecated, no need to warn about it here.
2014-06-24 08:23:21 -04:00