ui/server/window.c

changeset 984
2cf5e6d55013
parent 982
9102a53c5385
child 985
93f07ccfd997
equal deleted inserted replaced
983:1d7d24147961 984:2cf5e6d55013
78 } 78 }
79 79
80 cxmutstr obj_id = w->widget.obj->id; 80 cxmutstr obj_id = w->widget.obj->id;
81 cxmutstr id = w->widget.id; 81 cxmutstr id = w->widget.id;
82 82
83 cxBufferPutString(&buf, " obj_id=\""); 83 cxBufferPutString(&buf, ", \"obj\":\"");
84 cxBufferWrite(obj_id.ptr, 1, obj_id.length, &buf); 84 cxBufferWrite(obj_id.ptr, 1, obj_id.length, &buf);
85 cxBufferPutString(&buf, "\""); 85 cxBufferPutString(&buf, "\",");
86 86
87 cxBufferPutString(&buf, " id=\""); 87 cxBufferPutString(&buf, " \"id\":\"");
88 cxBufferWrite(id.ptr, 1, id.length, &buf); 88 cxBufferWrite(id.ptr, 1, id.length, &buf);
89 cxBufferPutString(&buf, "\""); 89 cxBufferPutString(&buf, "\", ");
90 90
91 if(w->title.ptr) { 91 if(w->title.ptr) {
92 cxBufferPutString(&buf, " title=\""); 92 cxBufferPutString(&buf, " \"title\":\"");
93 cxBufferWrite(w->title.ptr, 1, w->title.length, &buf); 93 cxBufferWrite(w->title.ptr, 1, w->title.length, &buf);
94 cxBufferPutString(&buf, "\""); 94 cxBufferPutString(&buf, "\"");
95 } 95 }
96 96
97 97

mercurial