sysprof r402 - trunk



Author: ssp
Date: Mon Mar 24 03:00:49 2008
New Revision: 402
URL: http://svn.gnome.org/viewvc/sysprof?rev=402&view=rev

Log:
+2008-03-23  Soren Sandmann <sandmann daimi au dk>
+
+       * sysprof.c (queue_show_samples): Update samples immediately when
+       reset and start is clicked.
+



Modified:
   trunk/ChangeLog
   trunk/sysprof.c

Modified: trunk/sysprof.c
==============================================================================
--- trunk/sysprof.c	(original)
+++ trunk/sysprof.c	Mon Mar 24 03:00:49 2008
@@ -105,10 +105,9 @@
 
 static void update_screenshot_window (Application *app);
 
-static gboolean
-show_samples_timeout (gpointer data)
+static void
+show_samples (Application *app)
 {
-    Application *app = data;
     char *label;
     int n_samples;
     
@@ -136,6 +135,14 @@
     gtk_label_set_label (GTK_LABEL (app->samples_label), label);
     
     g_free (label);
+}
+
+static gboolean
+show_samples_timeout (gpointer data)
+{
+    Application *app = data;
+
+    show_samples (app);
     
     app->timeout_id = 0;
     
@@ -246,7 +253,7 @@
     gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (app->screenshot_item),
 				    app->screenshot_window_visible);
     
-    queue_show_samples (app);
+    show_samples (app);
 }
 
 static void
@@ -316,8 +323,6 @@
     
     collector_reset (app->collector);
     
-    queue_show_samples (app);
-    
     app->profile_from_file = FALSE;
     set_application_title (app, NULL);
 }
@@ -373,6 +378,8 @@
 	delete_data (app);
 	
 	app->state = PROFILING;
+
+	show_samples (app);
     }
     else
     {
@@ -637,7 +644,7 @@
     fill_lists (app);
     
     app->state = DISPLAYING;
-    
+
     update_sensitivity (app);
 }
 



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