mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
visualizers: limit mark rows to 30
This commit is contained in:
@ -243,7 +243,6 @@ handle_capture_results (GObject *object,
|
||||
{
|
||||
SpVisualizerList *self = (SpVisualizerList *)object;
|
||||
Discovery *state;
|
||||
GHashTableIter iter;
|
||||
const gchar *key;
|
||||
|
||||
g_assert (SP_IS_VISUALIZER_LIST (self));
|
||||
@ -265,6 +264,10 @@ handle_capture_results (GObject *object,
|
||||
gtk_container_add (GTK_CONTAINER (self), row);
|
||||
}
|
||||
|
||||
if (g_hash_table_size (state->mark_groups) < 30)
|
||||
{
|
||||
GHashTableIter iter;
|
||||
|
||||
g_hash_table_iter_init (&iter, state->mark_groups);
|
||||
|
||||
while (g_hash_table_iter_next (&iter, (gpointer *)&key, NULL))
|
||||
@ -279,6 +282,7 @@ handle_capture_results (GObject *object,
|
||||
gtk_container_add (GTK_CONTAINER (self), row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
discover_new_rows (SpVisualizerList *self,
|
||||
|
||||
Reference in New Issue
Block a user