diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
commit | 266ab52b3a741a58fb17c48b0f7939d7c5d266de (patch) | |
tree | b4bccc59b9a35f3acbe7560f3d633940c71aedef /DisplayOptionsListBox.c | |
parent | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (diff) | |
download | debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.gz debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.bz2 debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.zip |
Imported Upstream version 0.6upstream/0.6
Diffstat (limited to 'DisplayOptionsListBox.c')
-rw-r--r-- | DisplayOptionsListBox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/DisplayOptionsListBox.c b/DisplayOptionsListBox.c index 37541f2..dcf0a8a 100644 --- a/DisplayOptionsListBox.c +++ b/DisplayOptionsListBox.c @@ -28,9 +28,9 @@ DisplayOptionsListBox* DisplayOptionsListBox_new(Settings* settings, ScreenManag this->settings = settings; this->scr = scr; - super->eventHandler = DisplayOptionsListBox_eventHandler; + super->eventHandler = DisplayOptionsListBox_EventHandler; - ListBox_setHeader(super, RichString_quickString(CRT_colors[PANEL_HEADER_FOCUS], "Display options")); + ListBox_setHeader(super, "Display options"); ListBox_add(super, (Object*) CheckItem_new(String_copy("Tree view"), &(settings->pl->treeView))); ListBox_add(super, (Object*) CheckItem_new(String_copy("Shadow other users' processes"), &(settings->pl->shadowOtherUsers))); ListBox_add(super, (Object*) CheckItem_new(String_copy("Hide kernel threads"), &(settings->pl->hideKernelThreads))); @@ -48,7 +48,7 @@ void DisplayOptionsListBox_delete(Object* object) { free(this); } -HandlerResult DisplayOptionsListBox_eventHandler(ListBox* super, int ch) { +HandlerResult DisplayOptionsListBox_EventHandler(ListBox* super, int ch) { DisplayOptionsListBox* this = (DisplayOptionsListBox*) super; HandlerResult result = IGNORED; @@ -64,6 +64,7 @@ HandlerResult DisplayOptionsListBox_eventHandler(ListBox* super, int ch) { } if (result == HANDLED) { + this->settings->changed = true; Header* header = this->settings->header; Header_calculateHeight(header); Header_draw(header); |