Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
59914bfd
Commit
59914bfd
authored
Mar 16, 2015
by
Hisham Muhammad
Browse files
Rename Setup_run to Action_runSetup.
parent
7fd4af80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Action.c
View file @
59914bfd
...
...
@@ -103,7 +103,7 @@ Object* Action_pickFromVector(State* st, Panel* list, int x, const char** keyLab
static
const
char
*
CategoriesFunctions
[]
=
{
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
" "
,
"Done "
,
NULL
};
static
void
Setup
_run
(
Settings
*
settings
,
const
Header
*
header
,
ProcessList
*
pl
)
{
static
void
Action_run
Setup
(
Settings
*
settings
,
const
Header
*
header
,
ProcessList
*
pl
)
{
ScreenManager
*
scr
=
ScreenManager_new
(
0
,
header
->
height
,
0
,
-
1
,
HORIZONTAL
,
header
,
settings
,
true
);
CategoriesPanel
*
panelCategories
=
CategoriesPanel_new
(
scr
,
settings
,
(
Header
*
)
header
,
pl
);
ScreenManager_add
(
scr
,
(
Panel
*
)
panelCategories
,
FunctionBar_new
(
CategoriesFunctions
,
NULL
,
NULL
),
16
);
...
...
@@ -332,7 +332,7 @@ static Htop_Reaction actionFollow(State* st) {
}
static
Htop_Reaction
actionSetup
(
State
*
st
)
{
Setup
_run
(
st
->
settings
,
st
->
header
,
st
->
pl
);
Action_run
Setup
(
st
->
settings
,
st
->
header
,
st
->
pl
);
// TODO: shouldn't need this, colors should be dynamic
int
headerHeight
=
Header_calculateHeight
(
st
->
header
);
Panel_move
(
st
->
panel
,
0
,
headerHeight
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment