summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-04 19:05:52 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-05 00:07:17 +0100
commit2d959553e9de3dd11778c7fc22b8d759de90b729 (patch)
treedac80f67526dc8f87ff7d308ea791075d653061b /gtk/a11y
parent481b5d1b8937fb53d7ef2753cfb3a8a03cfb43a1 (diff)
downloadgtk+-2d959553e9de3dd11778c7fc22b8d759de90b729.tar.gz
image: Add the ability to set textures
This also adds it to all other places that use the same infrastructure: GtkEntry and GtkCellRendererPixbuf
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkimageaccessible.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/a11y/gtkimageaccessible.c b/gtk/a11y/gtkimageaccessible.c
index be2a3c5761..338d894e22 100644
--- a/gtk/a11y/gtkimageaccessible.c
+++ b/gtk/a11y/gtkimageaccessible.c
@@ -279,6 +279,15 @@ gtk_image_accessible_get_image_size (AtkImage *image,
*width = cairo_image_surface_get_width (surface);
break;
}
+ case GTK_IMAGE_TEXTURE:
+ {
+ GdkTexture *texture;
+
+ texture = gtk_image_get_texture (gtk_image);
+ *height = gdk_texture_get_height (texture);
+ *width = gdk_texture_get_width (texture);
+ break;
+ }
case GTK_IMAGE_ICON_NAME:
case GTK_IMAGE_GICON:
{