GNOME Bugzilla – Bug 491705
The gail_renderer_cell_factory_get_accessible_type function returns a wrong type
Last modified: 2007-11-21 06:45:07 UTC
Please describe the problem: The gail_renderer_cell_factory_get_accessible_type(in a gail/gailrenderercellfactory.c file) function returns GAIL_TYPE_CELL instead of GAIL_TYPE_RENDERER_CELL. What is a bug, because it causes setting a bad type of parent of atk object of an own defined GTK_TYPE_CELL_RENDERER types. Next it makes troubles if we use our cell renderer with GtkTreeView and we try to get into the renderer via AT(see the gail_tree_view_ref_child from gail/gailtreeview.c file). Steps to reproduce: 1. Define own GTK_TYPE_CELL_RENDERER type 2. Implement ATK interfaces for the type(outside of Gail) 3. Write an example application, which uses definded renderer together with GtkTreeView. 4. Try to access into some cell of GtkTreeView via AT. Actual results: NULL object is returned. Expected results: GtkAccessible object is returned which represents an object of own defined GTK_TYPE_CELL_RENDERER type. Does this happen every time? Yes Other information:
Created attachment 98178 [details] [review] Patch which resolves this problem