summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-08-12 17:16:50 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-08-12 17:16:50 -0300
commit4d44c35519094d76c639bdf6e2f5d4b35c943f91 (patch)
tree868a1e1c2b0e1ef51567408ffd421dd11cc3b987 /Settings.c
parent4e135bb6b652ec174c876a09ca022689eaa469d7 (diff)
parentfc0e44662c0644fdca75260335734b8cd1090986 (diff)
Merge pull request #148 from nckx/display-basename
[PATCH] New setting: "Show program path"
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Settings.c b/Settings.c
index 4f4c45e7..59317959 100644
--- a/Settings.c
+++ b/Settings.c
@@ -46,6 +46,7 @@ typedef struct Settings_ {
bool countCPUsFromZero;
bool detailedCPUTime;
bool treeView;
+ bool showProgramPath;
bool hideThreads;
bool shadowOtherUsers;
bool showThreadNames;
@@ -186,6 +187,8 @@ static bool Settings_read(Settings* this, const char* fileName) {
this->shadowOtherUsers = atoi(option[1]);
} else if (String_eq(option[0], "show_thread_names")) {
this->showThreadNames = atoi(option[1]);
+ } else if (String_eq(option[0], "show_program_path")) {
+ this->showProgramPath = atoi(option[1]);
} else if (String_eq(option[0], "highlight_base_name")) {
this->highlightBaseName = atoi(option[1]);
} else if (String_eq(option[0], "highlight_megabytes")) {
@@ -272,6 +275,7 @@ bool Settings_write(Settings* this) {
fprintf(fd, "hide_userland_threads=%d\n", (int) this->hideUserlandThreads);
fprintf(fd, "shadow_other_users=%d\n", (int) this->shadowOtherUsers);
fprintf(fd, "show_thread_names=%d\n", (int) this->showThreadNames);
+ fprintf(fd, "show_program_path=%d\n", (int) this->showProgramPath);
fprintf(fd, "highlight_base_name=%d\n", (int) this->highlightBaseName);
fprintf(fd, "highlight_megabytes=%d\n", (int) this->highlightMegabytes);
fprintf(fd, "highlight_threads=%d\n", (int) this->highlightThreads);

© 2014-2024 Faster IT GmbH | imprint | privacy policy