gtk+ r22049 - in branches/gtk-2-14: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22049 - in branches/gtk-2-14: . gtk
- Date: Sat, 3 Jan 2009 07:09:46 +0000 (UTC)
Author: matthiasc
Date: Sat Jan 3 07:09:46 2009
New Revision: 22049
URL: http://svn.gnome.org/viewvc/gtk+?rev=22049&view=rev
Log:
* gtk/gtkiconview.c: (gtk_icon_view_accessible_model_row_changed):
Bug #549251. No need to set name if there is no a11y item object.
Modified:
branches/gtk-2-14/ChangeLog
branches/gtk-2-14/gtk/gtkiconview.c
Modified: branches/gtk-2-14/gtk/gtkiconview.c
==============================================================================
--- branches/gtk-2-14/gtk/gtkiconview.c (original)
+++ branches/gtk-2-14/gtk/gtkiconview.c Sat Jan 3 07:09:46 2009
@@ -8896,20 +8896,23 @@
index = gtk_tree_path_get_indices(path)[0];
a11y_item = gtk_icon_view_accessible_find_child (atk_obj, index);
- widget = GTK_ACCESSIBLE (atk_obj)->widget;
- icon_view = GTK_ICON_VIEW (widget);
- item = a11y_item->item;
+ if (a11y_item)
+ {
+ widget = GTK_ACCESSIBLE (atk_obj)->widget;
+ icon_view = GTK_ICON_VIEW (widget);
+ item = a11y_item->item;
- name = gtk_icon_view_item_accessible_get_name (ATK_OBJECT (a11y_item));
+ name = gtk_icon_view_item_accessible_get_name (ATK_OBJECT (a11y_item));
- if (!name || strcmp (name, "") == 0)
- {
- gtk_icon_view_set_cell_data (icon_view, item);
- text = get_text (icon_view, item);
- if (text)
+ if (!name || strcmp (name, "") == 0)
{
- gtk_text_buffer_set_text (a11y_item->text_buffer, text, -1);
- g_free (text);
+ gtk_icon_view_set_cell_data (icon_view, item);
+ text = get_text (icon_view, item);
+ if (text)
+ {
+ gtk_text_buffer_set_text (a11y_item->text_buffer, text, -1);
+ g_free (text);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]