mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: land new UI design
This comprises a massive rewrite of the UI for browsing captures. We use the SysprofAid class to scan capture files for content and then auto- matically add visualizers and details pages. To avoid breaking things incrementally, we just land this as a very large commit. Not necessarily ideal, but given the amount of stuff that could break, this is easier. As part of this process, we're removing a lot of the surface API so that we can limit how much we need to maintain in terms of ABI.
This commit is contained in:
@ -61,7 +61,8 @@ if get_option('enable_gtk')
|
||||
dependencies: test_ui_deps,
|
||||
)
|
||||
|
||||
test_zoom = executable('test-zoom', 'test-zoom.c',
|
||||
test_zoom = executable('test-zoom',
|
||||
['test-zoom.c', '../libsysprof-ui/sysprof-zoom-manager.c'],
|
||||
c_args: test_cflags,
|
||||
dependencies: test_ui_deps,
|
||||
)
|
||||
|
||||
@ -25,7 +25,7 @@ main (gint argc,
|
||||
gchar *argv[])
|
||||
{
|
||||
GtkWindow *window;
|
||||
SysprofCaptureView *view;
|
||||
SysprofDisplay *view;
|
||||
SysprofCaptureReader *reader;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
@ -44,16 +44,16 @@ main (gint argc,
|
||||
}
|
||||
|
||||
window = g_object_new (GTK_TYPE_WINDOW,
|
||||
"title", "SysprofCaptureView",
|
||||
"title", "SysprofDisplay",
|
||||
"default-width", 800,
|
||||
"default-height", 600,
|
||||
NULL);
|
||||
view = g_object_new (SYSPROF_TYPE_CAPTURE_VIEW,
|
||||
view = g_object_new (SYSPROF_TYPE_DISPLAY,
|
||||
"visible", TRUE,
|
||||
NULL);
|
||||
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (view));
|
||||
|
||||
sysprof_capture_view_load_async (view, reader, NULL, NULL, NULL);
|
||||
sysprof_display_load_async (view, reader, NULL, NULL, NULL);
|
||||
|
||||
g_signal_connect (window, "delete-event", gtk_main_quit, NULL);
|
||||
gtk_window_present (GTK_WINDOW (window));
|
||||
|
||||
Reference in New Issue
Block a user