diff options
author | Kristian Rietveld <kris@gtk.org> | 2011-01-07 15:35:35 +0100 |
---|---|---|
committer | Kristian Rietveld <kris@gtk.org> | 2011-01-07 15:38:06 +0100 |
commit | 4ed781778d4ea1cd2ff0cde37f8a3cf268a5fa80 (patch) | |
tree | 02509f905fc505de0ae4fc02058dd17f643348f4 /gtk/gtktreeprivate.h | |
parent | 688d0534362917a4ff171846e9e9cabb250b37c7 (diff) | |
download | gtk+-4ed781778d4ea1cd2ff0cde37f8a3cf268a5fa80.tar.gz |
Introduce gtk_tree_view_is_blank_at_pos()
This function is useful to figure out whether the tree view is "blank"
at a given location. For such locations you might want to popup a
custom popup menu, clear the current selection or start rubber banding.
In the future, we are planning on updating GtkTreeView's user
interactions to take advantage of this new function.
Part of bug 350618.
Diffstat (limited to 'gtk/gtktreeprivate.h')
-rw-r--r-- | gtk/gtktreeprivate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktreeprivate.h b/gtk/gtktreeprivate.h index 9ee61f1ef9..a47a17b5b0 100644 --- a/gtk/gtktreeprivate.h +++ b/gtk/gtktreeprivate.h @@ -126,6 +126,11 @@ GtkCellRenderer *_gtk_tree_view_column_get_cell_at_pos (GtkTreeViewColumn *co GdkRectangle *background_area, gint x, gint y); +gboolean _gtk_tree_view_column_is_blank_at_pos (GtkTreeViewColumn *column, + GdkRectangle *cell_area, + GdkRectangle *background_area, + gint x, + gint y); void _gtk_tree_view_column_cell_render (GtkTreeViewColumn *tree_column, cairo_t *cr, |