![]() |
![]() |
![]() |
libsexy Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
SexyTreeView; GtkWidget * sexy_tree_view_new (void
); void sexy_tree_view_set_tooltip_label_column (SexyTreeView *treeview
,guint column
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----SexyTreeView
SexyTreeView is a GtkTreeView which supports tooltips on individual cells. These tooltips can be either text (stored in a column of the tree model) or widgets, created through a signal handler.
typedef struct _SexyTreeView SexyTreeView;
The SexyTreeView struct contains private data only, and should be manipulated using the functions below.
GtkWidget * sexy_tree_view_new (void
);
Creates a new SexyTreeView widget
Returns : |
a new SexyTreeView |
void sexy_tree_view_set_tooltip_label_column (SexyTreeView *treeview
,guint column
);
Sets a column of the view's model to be used for the text in tooltips.
|
A SexyTreeView |
|
The column of the tree model to use for tooltip text. |
"get-tooltip"
signalGtkWidget* user_function (SexyTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data) : Run Last
The ::get-tooltip signal is emitted when the user's mouse hovers over a cell in the tree for longer than 500ms.
|
The treeview on which the signal is emitted. |
|
The path of the row on which the user is hovering. |
|
The column on which the user is hovering. |
|
user data set when the signal handler was connected. |
Returns : |
a GtkWidget to put in the tooltip window. If NULL is returned, no tooltip will be shown. |