After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 491705 - The gail_renderer_cell_factory_get_accessible_type function returns a wrong type
The gail_renderer_cell_factory_get_accessible_type function returns a wrong type
Status: RESOLVED FIXED
Product: atk
Classification: Platform
Component: gail
git master
Other All
: Normal normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks:
 
 
Reported: 2007-10-30 13:30 UTC by Marcin Lyko
Modified: 2007-11-21 06:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch which resolves this problem (426 bytes, patch)
2007-10-30 13:50 UTC, Marcin Lyko
committed Details | Review

Description Marcin Lyko 2007-10-30 13:30:29 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:
Comment 1 Marcin Lyko 2007-10-30 13:50:46 UTC
Created attachment 98178 [details] [review]
Patch which resolves this problem