summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2007-06-06 12:54:35 +0000
committerKristian Rietveld <kristian@src.gnome.org>2007-06-06 12:54:35 +0000
commit8c07c5b129ea4d8f96df805b26d8647d84fd0f19 (patch)
treeb53f5cb563b5d248708332952f5fae6e02390875 /gtk/gtktreeviewcolumn.c
parent38b0ef28b04a802e0161bcbda24734651c0614cb (diff)
downloadgdk-pixbuf-8c07c5b129ea4d8f96df805b26d8647d84fd0f19.tar.gz
new function. (#342471, Lorenzo Gil Sanchez).
2007-06-06 Kristian Rietveld <kris@imendio.com> * 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
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c21
1 files changed, 21 insertions, 0 deletions
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"