summaryrefslogtreecommitdiff
path: root/gtk/gtkpango.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove ATKEmmanuele Bassi2020-07-261-1017/+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 "gchar" with "char"Benjamin Otte2020-07-251-13/+13
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-48/+48
|
* Drop pango version checksMatthias Clasen2020-06-061-4/+0
| | | | | We are requiring pango 1.45.0 now, so no need to Keep these ifdefs in the code any longer.
* Cosmetics: Replace GtkContainer in an error messageMatthias Clasen2020-05-111-1/+1
| | | | | | GtkWidget is not that much better here, unfortunately. Adapt the testsuite to match.
* Move label attribute parser codeMatthias Clasen2020-04-061-0/+294
| | | | | We want to reuse the parser for <attributes> in several widgets, so move it to a shared place.
* render: Make gtk_render_layout() use the snapshot APIBenjamin Otte2018-07-241-206/+0
| | | | This removes a lot of duplicated code.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+30
| | | | | | | | | | | | | | | | | | | 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.
* gtkpango: Remove unused functionsTimm Bäder2017-08-151-75/+5
| | | | | Remove _gtk_pango_move_lines and a few function declarations in the private header file since they are only used inside gtkpango.c
* pango: make merge_attrs return the merged listPaolo Borelli2015-07-061-4/+14
| | | | This simplifies all the callers
* pango: move an utility function from gtklabelPaolo Borelli2015-07-061-0/+22
| | | | This will be used both by gtklabel and gtkentry
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-1/+1
|
* Revert "pango: Handle case where pango_layout_get_text() returns NULL"Benjamin Otte2013-09-091-3/+3
| | | | | | | | | | This reverts commit 70ac2b24c3d400c854d8a9e0937afa076f9dbe7f. It turns out the correct fix is to make pango_layout_get_text() not return NULL. This has been done, so we can drop this patch. I won't bump the Pango dependency in configure.ac for this as I don't consider the crash critical enough.
* pango: Handle case where pango_layout_get_text() returns NULLBenjamin Otte2013-09-091-3/+3
| | | | | | Fixes crashers with accessibility https://bugzilla.gnome.org/show_bug.cgi?id=707659
* gtk: Add get_type() function declarations for private objectsBenjamin Otte2012-10-021-0/+2
| | | | | | | | | I'm adding a bunch of fixes for gcc complaining about -Wmissing-declarations. This set of patches makes private classes in gtk/*.c that use G_DEFINE_TYPE() safe by adding definitions for the get_type() function that can't be made static.
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|
* Improve AtkText implementationsMatthias Clasen2011-11-191-4/+4
| | | | | | There was some regressions from the recent display line fix; while fixing it improve the test coverage and make GtkEntry and GtkTextView return identical results.
* Silence a compiler warningMatthias Clasen2011-08-271-0/+1
|
* gtkpango: Count letters properlyBenjamin Otte2011-07-071-1/+1
| | | | The code was using the wrong variable and that then caused assertions
* Add some aux. pango api to help AtkText implementationsMatthias Clasen2011-07-051-1/+1057
| | | | | | | | These functions are implementations of the AtkText api on top of a PangoLayout, and are intended to replace GailTextUtil. Since gtkpango.h is a private header, also remove the individual inclusion prohibition.
* label: Draw all text using PangoCairoBenjamin Otte2010-08-101-0/+233
This includes the addition of a "small" helper function, _gtk_pango_fill_layout() that ignores color information. This functionality is not available inside Pango and until that happens, we need this fix. The bug is filed at: https://bugzilla.gnome.org/show_bug.cgi?id=624917