gtk+ r21872 - trunk/modules/other/gail



Author: liyuan
Date: Fri Dec 12 06:12:27 2008
New Revision: 21872
URL: http://svn.gnome.org/viewvc/gtk+?rev=21872&view=rev

Log:
2008-12-12  Li Yuan  <li yuan sun com>

        * gailtreeview.c: Bug #512743.
        (gail_tree_view_changed_gtk): Clean cell before go through the info
        list, for "changed" signal could come before a "row-deleted".
        (clean_cell_info):
        Prevent the thread to be scheduled before clean_cell_info
        finish its job.


Modified:
   trunk/modules/other/gail/ChangeLog
   trunk/modules/other/gail/gailtreeview.c

Modified: trunk/modules/other/gail/gailtreeview.c
==============================================================================
--- trunk/modules/other/gail/gailtreeview.c	(original)
+++ trunk/modules/other/gail/gailtreeview.c	Fri Dec 12 06:12:27 2008
@@ -2422,6 +2422,8 @@
 
   tree_selection = gtk_tree_view_get_selection (tree_view);
 
+  clean_rows (gailview);
+
   for (l = cell_list; l; l = l->next)
     {
       info = (GailTreeViewCellInfo *) (l->data);
@@ -3529,7 +3531,7 @@
   if (cell_info->in_use) {
       obj = G_OBJECT (cell_info->cell);
       
-      gail_cell_add_state (cell_info->cell, ATK_STATE_DEFUNCT, TRUE);
+      gail_cell_add_state (cell_info->cell, ATK_STATE_DEFUNCT, FALSE);
       g_object_weak_unref (obj, (GWeakNotify) cell_destroyed, cell_info);
       cell_info->in_use = FALSE; 
       if (!gailview->garbage_collection_pending) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]