new function to check whether a rubber banding operation is currently

2007-07-02  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtk.symbols:
	* gtk/gtktreeview.[ch] (gtk_tree_view_is_rubber_banding_active): new
	function to check whether a rubber banding operation is currently
	active.  (#393579, Christian Neumair).


svn path=/trunk/; revision=18344
This commit is contained in:
Kristian Rietveld 2007-07-02 17:33:25 +00:00 committed by Kristian Rietveld
parent e31679a98f
commit 80f3a03319
4 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-07-02 Kristian Rietveld <kris@gtk.org>
* gtk/gtk.symbols:
* gtk/gtktreeview.[ch] (gtk_tree_view_is_rubber_banding_active): new
function to check whether a rubber banding operation is currently
active. (#393579, Christian Neumair).
2007-07-02 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -4421,6 +4421,7 @@ gtk_tree_view_get_visible_rect
gtk_tree_view_insert_column
gtk_tree_view_insert_column_with_attributes G_GNUC_NULL_TERMINATED
gtk_tree_view_insert_column_with_data_func
gtk_tree_view_is_rubber_banding_active
gtk_tree_view_map_expanded_rows
gtk_tree_view_move_column_after
gtk_tree_view_new

View File

@ -14800,6 +14800,30 @@ gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view)
return tree_view->priv->rubber_banding_enable;
}
/**
* gtk_tree_view_is_rubber_banding_active:
* @tree_view: a #GtkTreeView
*
* Returns whether a rubber banding operation is currently being done
* in @tree_view.
*
* Return value: %TRUE if a rubber banding operation is currently being
* done in @tree_view.
*
* Since: 2.12
**/
gboolean
gtk_tree_view_is_rubber_banding_active (GtkTreeView *tree_view)
{
g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), FALSE);
if (tree_view->priv->rubber_banding_enable
&& tree_view->priv->rubber_band_status == RUBBER_BAND_ACTIVE)
return TRUE;
return FALSE;
}
/**
* gtk_tree_view_get_row_separator_func:
* @tree_view: a #GtkTreeView

View File

@ -381,6 +381,8 @@ void gtk_tree_view_set_rubber_banding (GtkTreeView *tree_view,
gboolean enable);
gboolean gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view);
gboolean gtk_tree_view_is_rubber_banding_active (GtkTreeView *tree_view);
GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view);
void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view,
GtkTreeViewRowSeparatorFunc func,