+2008-03-23 Soren Sandmann <sandmann@daimi.au.dk>

+
+       * sysprof.c (queue_show_samples): Update samples immediately when
+       reset and start is clicked.
+


svn path=/trunk/; revision=402
This commit is contained in:
Søren Sandmann Pedersen
2008-03-24 03:00:49 +00:00
parent c2de993836
commit 26822b100c
2 changed files with 19 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2008-03-23 Soren Sandmann <sandmann@daimi.au.dk>
* sysprof.c (queue_show_samples): Update samples immediately when
reset and start is clicked.
2008-03-20 Soren Sandmann <sandmann@redhat.com> 2008-03-20 Soren Sandmann <sandmann@redhat.com>
* module/sysprof-module.c (trace_kernel): Use kernel builtin * module/sysprof-module.c (trace_kernel): Use kernel builtin

View File

@ -105,10 +105,9 @@ struct Application
static void update_screenshot_window (Application *app); static void update_screenshot_window (Application *app);
static gboolean static void
show_samples_timeout (gpointer data) show_samples (Application *app)
{ {
Application *app = data;
char *label; char *label;
int n_samples; int n_samples;
@ -136,6 +135,14 @@ show_samples_timeout (gpointer data)
gtk_label_set_label (GTK_LABEL (app->samples_label), label); gtk_label_set_label (GTK_LABEL (app->samples_label), label);
g_free (label); g_free (label);
}
static gboolean
show_samples_timeout (gpointer data)
{
Application *app = data;
show_samples (app);
app->timeout_id = 0; app->timeout_id = 0;
@ -246,7 +253,7 @@ update_sensitivity (Application *app)
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (app->screenshot_item), gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (app->screenshot_item),
app->screenshot_window_visible); app->screenshot_window_visible);
queue_show_samples (app); show_samples (app);
} }
static void static void
@ -316,8 +323,6 @@ delete_data (Application *app)
collector_reset (app->collector); collector_reset (app->collector);
queue_show_samples (app);
app->profile_from_file = FALSE; app->profile_from_file = FALSE;
set_application_title (app, NULL); set_application_title (app, NULL);
} }
@ -373,6 +378,8 @@ on_start_toggled (GtkWidget *widget, gpointer data)
delete_data (app); delete_data (app);
app->state = PROFILING; app->state = PROFILING;
show_samples (app);
} }
else else
{ {