cleaned up some oopsies, more effs, and more linebreaks
This commit is contained in:
parent
26c1897eda
commit
82a98a81fa
@ -109,7 +109,7 @@ Specifies something to search for immediately on opening
|
|||||||
.B monitor=\fISTRING\fR
|
.B monitor=\fISTRING\fR
|
||||||
Sets the monitor to open on
|
Sets the monitor to open on
|
||||||
.TP
|
.TP
|
||||||
.B pre_display_cmd=\fSTR\fR
|
.B pre_display_cmd=\fICOMMAND\fR
|
||||||
Specifies a printf-like string which is used on the entries prior to displaying them. This command is only used to represent the label widget's string, and won't affect the the output of the selected label.
|
Specifies a printf-like string which is used on the entries prior to displaying them. This command is only used to represent the label widget's string, and won't affect the the output of the selected label.
|
||||||
.TP
|
.TP
|
||||||
.B orientation=\fIORIENTATION\fR
|
.B orientation=\fIORIENTATION\fR
|
||||||
|
@ -108,7 +108,7 @@ void wofi_load_css(bool nyan) {
|
|||||||
fseek(file, 0, SEEK_SET);
|
fseek(file, 0, SEEK_SET);
|
||||||
char* data = malloc(size + 1);
|
char* data = malloc(size + 1);
|
||||||
if (fread(data, 1, size, file) == 0) {
|
if (fread(data, 1, size, file) == 0) {
|
||||||
printf(stderr, "failed to read stylesheet data from file");
|
fprintf(stderr, "failed to read stylesheet data from file\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
@ -407,7 +407,8 @@ static GtkWidget* create_label(char* mode, char* text, char* search_text, char*
|
|||||||
// first, prepare cmd_labeltext to be each entry's actual comamand to run, aka replacing 'cat %s' to be 'cat filename'
|
// first, prepare cmd_labeltext to be each entry's actual comamand to run, aka replacing 'cat %s' to be 'cat filename'
|
||||||
if ((asprintf(&cmd_labeltext, pre_display_cmd, nodetext)) == -1) {
|
if ((asprintf(&cmd_labeltext, pre_display_cmd, nodetext)) == -1) {
|
||||||
fprintf(stderr, "error parsing pre_display_cmd to run\n");
|
fprintf(stderr, "error parsing pre_display_cmd to run\n");
|
||||||
exit(EXIT_FAILURE); }
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
// then, run the command
|
// then, run the command
|
||||||
fp_labeltext = popen(cmd_labeltext, "r");
|
fp_labeltext = popen(cmd_labeltext, "r");
|
||||||
if (fp_labeltext == NULL) {
|
if (fp_labeltext == NULL) {
|
||||||
@ -1283,7 +1284,7 @@ static void do_copy(void) {
|
|||||||
close(fds[0]);
|
close(fds[0]);
|
||||||
|
|
||||||
if (write(fds[1], action, strlen(action)) != 0) {
|
if (write(fds[1], action, strlen(action)) != 0) {
|
||||||
fprintf(stderr, "fd pipe failed to write");
|
fprintf(stderr, "fd pipe failed to write\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
close(fds[1]);
|
close(fds[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user