From 41d2a4d059d881d8d05419013ae4946a81b308cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 23 Jun 2010 22:56:13 +0200 Subject: [PATCH] Use accessor funtions to acces GtkImage --- modules/other/gail/gailimage.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/other/gail/gailimage.c b/modules/other/gail/gailimage.c index 6a3ea1a5f9..d17e59342b 100644 --- a/modules/other/gail/gailimage.c +++ b/modules/other/gail/gailimage.c @@ -125,6 +125,7 @@ gail_image_get_name (AtkObject *accessible) GtkImage *image; GailImage *image_accessible; GtkStockItem stock_item; + gchar *stock_id; const gchar *name; name = ATK_OBJECT_CLASS (gail_image_parent_class)->get_name (accessible); @@ -145,11 +146,12 @@ gail_image_get_name (AtkObject *accessible) g_free (image_accessible->stock_name); image_accessible->stock_name = NULL; - if (image->storage_type != GTK_IMAGE_STOCK || - image->data.stock.stock_id == NULL) + gtk_image_get_stock (image, &stock_id, NULL); + if (gtk_image_get_storage_type (image) != GTK_IMAGE_STOCK || + stock_id == NULL) return NULL; - if (!gtk_stock_lookup (image->data.stock.stock_id, &stock_item)) + if (!gtk_stock_lookup (stock_id, &stock_item)) return NULL; image_accessible->stock_name = elide_underscores (stock_item.label);