[sysprof/wip/gtk4-port: 114/125] libsysprof-ui: use EggPaned
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/gtk4-port: 114/125] libsysprof-ui: use EggPaned
- Date: Fri, 29 Oct 2021 02:02:35 +0000 (UTC)
commit 5e40f2b77dc8f9ef1ee25f010bd1dec829b33703
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 1 15:01:46 2021 -0700
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 @@
<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">
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 <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);
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 @@
<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">
diff --git a/src/libsysprof-ui/sysprof-memprof-page.c b/src/libsysprof-ui/sysprof-memprof-page.c
index b7958bd7..041aeba1 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"
@@ -1161,6 +1162,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 3141e30f..037c6b05 100644
--- a/src/libsysprof-ui/sysprof-memprof-page.ui
+++ b/src/libsysprof-ui/sysprof-memprof-page.ui
@@ -213,15 +213,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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]