http://defect.opensolaris.org/bz/show_bug.cgi?id=10763
--- Comment #6 from Li Yuan <li.yuan at sun.com> 2009-09-15 03:21:28 UTC ---
(In reply to comment #5)
> From a quick look at the GAIL code, it would appear the it's assuming that the
> model contains a string - this is not correct, since now gtk+ uses a
> model/view
> mechanism via the GtkCellLayout interface, and this decides how or what to
> render.
>
> The default in a GtkComboBox is a TreeModel with a string, with a
> GtkCellRendererText, which has the "text" attribute to pull the string
> directly
> from the tree model.
>
> Gail should not be looking at the model but instead looking at the renderers
> list obtained by calling:
>
> GList *cells = gtk_cell_layout_get_cells( GTK_CELL_LAYOUT(combobox) );
>
> foreach (cell) {
> if GTK_IS_CELL_RENDERER_TEXT() ...
> get "text" value of renderer.
> else if ...
>
> and so on until it's able to get either a text renderer or something suitable,
> like a pixmap name (maybe), etc.
Yes. The problem is GAIL can not get the correct "text" information from the
renderer. Because GtkComboBox doesn't have set_cell_data function like
GtkTreeView.
>
> I've tried several mechanisms to fix this issue but everything I tried either
> crashed or entered a recursive loop, crashing again. I can't see any way to
> fix
> this without modifying gail.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.