From 8c07c5b129ea4d8f96df805b26d8647d84fd0f19 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Wed, 6 Jun 2007 12:54:35 +0000 Subject: new function. (#342471, Lorenzo Gil Sanchez). 2007-06-06 Kristian Rietveld * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_get_tree_view): new function. (#342471, Lorenzo Gil Sanchez). * gtk/gtk.symbols: updated. svn path=/trunk/; revision=18053 --- gtk/gtktreeviewcolumn.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gtk/gtktreeviewcolumn.c') diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 154bd2257..b913f3d9c 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -3711,5 +3711,26 @@ gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column) _gtk_tree_view_column_cell_set_dirty (tree_column, TRUE); } +/** + * gtk_tree_view_column_get_tree_view: + * @tree_column: A #GtkTreeViewColumn + * + * Returns the #GtkTreeView wherein @tree_column has been inserted. If + * @column is currently not inserted in any tree view, %NULL is + * returned. + * + * Return value: The tree view wherein @column has been inserted if any, + * %NULL otherwise. + * + * Since: 2.12 + */ +GtkWidget * +gtk_tree_view_column_get_tree_view (GtkTreeViewColumn *tree_column) +{ + g_return_val_if_fail (GTK_IS_TREE_VIEW_COLUMN (tree_column), NULL); + + return tree_column->tree_view; +} + #define __GTK_TREE_VIEW_COLUMN_C__ #include "gtkaliasdef.c" -- cgit v1.2.1