mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
memprofpage: fix togglebuttons and panels
This commit is contained in:
@ -1020,14 +1020,14 @@ do_allocs (SysprofMemprofPage *self,
|
|||||||
static void
|
static void
|
||||||
mode_notify_active (SysprofMemprofPage *self,
|
mode_notify_active (SysprofMemprofPage *self,
|
||||||
GParamSpec *pspec,
|
GParamSpec *pspec,
|
||||||
GtkCheckButton *button)
|
GtkToggleButton *button)
|
||||||
{
|
{
|
||||||
SysprofMemprofPagePrivate *priv = sysprof_memprof_page_get_instance_private (self);
|
SysprofMemprofPagePrivate *priv = sysprof_memprof_page_get_instance_private (self);
|
||||||
|
|
||||||
g_assert (SYSPROF_IS_MEMPROF_PAGE (self));
|
g_assert (SYSPROF_IS_MEMPROF_PAGE (self));
|
||||||
g_assert (GTK_IS_CHECK_BUTTON (button));
|
g_assert (GTK_IS_TOGGLE_BUTTON (button));
|
||||||
|
|
||||||
if (gtk_check_button_get_active (GTK_CHECK_BUTTON (button)))
|
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)))
|
||||||
{
|
{
|
||||||
if (button == priv->summary)
|
if (button == priv->summary)
|
||||||
do_allocs (self, SYSPROF_MEMPROF_MODE_SUMMARY);
|
do_allocs (self, SYSPROF_MEMPROF_MODE_SUMMARY);
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="GtkCenterBox">
|
||||||
<property name="orientation">horizontal</property>
|
<property name="orientation">horizontal</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child type="center">
|
<child type="center">
|
||||||
@ -20,26 +20,23 @@
|
|||||||
<class name="linked"/>
|
<class name="linked"/>
|
||||||
</style>
|
</style>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="summary">
|
<object class="GtkToggleButton" id="summary">
|
||||||
<property name="label" translatable="yes">Summary</property>
|
<property name="label" translatable="yes">Summary</property>
|
||||||
<property name="draw-indicator">false</property>
|
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<property name="active">false</property>
|
<property name="active">false</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="all_allocs">
|
<object class="GtkToggleButton" id="all_allocs">
|
||||||
<property name="label" translatable="yes">All Allocations</property>
|
<property name="label" translatable="yes">All Allocations</property>
|
||||||
<property name="draw-indicator">false</property>
|
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<property name="group">summary</property>
|
<property name="group">summary</property>
|
||||||
<property name="active">true</property>
|
<property name="active">true</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="temp_allocs">
|
<object class="GtkToggleButton" id="temp_allocs">
|
||||||
<property name="label" translatable="yes">Temporary Allocations</property>
|
<property name="label" translatable="yes">Temporary Allocations</property>
|
||||||
<property name="draw-indicator">false</property>
|
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<property name="active">false</property>
|
<property name="active">false</property>
|
||||||
<property name="group">summary</property>
|
<property name="group">summary</property>
|
||||||
@ -81,7 +78,7 @@
|
|||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="EggThreeGrid">
|
<object class="EggThreeGrid">
|
||||||
<property name="expand">true</property>
|
<property name="hexpand">true</property>
|
||||||
<property name="row-spacing">6</property>
|
<property name="row-spacing">6</property>
|
||||||
<property name="column-spacing">18</property>
|
<property name="column-spacing">18</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
@ -224,10 +221,11 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="EggPaned" id="callgraph">
|
<object class="EggPaned" id="callgraph">
|
||||||
<property name="orientation">horizontal</property>
|
<property name="orientation">horizontal</property>
|
||||||
<property name="expand">true</property>
|
<property name="vexpand">true</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="EggPaned">
|
<object class="EggPaned">
|
||||||
|
<property name="width-request">400</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child>
|
<child>
|
||||||
|
|||||||
Reference in New Issue
Block a user