comparison examples/calculator/main.c @ 130:3a4d6179e6a9

change mb_c_source.m4 and mb_c_header.m4 to specify parent for SVG object
author Thinker K.F. Li <thinker@branda.to>
date Tue, 16 Sep 2008 21:23:34 +0800
parents 17e97e92b76e
children 530bb7728546
comparison
equal deleted inserted replaced
129:ba581d8a4b9b 130:3a4d6179e6a9
177 calc_data_t calc_data; 177 calc_data_t calc_data;
178 178
179 rt = X_MB_new(":0.0", 300, 400); 179 rt = X_MB_new(":0.0", 300, 400);
180 180
181 rdman = X_MB_rdman(rt); 181 rdman = X_MB_rdman(rt);
182 calculator_scr = calculator_scr_new(rdman); 182 calculator_scr = calculator_scr_new(rdman, rdman->root_coord);
183 183
184 calc_data.rt = rt; 184 calc_data.rt = rt;
185 calc_data.code = calculator_scr; 185 calc_data.code = calculator_scr;
186 setup_observers(&calc_data); 186 setup_observers(&calc_data);
187 187