| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Closes: #5747
|
|
|
|
| |
This was doing the wrong thing with transforms.
|
|
|
|
|
| |
This can happen when creating paintables from GtkSnapshot when nothing
was drawn.
|
|
|
|
|
| |
Add a GskMaskMode enumeration and implement it
in the GL and cairo renderers.
|
| |
|
|
|
|
|
| |
This is the snapshot api corresponding to
gsk_texture_scale_node_new.
|
|
|
|
| |
These were pointed out by codespell.
|
|
|
|
|
|
|
| |
The notable exception here are the global provider apis,
which are needed in some form and don't have a replacement
yet. Move them to gtkstyleprovider.[hc], so we can wholly
deprecated gtkstylecontext.[hc].
|
|
|
|
|
|
|
|
|
|
| |
Move the implementations from gtksnapshot.c to
gtk/deprecated/gtkrender.c and deprecated these
functions. We want to get rid of them.
These functions are still used in some of our widgetry,
so use G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS around
them.
|
|
|
|
|
| |
Improve the consistency of our private header
naming, by add 'private' to a bunch of them.
|
|
|
|
| |
When there's remaining state that draws nothing, it returns no
rendernode. So do a NULL-check before unreffing it.
|
|
|
| |
GJS apparent likes g_object_new() over actual constructors, so make that work.
|
|
|
| |
Fixes an upstream issue reported at https://github.com/gtk-rs/gtk4-rs/issues/845
|
| |
|
|\
| |
| |
| |
| | |
Some fixes, hmm yes
See merge request GNOME/gtk!4068
|
| | |
|
|/
|
|
| |
Do a round of "the the" removal.
|
| |
|
|
|
|
| |
This reverts commit 062a15310aefd7feac19a5b7d2c3257d317dfff9.
|
|
|
|
|
| |
Pass the widget's font options along when we
are creating text nodes.
|
|\
| |
| |
| |
| | |
snapshot: Handle transparent opacity nodes correctly
See merge request GNOME/gtk!3754
|
| |
| |
| |
| |
| |
| |
| | |
Eliding totally transparent content from the node tree is
not 100% correct, since filters can make things visible, so
we need to at least preserve the bounds. We can do that by
creating a transparent color node.
|
| |
| |
| |
| |
| | |
If the linear gradient results in a color node, we don't need the start
and end point. Only declare and compute it if we need to.
|
|/
|
|
| |
Extend this to all existing gradient types
|
|
|
|
| |
Replace leftover gtk-doc syntax (#Type) with backquotes.
|
|
|
|
|
| |
allow-none has been deprecated for a long time
already. Instead use optional and nullable everywhere.
|
|
|
|
|
| |
Mostly fixing up indentation of continuation lines,
and other small cleanups.
|
|
|
|
|
|
|
| |
Fixes cases where the sanity checks would reject valid code, like when
using GL shaders on a scaled transform.
Fixes #3819
|
|
|
|
|
| |
Found by Matthias on IRC while arguing about GtkSnapshot being too
complicated.
|
| |
|
|
|
|
|
| |
This function should live with the rest of the
GskRoundedRect code in gskroundedrect.c.
|
| |
|
|
|
|
|
|
|
| |
If set to TRUE, does not call the free func for the removed items.
This can be used to move items between arrays without having to do the
refcounting dance.
|
| |
|
|
|
|
|
|
| |
We have code in place to handle a NULL node in the state when dealing
with blend nodes, but we don't always check for NULL, which leads to
warnings in the CSS Blend modes demo.
|
|
|
|
| |
Otherwise we're leaking data in error cases.
|
|
|
|
| |
Those are getters, they should be gsk_render_node_get_*() functions.
|
|\
| |
| |
| |
| | |
Minor optimizations to GtkSnapshot state stack
See merge request GNOME/gtk!2641
|
| |
| |
| |
| |
| |
| | |
Most of the time the snapshot is less than 16 levels deep (did some testing
in gtk-demo), so lets pre-allocate 16 levels of state stack to avoid the
extra allocation most of the time.
|
|/ |
|
| |
|
|\
| |
| |
| |
| | |
snapshot: Don't flip textures
See merge request GNOME/gtk!2633
|
| |
| |
| |
| |
| |
| |
| |
| | |
... or gradients or borders or shadows. Instead, ensure that affines
have non-negative scale factors. Otherwise add a transform node.
The only place where this check is not necessary is color nodes, but
special casing them seems not worth it.
|
| | |
|
|/
|
|
| |
These are the equivalents of the linear gradient apis.
|
| |
|
|
|
|
|
| |
Instead of going through collect_debug and then doing a collect_default
anyway if the message is NULL.
|
| |
|
| |
|