http://defect.opensolaris.org/bz/show_bug.cgi?id=10763



--- Comment #5 from Darren Kenny <dkenny at opensolaris.org> 2009-09-14 
16:03:23 UTC ---
>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.

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.

Reply via email to