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
539b32dc
Commit
539b32dc
authored
Nov 05, 2011
by
Hisham Muhammad
Browse files
simplify code
parent
9f29e927
Changes
1
Hide whitespace changes
Inline
Side-by-side
AffinityPanel.c
View file @
539b32dc
...
...
@@ -8,21 +8,18 @@
#include <assert.h>
static
HandlerResult
AffinityPanel_eventHandler
(
Panel
*
this
,
int
ch
)
{
HandlerResult
result
=
IGNORED
;
CheckItem
*
selected
=
(
CheckItem
*
)
Panel_getSelected
(
this
);
switch
(
ch
)
{
case
KEY_MOUSE
:
case
' '
:
CheckItem_set
(
selected
,
!
(
CheckItem_get
(
selected
))
);
result
=
HANDLED
;
break
;
return
HANDLED
;
case
0x0a
:
case
0x0d
:
case
KEY_ENTER
:
result
=
BREAK_LOOP
;
break
;
return
BREAK_LOOP
;
}
return
result
;
return
IGNORED
;
}
Panel
*
AffinityPanel_new
(
ProcessList
*
pl
,
Affinity
*
affinity
)
{
...
...
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