diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-12 17:16:50 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-12 17:16:50 -0300 |
commit | 4d44c35519094d76c639bdf6e2f5d4b35c943f91 (patch) | |
tree | 868a1e1c2b0e1ef51567408ffd421dd11cc3b987 /Settings.c | |
parent | 4e135bb6b652ec174c876a09ca022689eaa469d7 (diff) | |
parent | fc0e44662c0644fdca75260335734b8cd1090986 (diff) |
Merge pull request #148 from nckx/display-basename
[PATCH] New setting: "Show program path"
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |