[gedit] Work around to avoid high cpu use.



commit 3dc252f32a02b3c8e884f839fe6f41af9af22620
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Dec 30 15:11:09 2010 +0100

    Work around to avoid high cpu use.
    
    Kudos to Jesse van den Kieboom for finding out the solution.

 gedit/gedit-tab-label.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-tab-label.c b/gedit/gedit-tab-label.c
index 63babbe..6e18b2d 100644
--- a/gedit/gedit-tab-label.c
+++ b/gedit/gedit-tab-label.c
@@ -184,8 +184,8 @@ sync_state (GeditTab      *tab,
 
 		gtk_widget_show (tab_label->priv->icon);
 
-		gtk_widget_hide (tab_label->priv->spinner);
 		gtk_spinner_stop (GTK_SPINNER (tab_label->priv->spinner));
+		gtk_widget_hide (tab_label->priv->spinner);
 	}
 
 	/* sync tip since encoding is known only after load/save end */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]