Re: Tooltips for GtkTreeView?



Jan-Oliver Wagner wrote:
 well, yes and no. I am bound to use GTK 2.4.
I was hoping for a pointer at some sample code (even inefficient).

I also am wondering if someone fidled this based on callbacks via  
gtk_tree_view_column_set_cell_data_func() ? IIUC, this would
be the other way around: have the path (and therefore context to tooltip)
and need to get position to raise tooltip. Wrong?

You can fake your own tooltips by using GtkWindow's created with 
GTK_WINDOW_POPUP.  Give the window a widget name of "gtk-tooltips", and 
GTK will assign the tooltip style to the widget (available as 
widget->style), so you can draw your text, background, etc. in 
accordance with the current theme.

- Michael






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