libsysprof-ui: use EggPaned

This commit is contained in:
Christian Hergert
2021-10-01 15:01:46 -07:00
parent b59e779dfb
commit 8e9497b277
5 changed files with 14 additions and 11 deletions

View File

@ -4,19 +4,18 @@
<object class="GtkStack" id="stack">
<property name="visible">true</property>
<child>
<object class="GtkPaned" id="callgraph">
<object class="EggPaned" id="callgraph">
<property name="orientation">horizontal</property>
<property name="position">450</property>
<property name="visible">true</property>
<property name="resize-start-child">true</property>
<property name="resize-end-child">true</property>
<child>
<object class="GtkPaned">
<object class="EggPaned">
<property name="orientation">vertical</property>
<property name="visible">true</property>
<property name="width-request">400</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">true</property>
<property name="vexpand">true</property>
<child>
<object class="GtkTreeView" id="functions_view">
<property name="fixed-height-mode">true</property>
@ -76,6 +75,7 @@
<child>
<object class="GtkScrolledWindow">
<property name="visible">true</property>
<property name="vexpand">true</property>
<child>
<object class="GtkTreeView" id="callers_view">
<property name="visible">true</property>
@ -135,6 +135,7 @@
</child>
<child>
<object class="GtkScrolledWindow">
<property name="hexpand">true</property>
<property name="visible">true</property>
<child>
<object class="GtkTreeView" id="descendants_view">

View File

@ -24,6 +24,8 @@
#include <glib/gi18n.h>
#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);

View File

@ -20,7 +20,7 @@
<object class="GtkStackPage">
<property name="name">view</property>
<property name="child">
<object class="GtkPaned">
<object class="EggPaned">
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">

View File

@ -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);
}

View File

@ -222,15 +222,12 @@
</object>
</child>
<child>
<object class="GtkPaned" id="callgraph">
<object class="EggPaned" id="callgraph">
<property name="orientation">horizontal</property>
<property name="position">450</property>
<property name="expand">true</property>
<property name="visible">true</property>
<property name="resize-start">true</property>
<property name="resize-end">true</property>
<child>
<object class="GtkPaned">
<object class="EggPaned">
<property name="orientation">vertical</property>
<property name="visible">true</property>
<child>