+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>
* module/sysprof-module.c (trace_kernel): Use kernel builtin
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;
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;
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
collector_reset (app->collector);
- queue_show_samples (app);
-
app->profile_from_file = FALSE;
set_application_title (app, NULL);
}
delete_data (app);
app->state = PROFILING;
+
+ show_samples (app);
}
else
{
fill_lists (app);
app->state = DISPLAYING;
-
+
update_sensitivity (app);
}