summaryrefslogtreecommitdiff
path: root/gtk/gtkpicture.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Add detailsMatthias Clasen2021-01-161-0/+3
| | | | | Explain the difference between GtkPicture and GtkImage, and when you might want to use which.
* picture: Fix copy/paste error in docsBenjamin Otte2020-12-241-1/+1
|
* docs: Fix up GtkPicture docsMatthias Clasen2020-12-041-9/+9
| | | | These were missing proper linking.
* Add docs about sizing picturesBenjamin Otte2020-12-041-0/+12
| | | | Suggested by Christopher Davis.
* picture: Set alternative text as descriptionMatthias Clasen2020-10-221-0/+5
| | | | | Use the alternative text as accessible description for GtkPicture.
* docs: Fix a copy-paste errorMatthias Clasen2020-10-011-1/+1
|
* a11y: Set accessible roles for GtkImage and GtkPictureMatthias Clasen2020-07-281-0/+5
| | | | | Use the img accessible role for these. Also update the documentation and add tests.
* Remove ATKEmmanuele Bassi2020-07-261-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To build a better world sometimes means having to tear the old one down. -- Alexander Pierce, "Captain America: The Winter Soldier" ATK served us well for nearly 20 years, but the world has changed, and GTK has changed with it. Now ATK is mostly a hindrance towards improving the accessibility stack: - it maps to a very specific implementation, AT-SPI, which is Linux and Unix specific - it requires implementing the same functionality in three different layers of the stack: AT-SPI, ATK, and GTK - only GTK uses it; every other Linux and Unix toolkit and application talks to AT-SPI directly, including assistive technologies Sadly, we cannot incrementally port GTK to a new accessibility stack; since ATK insulates us entirely from the underlying implementation, we cannot replace it piecemeal. Instead, we're going to remove everything and then incrementally build on a clean slate: - add an "accessible" interface, implemented by GTK objects directly, which describe the accessible role and state changes for every UI element - add an "assistive technology context" to proxy a native accessibility API, and assign it to every widget - implement the AT context depending on the platform For more information, see: https://gitlab.gnome.org/GNOME/gtk/-/issues/2833
* Replace "gint" with "int"Benjamin Otte2020-07-251-4/+4
|
* picture: Don't leak alternative-testMatthias Clasen2020-07-081-0/+1
| | | | | This leak showed up while running the testsuite under asan.
* docs: Fix several missing references in the documentationCorentin Noël2020-05-111-1/+1
| | | | This fixes several typos and missing references
* Remove lots of focus vfuncsMatthias Clasen2020-05-111-2/+0
| | | | | In many cases, the default widget vfuncs work just fine, combined with setting focusable.
* Reinstate expected focus behaviorMatthias Clasen2020-04-091-0/+2
| | | | | | | | After the :can-focus change in the previous commit, widgets need to set suitable focus and grab_focus implementations to implement the desired focus behavior. This commit does that for all widgets.
* Use style values directlyMatthias Clasen2020-01-291-1/+3
| | | | | | | 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.
* picture: Unref previous paintableTimm Bäder2019-07-131-0/+2
| | | | We were leaking all of them.
* Remove gtk_widget_get/set_has_surfaceMatthias Clasen2019-05-281-2/+0
| | | | | These serve no purpose anymore - widgets don't have surfaces, unless they're a GtkNative.
* picture: Don't cause warnings on load failuresBenjamin Otte2019-03-291-1/+2
| | | | | | | 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.
* picture: Use new snapshot transformsBenjamin Otte2019-02-211-2/+3
|
* picture: Avoid some unnecessary signal connectionsTimm Bäder2018-12-311-14/+24
| | | | | We don't need to ever invalidate the picture size if the paintable tells us its size is static. Same for the contents.
* picture: Fix doc typoTimm Bäder2018-08-251-1/+1
|
* Fix a few documentation warningsTimm Bäder2018-07-081-3/+3
|
* picture: Fix up some docsTimm Bäder2018-06-181-31/+31
| | | | | Use nullable instead of allow-none consistently, remove trailing whitespace and fix some c&p problems.
* picture: Fix g-i annotation warningRico Tzschichholz2018-06-131-1/+1
|
* picture: Don't use g_str_equal() with potential NULLsBenjamin Otte2018-06-101-1/+1
|
* picture: IntroduceBenjamin Otte2018-06-101-0/+975
This commit introduces GtkPicture, which is supposed to complement GtkImage. GtkImage will be adapted to always display an icon, while GtkPicture displays regular imagery.