summaryrefslogtreecommitdiff
path: root/src/config_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config_node.c')
-rw-r--r--src/config_node.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config_node.c b/src/config_node.c
index d4fc81d..412914f 100644
--- a/src/config_node.c
+++ b/src/config_node.c
@@ -27,6 +27,7 @@ struct node* node_new(void (*init_callback)(struct node*)) {
out->label[0] = '\0';
out->interval = 0;
out->lastrun = 0;
+ out->width = 12;
strcpy(out->color, "#eeeeee");
strcpy(out->label_color, "#eeeeee");
init_callback(out);
@@ -62,6 +63,8 @@ void _load_node_key(struct node* n, char* key, char* val) {
strcpy(n->display, val);
else if(strcmp(key, "interval") == 0)
n->interval = strtol(val, NULL, 10);
+ else if(strcmp(key, "width") == 0)
+ n->width = strtol(val, NULL, 10);
else
printf("ERROR: Unknown node key %s\n", key);
}

Generated by cgit