Re: Tooltips for GtkTreeView?
- From: Michael Ekstrand <mekstran scl ameslab gov>
- To: Jan-Oliver Wagner <jan-oliver wagner intevation de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Tooltips for GtkTreeView?
- Date: Fri, 02 Mar 2007 09:53:30 -0600
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]