RE: How could I set tool tips on cells in a TreeView?



Is there a way to get a widget handle on a cell in a
TreeView (gtk 2.0+) so I could add a tool tip to that 
cell?

There is no API in GTK currently to do this and it is a common question about the treeview.


I didn't see anything but a cell-render that has
anything to do with displaying the cells. Is there a
way to use the mechanism for getting the data for the
model by row/col to also get the widget and then set a
tooltip?

Yes, im sure you can set the tooltip for the View itself (and not the cell) - it might be a bit tricky 
getting the cell under the mouse.

I would have a look at the source for GAIM.  They use tooltips for each cell in their GtkTreeView (or so it 
seems) - that might give you more insight.

Regards,
Martyn



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