Matthias Clasen
10e4c04e61
Use style values directly
...
Replace uses of gtk_css_style_get_value with direct access,
throughout the tree. We don't replace all uses, just those
where we are dealing with a fixed property. Be careful to
handle the currentColor special case for color properties.
2020-01-29 11:07:32 +01:00
Timm Bäder
2884691740
picture: Unref previous paintable
...
We were leaking all of them.
2019-07-13 09:38:28 +02:00
Matthias Clasen
18788c2a86
Remove gtk_widget_get/set_has_surface
...
These serve no purpose anymore - widgets don't
have surfaces, unless they're a GtkNative.
2019-05-28 20:25:15 +00:00
Benjamin Otte
7918eaf677
picture: Don't cause warnings on load failures
...
When a file set via gtk_picture_set_file() can't be loaded, just
silently don't load it.
Reftest picture-load-invalid-file added for that case.
2019-03-29 09:56:52 +01:00
Benjamin Otte
6e19fb7b36
picture: Use new snapshot transforms
2019-02-21 19:47:28 +01:00
Timm Bäder
b4f2a3416e
picture: Avoid some unnecessary signal connections
...
We don't need to ever invalidate the picture size if the paintable tells
us its size is static. Same for the contents.
2018-12-31 12:44:02 +01:00
Timm Bäder
ec576088bb
picture: Fix doc typo
2018-08-25 08:06:28 +02:00
Timm Bäder
af8fe182c8
Fix a few documentation warnings
2018-07-08 09:41:15 +02:00
Timm Bäder
346ec706f7
picture: Fix up some docs
...
Use nullable instead of allow-none consistently, remove trailing
whitespace and fix some c&p problems.
2018-06-18 17:35:03 +02:00
Rico Tzschichholz
b1f934d3b0
picture: Fix g-i annotation warning
2018-06-13 13:08:28 +02:00
Benjamin Otte
a34a5df674
picture: Don't use g_str_equal() with potential NULLs
2018-06-10 02:56:18 +02:00
Benjamin Otte
6546ef3459
picture: Introduce
...
This commit introduces GtkPicture, which is supposed to complement
GtkImage.
GtkImage will be adapted to always display an icon, while
GtkPicture displays regular imagery.
2018-06-10 02:23:02 +02:00