summaryrefslogtreecommitdiff
path: root/gtk/a11y/gtklabelaccessible.c
Commit message (Collapse)AuthorAgeFilesLines
* Continue renaming window to surfaceAlexander Larsson2018-03-211-20/+20
| | | | This renames a lot of arguments, local variables and functions.
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-2/+2
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* GdkWindow -> GdkSurface initial type renameAlexander Larsson2018-03-201-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames the GdkWindow class and related classes (impl, backend subclasses) to surface. Additionally it renames related types: GdkWindowAttr, GdkWindowPaint, GdkWindowWindowClass, GdkWindowType, GdkWindowTypeHint, GdkWindowHints, GdkWindowState, GdkWindowEdge This is an automatic conversion using the below commands: git sed -f g GdkWindowWindowClass GdkSurfaceSurfaceClass git sed -f g GdkWindow GdkSurface git sed -f g "gdk_window\([ _\(\),;]\|$\)" "gdk_surface\1" # Avoid hitting gdk_windowing git sed -f g "GDK_WINDOW\([ _\(]\|$\)" "GDK_SURFACE\1" # Avoid hitting GDK_WINDOWING git sed "GDK_\([A-Z]*\)IS_WINDOW\([_ (]\|$\)" "GDK_\1IS_SURFACE\2" git sed GDK_TYPE_WINDOW GDK_TYPE_SURFACE git sed -f g GdkPointerWindowInfo GdkPointerSurfaceInfo git sed -f g "BROADWAY_WINDOW" "BROADWAY_SURFACE" git sed -f g "broadway_window" "broadway_surface" git sed -f g "BroadwayWindow" "BroadwaySurface" git sed -f g "WAYLAND_WINDOW" "WAYLAND_SURFACE" git sed -f g "wayland_window" "wayland_surface" git sed -f g "WaylandWindow" "WaylandSurface" git sed -f g "X11_WINDOW" "X11_SURFACE" git sed -f g "x11_window" "x11_surface" git sed -f g "X11Window" "X11Surface" git sed -f g "WIN32_WINDOW" "WIN32_SURFACE" git sed -f g "win32_window" "win32_surface" git sed -f g "Win32Window" "Win32Surface" git sed -f g "QUARTZ_WINDOW" "QUARTZ_SURFACE" git sed -f g "quartz_window" "quartz_surface" git sed -f g "QuartzWindow" "QuartzSurface" git checkout NEWS* po-properties
* Fix fallout from g_object_ref changeMatthias Clasen2017-12-081-1/+1
| | | | | | g_object_ref now returns the type of the object that was passed. Introduce cast as necessary to avoid warnings due to this.
* GtkLabelAccessible: Initialize link before setting parentFlorian Müllner2016-11-231-1/+1
| | | | | | | | Since at-spi-atk commit 96621a5e95 fixed PropertyChange notifications for AccessibleParent, setting the parent will result in a call to ref_state_set() which assumes that the object is fully initialized. https://bugzilla.gnome.org/show_bug.cgi?id=774939
* API: stylecontext: Remove state argument from gettersBenjamin Otte2016-10-161-2/+1
| | | | The argument must always be the current state.
* stylecontext: Move private a11y function to private headerBenjamin Otte2014-08-161-0/+1
|
* GtkLabelAccessible: reorganize the codeMatthias Clasen2014-01-041-147/+172
| | | | | Separate the GtkLabelAccessible, GtkLabelAccessibleLink and GtkLabelAccessibleLinkImpl implementations more clearly.
* GtkLabelAccessible: update state of linksMatthias Clasen2014-01-041-1/+60
| | | | | | | | This commit makes the LinkImpl children of label accessibles inherit all their state, except for focused and visited, which are handled directly. https://bugzilla.gnome.org/show_bug.cgi?id=721406
* GtkLabelAccessible: Implement AtkHypertextMatthias Clasen2014-01-041-6/+394
| | | | | | | | | | | | | | | This commit makes the label accessible implement AtkHypertext, which returns a AtkHyperlink object for each link in the text. At the same time, add AtkHyperlinkImpl objects as children to the label accessible. Also some private API to indicate that links have changed, and call that from GtkLabel when needed. Adjust expected output of the affected a11y tests. https://bugzilla.gnome.org/show_bug.cgi?id=721410 https://bugzilla.gnome.org/show_bug.cgi?id=721421
* Add a gtklabelprivate.h headerMatthias Clasen2014-01-041-0/+1
| | | | For now, move the few private functions from gtklabel.h here.
* a11y: Use new macros for defining private dataEmmanuele Bassi2013-07-091-5/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* a11y: Emit text-changed signals directlyBenjamin Otte2013-03-151-49/+42
| | | | | | | | When setting new text on the label, the text-changed::delete signal needs to be emitted before deleting the text (so that atk-bridge can query the old text) while the text-changed::insert event needs to happen afterwards (for the same reason). The old code using the notify signal was only emitted after changing the text.
* GtkLabelAccessible: Sanity check _get_text() input valuesBastien Nocera2013-03-061-1/+15
|
* CosmeticsMatthias Clasen2012-12-271-1/+1
| | | | Replace GAIL in top comments by 'GTK+ - accessibility implementations'.
* Make accessible implementations publicMatthias Clasen2012-12-271-9/+9
| | | | | | | | | | | | | | This commit exposes the get_type() functions and standard headers for accessible implementations. This makes it possible to derive from the GTK accessible implementations without GType magic tricks. This is necessary, because we require the a11y type hierarchy to be parallel to the widget type hierarchy. So, if you derive a widget and need to adjust its a11y implementation, you have to be able to derive its accessible implementation. This commit probably exposes more than is absolutely necessary, it also exposes accessibles of widgets that are unlikely candidates for deriving from.
* GtkLabelAccessible: add a private structMatthias Clasen2012-10-141-12/+23
| | | | | Move instance fields to a private struct, in preparation for installing a11y headers.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Fix cut-and-paste error in GtkEntryAccessible/GtkLabelAccessibleDan Winship2011-08-101-1/+1
| | | | | The y position of the character depends on the window's y coordinate, not its x coordinate.
* accellabel: Use gtk_widget_class_set_accessible_role()Benjamin Otte2011-07-181-4/+1
|
* Avoid a compiler warningMatthias Clasen2011-07-171-2/+2
|
* GtkLabelAccessible: avoid extra selection-changed emissionsMatthias Clasen2011-07-161-6/+33
| | | | | | | This copies the same code that the entry accessible uses to check for selection changes. https://bugzilla.gnome.org/show_bug.cgi?id=654428
* Avoid compiler warningsMatthias Clasen2011-07-101-2/+2
| | | | | The text variable in gtk_label_accessible_get_selection was shadowing a parameter of the same name.
* Avoid unnecessary includesMatthias Clasen2011-07-101-6/+4
| | | | | Including string.h makes the compiler complain about parameters and variables called index, which is not nice.
* Reduce the number of unwanted exportsMatthias Clasen2011-07-091-9/+9
| | | | | _-prefix most of the get_type functions in a11y/. There are still some more symbols left.
* Add a forgotten staticMatthias Clasen2011-07-091-1/+1
|
* Initial conversion of GailWidget to GtkWidgetAccessibleMatthias Clasen2011-07-051-3/+3
|
* GtkLabelAccessible: drop an unneeded includeMatthias Clasen2011-07-051-1/+0
| | | | We eventually want to get rid of gailmisc, so this is progress.
* GtkLabelAccessible: avoid some pointless variablesMatthias Clasen2011-07-051-4/+3
|
* GtkLabelAccessible: some selection handling fixesMatthias Clasen2011-07-051-1/+5
| | | | | Don't move the cursor to 0 when removing the selection, and don't overlook growing selections.
* Trivial whitespace fixMatthias Clasen2011-07-051-1/+1
|
* Port GtkLabelAccessible from GailTextUtil to GtkPango apiMatthias Clasen2011-07-051-480/+293
| | | | | | Unfortunately, we still keep a copy of the text around, for ::insert/::delete signals; those emissions need to be moved to GtkLabel itself.
* GtkLabelAccessible: remove redundant checkMatthias Clasen2011-07-051-41/+7
| | | | | We always have the textutil now, so remove some NULL checks. Also, never say 'State is defunct' again...
* GtkLabelAccessible: remove broken workaroundsMatthias Clasen2011-07-051-60/+5
| | | | | | | This removes a horrible workaround for bug 126797. To prevent picking up accidental markup in label texts, the label accessible is listening for window creation and mapping and defers initializing its text until then.
* GailLabel -> GtkLabelAccessibleMatthias Clasen2011-07-051-0/+1005
A first experimental conversion from the gail namespace to gtkaccessible. At the same time, use gtk_widget_class_set_accessible_type() to register the accessible type for GtkLabel.