mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
visualizer-list: add SpVisualizerList
This simplifies the visualizer reader and time propagation. It will also give us a single place to manage zoom levels when we get to that.
This commit is contained in:
@ -169,7 +169,7 @@
|
||||
<property name="max-content-height">225</property>
|
||||
<property name="visible">true</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="visualizer_rows">
|
||||
<object class="SpVisualizerList" id="visualizer_rows">
|
||||
<property name="visible">true</property>
|
||||
<child>
|
||||
<object class="SpCpuVisualizerRow" id="cpu_row">
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
#include <sysprof-ui.h>
|
||||
|
||||
#include "sp-application.h"
|
||||
#include "sp-visualizer-list.h"
|
||||
#include "sp-window.h"
|
||||
#include "sp-window-settings.h"
|
||||
|
||||
@ -48,7 +49,7 @@ struct _SpWindow
|
||||
GtkLabel *stat_label;
|
||||
GtkLabel *title;
|
||||
GtkStack *view_stack;
|
||||
GtkListBox *visualizer_rows;
|
||||
SpVisualizerList *visualizer_rows;
|
||||
|
||||
guint stats_handler;
|
||||
|
||||
@ -217,9 +218,7 @@ sp_window_build_profile_cb (GObject *object,
|
||||
GTK_MESSAGE_WARNING,
|
||||
_("Not enough samples were collected to generate a callgraph"));
|
||||
|
||||
gtk_container_foreach (GTK_CONTAINER (self->visualizer_rows),
|
||||
(GtkCallback)sp_visualizer_row_set_reader,
|
||||
self->reader);
|
||||
sp_visualizer_list_set_reader (self->visualizer_rows, self->reader);
|
||||
|
||||
sp_window_set_state (self, SP_WINDOW_STATE_BROWSING);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user