menu-button: hide the process list when whole-system is enabled

No sense in showing a desensitized widget that cannot be toggled except
for discover-ability. But progressive disclosure is probably better.
This commit is contained in:
Christian Hergert
2016-04-16 18:21:26 -07:00
parent 4fdd7aca71
commit 9e082a257d
2 changed files with 26 additions and 18 deletions

View File

@ -203,7 +203,7 @@ sp_profiler_menu_button_connect (SpProfilerMenuButton *self)
add_binding (&priv->list_sensitive_binding,
priv->profiler, "whole-system",
priv->processes_box, "sensitive",
priv->processes_box, "visible",
G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN);
add_binding (&priv->inherit_binding,