small cleanup

This commit is contained in:
Paolo Borelli
2006-07-31 18:52:12 +00:00
parent d43cdf3c14
commit 23d3a36a4a
2 changed files with 15 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2006-07-31 Paolo Borelli <pborelli@katamail.com>
* sysprof.c (expand_descendants_tree): small cleanup.
2006-07-31 Soren Sandmann <sandmann@redhat.com>
* stackstash.[ch]: Add a destroy notifier to StackStash

View File

@ -965,25 +965,25 @@ expand_descendants_tree (Application *app)
{
GtkTreePath *path = list->data;
GtkTreeIter iter;
double value;
g_assert (path != NULL);
if (gtk_tree_model_get_iter (model, &iter, path))
{
double value;
gtk_tree_model_get (model, &iter,
OBJECT_TOTAL, &value,
-1);
}
if (value >= best_value)
{
best_value = value;
best_path = path;
gtk_tree_model_get_iter (model, &best_iter, path);
if (value >= best_value)
{
best_value = value;
best_path = path;
best_iter = iter;
}
}
}
gtk_tree_model_get_iter (model, &iter, best_path);
n_children = gtk_tree_model_iter_n_children (model, &best_iter);
if (n_children && (best_value / top_value) > 0.04 &&