Commit 80f3a033 authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

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
parent e31679a9
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
......
......@@ -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
......
......@@ -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
......
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment