diff options
author | Kristian Rietveld <kris@imendio.com> | 2008-02-13 11:53:35 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2008-02-13 11:53:35 +0000 |
commit | ddf4aa8b3e211aaad470a5ea6da0331345c06d17 (patch) | |
tree | 5b539e51e67792b1a73d119ebc3e16b4b80e6833 | |
parent | 64264326c06466c54c81c39a2c96baa52af91852 (diff) | |
download | gtk+-ddf4aa8b3e211aaad470a5ea6da0331345c06d17.tar.gz |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gtk/gtktreeview.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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: diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index ce67dce9c7..6148372333 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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, |