only queue a redraw if the rubber banding has actually been active.

2008-02-13  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeview.c (gtk_tree_view_stop_rubber_band): only
	queue a redraw if the rubber banding has actually been active.


svn path=/trunk/; revision=19556
This commit is contained in:
Kristian Rietveld 2008-02-13 11:53:35 +00:00 committed by Kristian Rietveld
parent 64264326c0
commit ddf4aa8b3e
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-13 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_stop_rubber_band): only
queue a redraw if the rubber banding has actually been active.
2008-02-12 Matthias Clasen <mclasne@redhat.com>
* gtk/gtkpapersize.c:

View File

@ -3675,12 +3675,12 @@ gtk_tree_view_stop_rubber_band (GtkTreeView *tree_view)
remove_scroll_timeout (tree_view);
gtk_grab_remove (GTK_WIDGET (tree_view));
gtk_widget_queue_draw (GTK_WIDGET (tree_view));
if (tree_view->priv->rubber_band_status == RUBBER_BAND_ACTIVE)
{
GtkTreePath *tmp_path;
gtk_widget_queue_draw (GTK_WIDGET (tree_view));
/* The anchor path should be set to the start path */
tmp_path = _gtk_tree_view_find_path (tree_view,
tree_view->priv->rubber_band_start_tree,