[gtk+/refactor: 58/106] Use accessor funtions to acces GtkImage
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 58/106] Use accessor funtions to acces GtkImage
- Date: Tue, 13 Jul 2010 17:34:52 +0000 (UTC)
commit 097f06742b7b4d1ee19d85098e8980247accc6fe
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jun 23 22:56:13 2010 +0200
Use accessor funtions to acces GtkImage
modules/other/gail/gailimage.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/modules/other/gail/gailimage.c b/modules/other/gail/gailimage.c
index 6a3ea1a..d17e593 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]