After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 461225 - gtk_tree_view_set_tooltip_cell() documentation: cell
gtk_tree_view_set_tooltip_cell() documentation: cell
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.11.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2007-07-28 13:35 UTC by Murray Cumming
Modified: 2007-07-30 10:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2007-07-28 13:35:16 UTC
Either the documentation or the signature of gtk_tree_view_set_tooltip_cell() is wrong. It takes a GtkCellRenderer* but the documentation says that it must be a GtkCellRendererText*.

/**
 * gtk_tree_view_set_tooltip_cell:
 * @tree_view: a #GtkTreeView
 * @tooltip: a #GtkTooltip
 * @path: a #GtkTreePath or %NULL
 * @column: a #GtkTreeViewColumn or %NULL
 * @cell: a #GtkCellRendererText or %NULL
 *
 * Sets the tip area of @tooltip to the area @path, @column and @cell have
 * in common.  For example if @path is %NULL and @column is set, the tip
 * area will be set to the full area covered by @column.  See also
 * gtk_tooltip_set_tip_area().
 *
 * Since: 2.12
 */
void
gtk_tree_view_set_tooltip_cell (GtkTreeView       *tree_view,
				GtkTooltip        *tooltip,
				GtkTreePath       *path,
				GtkTreeViewColumn *column,
				GtkCellRenderer   *cell)
Comment 1 Kristian Rietveld 2007-07-30 10:59:11 UTC
Typo in the docs, fixed on trunk.  Thanks for reporting!