comparison nodejs/mbfly_njs.cc @ 1044:5d4bc2a93c09

Merge from refine_backend_if branch
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 23 Nov 2010 11:58:04 +0800
parents 18256f404193
children df6ee4568ca2
comparison
equal deleted inserted replaced
1035:18329b6f77a4 1044:5d4bc2a93c09
78 obj = X_njs_MB_new(display_name, width, height); 78 obj = X_njs_MB_new(display_name, width, height);
79 WRAP(self, obj); /* mkroot need a wrapped object, but 79 WRAP(self, obj); /* mkroot need a wrapped object, but
80 * it is wrapped after returning of 80 * it is wrapped after returning of
81 * this function. So, we wrap it 81 * this function. So, we wrap it
82 * here. */ 82 * here. */
83 X_njs_MB_init_handle_connection(obj);
84 xnjsmb_coord_mkroot(self); 83 xnjsmb_coord_mkroot(self);
85 84
86 subject = X_njs_MB_kbevents(obj); 85 subject = X_njs_MB_kbevents(obj);
87 subject_o = export_xnjsmb_auto_subject_new(subject); 86 subject_o = export_xnjsmb_auto_subject_new(subject);
88 SET(self, "kbevents", subject_o); 87 SET(self, "kbevents", subject_o);
169 * Initialize template for MadButterfly runtime objects. 168 * Initialize template for MadButterfly runtime objects.
170 */ 169 */
171 xnjsmb_auto_mb_rt_init(); 170 xnjsmb_auto_mb_rt_init();
172 xnjsmb_auto_mb_rt_display_init(); 171 xnjsmb_auto_mb_rt_display_init();
173 xnjsmb_auto_mb_rt_with_win_init(); 172 xnjsmb_auto_mb_rt_with_win_init();
173 X_njs_MB_reg_timer_man();
174 X_njs_MB_reg_IO_man();
174 175
175 /* 176 /*
176 * Add properties to mb_rt templates for other modules. 177 * Add properties to mb_rt templates for other modules.
177 */ 178 */
178 xnjsmb_shapes_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp); 179 xnjsmb_shapes_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp);