mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
Adaptions for API change in json-c v0.13
This commit is contained in:
parent
8272a9bae0
commit
02da9c4e7c
7 changed files with 29 additions and 15 deletions
|
|
@ -2,8 +2,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <json-c/json.h>
|
||||
|
||||
#include "sway_json_helper.h"
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/status_line.h"
|
||||
#include "log.h"
|
||||
|
|
@ -70,8 +70,7 @@ static void parse_json(struct bar *bar, const char *text) {
|
|||
|
||||
bar->status->block_line = create_list();
|
||||
|
||||
int i;
|
||||
for (i = 0; i < json_object_array_length(results); ++i) {
|
||||
for (json_ar_len_t i = 0; i < json_object_array_length(results); ++i) {
|
||||
json_object *full_text, *short_text, *color, *min_width, *align, *urgent;
|
||||
json_object *name, *instance, *separator, *separator_block_width;
|
||||
json_object *background, *border, *border_top, *border_bottom;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue