Benjamin Otte
14b746eeaa
tests: Remove styleexamples test
...
It's so outdated it doesn't even do anything useful anymore.
So I'll just assume nobody uses it.
2016-11-19 03:02:46 +01:00
Benjamin Otte
ca47c75272
tests: Use new drawing area APIs in testcairo
2016-11-19 03:02:46 +01:00
Benjamin Otte
4a604cf927
tests: Use drawing area in testellipsise
2016-11-19 03:02:46 +01:00
Benjamin Otte
915e791586
tests: Use new drawing area APIs
2016-11-19 03:02:46 +01:00
Benjamin Otte
fe23c3165e
tests: Use a drawing area in motion-compression example
2016-11-18 21:44:25 +01:00
Benjamin Otte
e950d0cd8b
tests: Use a drawing area in animated-resizing
2016-11-18 21:44:25 +01:00
Benjamin Otte
3ee2138ee7
tests: Use a drawing area in testpopup
2016-11-18 07:24:31 +01:00
Benjamin Otte
f2fb2da8bd
tests: Make testtooltips not use the draw signal
2016-11-18 07:22:02 +01:00
Benjamin Otte
a57fe52fc6
tests: Produce load without waiting for draw signal
2016-11-18 07:15:12 +01:00
Benjamin Otte
4a06d22c7d
tests: Use drawing area instead of draw signal
2016-11-18 07:14:28 +01:00
Timm Bäder
957274ed1a
tests/styleexamples: Remove gtk_render_extension calls
...
The function doesn't exist anymore so there's nothing to test.
2016-11-17 16:48:57 +01:00
Benjamin Otte
0e93e39e74
tests: Remove subsurface test
...
It did lots of ubsupported things (like creating subsurfaces on every
platform).
2016-11-06 22:03:45 +01:00
Timm Bäder
96f382e5b0
tests/popupat: Remove references to noexistent widgets
2016-11-05 13:39:41 +01:00
Matthias Clasen
5c18bf79a1
Add a testcase for stacked headerbars
...
This currently has some theming issues.
This example is for Lapo to work those out.
2016-11-03 08:32:31 -04:00
Matthias Clasen
6ed58cfd50
Fix the build
...
testgtk.c had some dead code referring to GdkColor. Drop it.
2016-11-01 14:11:25 -04:00
Timm Bäder
5071206d60
widget: Remove app-paintable
2016-10-31 19:28:28 +01:00
Benjamin Otte
73cd739e19
API: widget: Remove gtk_widget_is_composited()
...
We don't need to clutter our API with functions that are easily
available elsewhere and effectively unused.
2016-10-29 04:49:47 +02:00
Benjamin Otte
d249e77bcb
API: screen: Remove gdk_screen_is_composited()
...
Switch code to use gdk_display_is_composited() instead.
The new code also doesn't use a vfunc to query the property but rather
requires the backend to call set_composited()/set_rgba() to change the
value.
2016-10-29 04:49:47 +02:00
Benjamin Otte
a334316d5e
API: widget: Remove GtkWidget::composited-changed signal
...
Nobody uses it.
If you need the functionality, listen to display changes on
your widget and then connect to the display's notify::composited.
2016-10-29 04:49:47 +02:00
Timm Bäder
90b133bb50
testframe: Fix css element name
2016-10-28 16:33:02 +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
24b917165b
Remove stray "stock" references
2016-10-23 13:01:52 +02:00
Timm Bäder
d188912338
icontheme: Remove deprecated API
2016-10-22 19:08:29 +02:00
Timm Bäder
9992a616ef
widget: Use ::measure vfunc to measure size
...
Add a new ::measure vfunc similar to GtkCssGadget's that widget
implementations have to override instead of the old get_preferred_width,
get_preferred_height, get_preferred_width_for_height,
get_preferred_height_for_width and
get_preferred_height_and_baseline_for_width.
2016-10-22 19:05:47 +02:00
Victor Toso
ebbfbc0bea
tests: fix clipboard test by loading correct icon
...
The icon name changed from "terminal" to "utilities-terminal" in
Adwaita-icon-theme.
Signed-off-by: Victor Toso <victortoso@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=773113
2016-10-21 11:37:34 -04:00
Emmanuele Bassi
5cb804a808
build: Remove unused target variables
...
The foreigndrawing test has been removed.
2016-10-19 14:34:05 +01:00
Emmanuele Bassi
074c77e7ac
gsk: Rework GskRenderer and GskRenderNode semantics
...
This commit changes the way GskRenderer and GskRenderNode interact and
are meant to be used.
GskRenderNode should represent a transient tree of rendering nodes,
which are submitted to the GskRenderer at render time; this allows the
renderer to take ownership of the render tree. Once the toolkit and
application code have finished assembling it, the render tree ownership
is transferred to the renderer.
2016-10-18 11:29:34 +01:00
Emmanuele Bassi
7afdd3fdb5
Initial implementation of GSK rendering pipeline
...
GSK is conceptually split into two scene graphs:
* a simple rendering tree of operations
* a complex set of logical layers
The latter is built on the former, and adds convenience and high level
API for application developers.
The lower layer, though, is what gets transformed into the rendering
pipeline, as it's simple and thus can be transformed into appropriate
rendering commands with minimal state changes.
The lower layer is also suitable for reuse from more complex higher
layers, like the CSS machinery in GTK, without necessarily port those
layers to the GSK high level API.
This lower layer is based on GskRenderNode instances, which represent
the tree of rendering operations; and a GskRenderer instance, which
takes the render nodes and submits them (after potentially reordering
and transforming them to a more appropriate representation) to the
underlying graphic system.
2016-10-18 11:29:34 +01:00
Timm Bäder
ead36206a3
Remove GtkActionGroup
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
bc7206d70f
Remove GtkStock
2016-10-18 00:29:20 +02:00
Timm Bäder
dece018994
Remove GtkAlignment
2016-10-18 00:29:19 +02:00
Timm Bäder
1b2f291c1d
messagedialog: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
be2f19663b
button: Add icon-name property
...
Remove the old-style button construction that allowed to show both an
icon and a label and change visibility based on a GtkSetting.
2016-10-18 00:29:19 +02:00
Timm Bäder
5789c4fbc3
tests: Add testgaction.c
2016-10-18 00:29:19 +02:00
Timm Bäder
a4368a73a5
widget: Remove gtk_widget_reparent
2016-10-18 00:29:17 +02:00
Timm Bäder
77f50ec5d7
window: Remove reshow_with_initial_size
2016-10-18 00:29:17 +02:00
Benjamin Otte
dff5a7bd64
tests: Use gdk_window_new_child()
2016-10-18 00:22:35 +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
17895e746c
tests: Remove custom preview from print-editor
...
It's using gdk_cairo_create() to do the drawing, which is unsupported.
2016-10-16 18:18:58 +02:00
Benjamin Otte
b4a7fc7d75
tests: Remove code from testinput that does nothing
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
9f930c08a6
ui: Don't unnecessarily set GtkEntry:invisible-char
2016-10-16 18:17:21 +02:00
Timm Bäder
58a76b700f
stylecontext: Remove _REGION_ constants
2016-10-16 18:17:21 +02:00
Timm Bäder
addb655aee
testoverlay: Stop using gtk_widget_override API
2016-10-16 18:17:21 +02:00
Timm Bäder
2cfa05fc84
testsensitive: Use state-flags-changed instead of state-changed
2016-10-16 18:17:21 +02:00
Timm Bäder
627a824cab
image: Remove GtkIconSet API
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
cc3dceee83
testfilechooserbutton: Remove GtkMisc API usage
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
d36e4125d1
testgtk: Remove GtkImageMenuItem usage
2016-10-16 18:17:21 +02:00
Timm Bäder
b9a304cf6f
testgtk: fix css
2016-10-16 18:17:21 +02:00
Timm Bäder
ac31a00dcf
testbuttons: Stop looking at use-stock property
...
Doesn't exist anymore. Instead, force the image to be visible on one of
the buttons.
2016-10-16 18:17:21 +02:00
Timm Bäder
590cd6a9f2
button: Remove GtkStock API
2016-10-16 18:17:21 +02:00
Timm Bäder
4162d65a7b
tests: Remove teststockbuttonmenu
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
Benjamin Otte
eace2cf421
API: Remove gdk_window_set_background()
...
Backgrounds are always transparent black.
2016-10-16 18:17:21 +02:00
Benjamin Otte
bae12e6a2f
tests: Remove testwindows test
...
It wasn't drawing anything anymore...
2016-10-16 18:17:21 +02:00
Benjamin Otte
662001b60a
API: Remove ability to set visuals on windows
...
And with it, gtk_widget_get_visual() and gtk_widget_set_visual() are
gone.
We now always use the RGBA visual (if available) and otherwise fall back
to the system visual.
2016-10-16 18:17:21 +02:00
Benjamin Otte
021fe010b6
API: Remove GtkPlug, GtkSocket and GtkWin32EmbedWidget
2016-10-16 18:17:21 +02:00
Benjamin Otte
89f2e17f91
API: Remove gdk_window_set_composited()
...
And the related call gdk_display_supports_composite().
2016-10-16 18:17:21 +02:00
Timm Bäder
fb3d9022ad
Remove GtkHBox
2016-10-16 18:17:21 +02:00
Benjamin Otte
9a5de96187
API: Remove GtkNumerableIcon
2016-10-16 18:17:21 +02:00
Benjamin Otte
013caef941
testgtk: Remove feature unsupported in Wayland
...
Wayland doesn't allow positioning windows randomly, so don't try.
2016-10-16 18:17:21 +02:00
Benjamin Otte
c2125e80a3
API: window: Remove geometry support
2016-10-16 18:17:21 +02:00
Benjamin Otte
4ed9452e90
API: menu: Remove tearoff support
2016-10-16 18:17:21 +02:00
Benjamin Otte
d2a8667f83
API: Remove GtkStatusIcon
2016-10-16 18:17:21 +02:00
Benjamin Otte
29c570a660
tests: Port to GdkMonitor
2016-10-16 18:17:21 +02:00
Matthias Clasen
d053d5c58f
Rename Makefile references from 3.0 to 4.0
...
This is almost certainly incomplete.
Needs careful scrutiny
2016-10-07 10:34:50 -04:00
William Hua
05b9bc5cff
add demo for testing gtk_menu_popup_at_* ()
...
https://bugzilla.gnome.org/show_bug.cgi?id=756579
2016-07-19 09:38:54 -04:00
Emmanuele Bassi
ad78daaf80
gdk: Deprecate gdk_cairo_create()
...
We have GdkDrawingContext, now, which is in charge of creating Cairo
contexts for drawing on a GdkWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=766675
2016-06-09 17:45:40 +01:00
Georges Basile Stavracas Neto
657fcd0717
tests: adapt testscrolledwindow to have max content sizes
...
This patch adpats the current test to show a popover with
max-content-width and -height properties set.
https://bugzilla.gnome.org/show_bug.cgi?id=742281
2016-06-05 11:03:11 -03:00
Bastien Nocera
bb6cce4e6f
Separators not correctly placed
...
What it should look like:
Bold
----
/Size/
x 0.5
x 1.0
What it looks like:
Bold
/Size/
----
x 0.5
x 1.0
https://bugzilla.gnome.org/show_bug.cgi?id=767108
2016-06-01 10:03:19 -04:00
Timm Bäder
5029e11473
tests/scrolling-performance: Define MyTextView
...
The type is used in widget-factory.ui, so add a dummy definition here to
keep the test working.
2016-05-30 19:11:27 +02:00
Carlos Soriano
264b2b78cd
testnotebookdnd: add one GtkListBox as tab content
...
To make sure we test regressions on widgets that bubble up motion
handling and can trigger the motion handling code path on GtkNotebook.
https://bugzilla.gnome.org/show_bug.cgi?id=764395
2016-05-02 13:17:48 +02:00
Matthias Clasen
e0e114fddb
testdnd2: Actually test gtk_drag_set_icon_widget
...
I added a new test function, but didn't actually use it.
No wonder I couldn't reproduce the lifecycle issues with
drag widgets that firefox is experiencing.
2016-04-26 20:34:24 -04:00
Matthias Clasen
4fe336930e
Expand the drag widget testcase
...
This adds a testcase which reuses the drag widget for multiple
drags.
2016-04-26 00:19:02 -04:00
Emmanuele Bassi
b993c7db63
tests: Add GLES support to GtkGears
...
Use the appropriate GLSL shaders when running under an OpenGL ES
context.
2016-04-25 14:35:02 +01:00
Emmanuele Bassi
a92ba06383
tests: Add GLES shaders to testglarea
...
Check if the GdkGLContext is using ES, and load the appropriate shaders
in that case.
2016-04-25 14:35:02 +01:00
Matthias Clasen
6d953cb08e
Add a dnd test using a window as icon
...
This case is causing problems in firefox. Lets at least make
sure that it doesn't crash in GTK+.
2016-04-21 14:23:00 -04:00
Matthias Clasen
6f2d5a6290
Move autotestkeywords to testsuite
...
All the 'make check' and installed tests are now in testsuite/,
and tests/ is just a collection manual test programs.
2016-03-28 17:56:13 -04:00
Benjamin Otte
d42ba8a82a
tests: Add missing break statements
...
http://www.viva64.com/en/b/0383/
2016-03-20 05:36:17 +01:00
Matthias Clasen
213108b64f
Minor cleanup
...
The GtkStatusIcon::size-changed signal expects a boolean return.
2016-03-05 12:11:05 -05:00
Cosimo Cecchi
7ccd91c9eb
testscale: change example to use upwards labels
...
There's no example of that in testscale.
2016-03-03 22:06:16 -08:00
Matthias Clasen
7bd1012e51
tests: Strip newlines from g_warning and g_error
...
g_logv adds one for us already.
2016-02-28 12:23:12 -05:00
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