[sysprof/wip/gtk4-port: 121/132] libsysprof-ui: use EggPaned




commit d19c79fc5da9f187fa45521bfbb07b2801642b27
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 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 88dc487e..983642b7 100644
--- a/src/libsysprof-ui/sysprof-memprof-page.ui
+++ b/src/libsysprof-ui/sysprof-memprof-page.ui
@@ -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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]