| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
We will need that in the next commits.
|
| |
|
|
|
|
|
| |
GtkImage will now allow paintables to be rendered to the full image and
the image will be sized according to CSS rules for image sizing.
|
|
|
|
|
|
| |
There are no more icon sizes, this is now the default size we render at.
This naming change is kinda relevant because of CSS terminology.
|
|
|
|
|
|
| |
This includes adding support to GtkImageDefintion and GtkIconHelper.
Only GtkImage handles support for signals from the paintable.
|
|
|
|
|
|
|
|
|
|
| |
This is in preparation for accepting the image type paintable.
It's a bit incovenient because we need more code to track width/height
ourselves (as the paintable no longer does it for us), but it's not too
hard.
GtkIconHelper does not track invalidations on the paintable.
|
|
|
|
| |
We can just get the texture directly from the icontheme.
|
| |
|
|
|
|
|
|
|
|
| |
Instead of looking at the icon size, look at the CSS value for
-gtk-icon-size. Set style classes depending on icon size instead.
Trivially change Adwaita and HighContrast to report the same values as
before.
|
|
|
|
|
| |
The new values are the ones we intend to keep. The old ones had
duplicated meanings and nobody knew which one to take.
|
|
|
|
|
|
|
|
| |
Instead, add a function gtk_image_set_icon_size() for the cases where
overriding the icon size is necessary.
Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear()
no longer unsets the icon size.
|
|
|
|
|
| |
Instead of passing the color matrix in from the outside,
just pass a boolean and set up the matrix internally.
|
|
|
|
| |
Just go directly to texture.
|
|
|
|
|
| |
This also adds it to all other places that use the same infrastructure:
GtkEntry and GtkCellRendererPixbuf
|
|
|
|
| |
This is so we can do the next batch of changes
|
|
|
|
| |
We want this thing to replace GdkPixbuf, so it has to live in GDK.
|
|
|
|
|
| |
These are basically animated gifs, and don't fit well in how
modern things animate.
|
| |
|
|
|
|
|
|
|
|
|
| |
These are no longer used, instead we always covert to surface as
early as possible and drop the pixbuf.
This means we never store both the pixbuf and the surface at
for any longer time, which is wasteful. Also, its one step further
to drop GdkPixbufs from generic use in our APIs.
|
|
|
|
|
| |
The recoloring of symbolic icons is just a color matrix
operation.
|
|
|
|
|
| |
This will be used for symbolic icons.
Update all callers.
|
|
|
|
|
| |
Use a cached texture for themed icons if we can.
Currently, we only do this for non-symbolic icons.
|
|
|
|
|
| |
And use it in GtkIconHelper. This way, we can avoid resizes when e.g.
the fg color of a symbolic icon changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes that work using 1 of 2 options:
1. Add all missing enums to the switch statement
or
2. Cast the switch argument to a uint to avoid having to do that (mostly
for GdkEventType).
I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.
The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
|
|
|
|
|
|
| |
It's not a GtkCssGadget anymore, it doesn't have any properties or
signals either and it's not public. Further, its lifetime is very clear
the way it's being used inside GTK+.
|
|
|
|
| |
Nothing is using any gadget API on iconhelpers anymore.
|
| |
|
| |
|
|
|
|
| |
It's now called gtk_snapshot_offset().
|
|
|
|
| |
This avoids type checks in places where we know it is safe.
|
| |
|
|
|
|
| |
-gtk-icon-filter replaces this now.
|
|
|
|
|
|
| |
Invalidating the style might cause invalidation of the texture. So we
end up with a pointer to freed memory.
SAD!
|
|
|
|
|
| |
Public API doesn't need to be concerned with renderers. Worst case, they
can use NULL instead of the actual renderer.
|
| |
|
|
|
|
| |
This way it will only return a pixbuf if the icon helper has a pixbuf.
|
| |
|
| |
|
|
|
|
| |
Fixes icon rendeirng on hidpi.
|
| |
|
|
|
|
|
| |
Use this infrastructure to render builtin images. Which means from now
on, GtkCheckbutton, GtkSpinner and a few others use snapshots.
|
|
|
|
|
|
|
|
| |
We do no longer bind textures to a renderer, instead they are a way for
applications to provide texture data.
For now, that's it. We've reverted to uploading it from scratch every
frame.
|
| |
|
|
|
|
|
| |
This frees up any cached surfaces and textures in the iconhelper,
ensuring that the renderer can release its texture data.
|
|
|
|
|
|
| |
Adds a bunch of new APIs to render textures with theming.
FIXME: Cannot draw shadows for textures.
|
|
|
|
| |
... and use that in GtkImage.
|
|
|
|
| |
Move the icon size lookup API into gtkicontheme.c
|
| |
|
| |
|