From 8e9497b2770d8bf00c89fa8628fa0fb7a15ce415 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 1 Oct 2021 15:01:46 -0700 Subject: [PATCH] libsysprof-ui: use EggPaned --- src/libsysprof-ui/sysprof-callgraph-page.ui | 11 ++++++----- src/libsysprof-ui/sysprof-display.c | 3 +++ src/libsysprof-ui/sysprof-display.ui | 2 +- src/libsysprof-ui/sysprof-memprof-page.c | 2 ++ src/libsysprof-ui/sysprof-memprof-page.ui | 7 ++----- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/libsysprof-ui/sysprof-callgraph-page.ui b/src/libsysprof-ui/sysprof-callgraph-page.ui index 5b6757c9..6a0343e7 100644 --- a/src/libsysprof-ui/sysprof-callgraph-page.ui +++ b/src/libsysprof-ui/sysprof-callgraph-page.ui @@ -4,19 +4,18 @@ true - + horizontal - 450 true - true - true - + vertical true + 400 true + true true @@ -76,6 +75,7 @@ true + true true @@ -135,6 +135,7 @@ + true true diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c index 8faa08e4..7d4ac1da 100644 --- a/src/libsysprof-ui/sysprof-display.c +++ b/src/libsysprof-ui/sysprof-display.c @@ -24,6 +24,8 @@ #include +#include "egg-paned-private.h" + #include "sysprof-details-page.h" #include "sysprof-display-private.h" #include "sysprof-profiler-assistant.h" @@ -494,6 +496,7 @@ sysprof_display_class_init (SysprofDisplayClass *klass) g_object_class_install_properties (object_class, N_PROPS, properties); + g_type_ensure (EGG_TYPE_PANED); g_type_ensure (SYSPROF_TYPE_DETAILS_PAGE); g_type_ensure (SYSPROF_TYPE_FAILED_STATE_VIEW); g_type_ensure (SYSPROF_TYPE_PROFILER_ASSISTANT); diff --git a/src/libsysprof-ui/sysprof-display.ui b/src/libsysprof-ui/sysprof-display.ui index ccdc8120..7e7d5f5d 100644 --- a/src/libsysprof-ui/sysprof-display.ui +++ b/src/libsysprof-ui/sysprof-display.ui @@ -20,7 +20,7 @@ view - + vertical diff --git a/src/libsysprof-ui/sysprof-memprof-page.c b/src/libsysprof-ui/sysprof-memprof-page.c index 086f8628..683943d2 100644 --- a/src/libsysprof-ui/sysprof-memprof-page.c +++ b/src/libsysprof-ui/sysprof-memprof-page.c @@ -43,6 +43,7 @@ #include "../stackstash.h" +#include "egg-paned-private.h" #include "egg-three-grid.h" #include "sysprof-cell-renderer-percent.h" @@ -1165,6 +1166,7 @@ sysprof_memprof_page_class_init (SysprofMemprofPageClass *klass) gtk_widget_class_add_binding_action (widget_class, GDK_KEY_c, GDK_CONTROL_MASK, "page.copy", NULL); gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_Left, GDK_ALT_MASK, "go-previous", NULL); + g_type_ensure (EGG_TYPE_PANED); g_type_ensure (EGG_TYPE_THREE_GRID); g_type_ensure (SYSPROF_TYPE_CELL_RENDERER_PERCENT); } diff --git a/src/libsysprof-ui/sysprof-memprof-page.ui b/src/libsysprof-ui/sysprof-memprof-page.ui index 25d985c9..83929e99 100644 --- a/src/libsysprof-ui/sysprof-memprof-page.ui +++ b/src/libsysprof-ui/sysprof-memprof-page.ui @@ -222,15 +222,12 @@ - + horizontal - 450 true true - true - true - + vertical true