diff options
author | Christian Neumair <cneumair@gnome.org> | 2008-07-31 00:14:14 +0000 |
---|---|---|
committer | Christian Neumair <cneumair@src.gnome.org> | 2008-07-31 00:14:14 +0000 |
commit | e6c8efa165242b7f74c50a5485f6001c5303d09c (patch) | |
tree | 3b92fad8a5b226a80adf6b57dcf5e6b00d764fe4 /libnautilus-private/nautilus-tree-view-drag-dest.c | |
parent | bce5290a1944e93350eaf3a15d3905859fb28b05 (diff) | |
download | nautilus-e6c8efa165242b7f74c50a5485f6001c5303d09c.tar.gz |
Only queue a redraw if widget state actually changed. Fixes massive
2008-07-31 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-tree-view-drag-dest.c
(set_widget_highlight):
Only queue a redraw if widget state actually changed. Fixes massive
flickering issues when dragging over list view. Fixes #524282.
svn path=/trunk/; revision=14430
Diffstat (limited to 'libnautilus-private/nautilus-tree-view-drag-dest.c')
-rw-r--r-- | libnautilus-private/nautilus-tree-view-drag-dest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-tree-view-drag-dest.c b/libnautilus-private/nautilus-tree-view-drag-dest.c index 66ff0bcf5..87d5ab078 100644 --- a/libnautilus-private/nautilus-tree-view-drag-dest.c +++ b/libnautilus-private/nautilus-tree-view-drag-dest.c @@ -197,6 +197,7 @@ set_widget_highlight (NautilusTreeViewDragDest *dest, gboolean highlight) g_signal_handler_disconnect (dest->details->tree_view, dest->details->highlight_id); dest->details->highlight_id = 0; + gtk_widget_queue_draw (GTK_WIDGET (dest->details->tree_view)); } if (highlight && !dest->details->highlight_id) { @@ -205,8 +206,8 @@ set_widget_highlight (NautilusTreeViewDragDest *dest, gboolean highlight) "expose_event", G_CALLBACK (highlight_expose), dest, 0); + gtk_widget_queue_draw (GTK_WIDGET (dest->details->tree_view)); } - gtk_widget_queue_draw (GTK_WIDGET (dest->details->tree_view)); } static void |