| 796 destr->observer = observer; |
796 destr->observer = observer; |
| 797 cxMempoolSetDestructor(destr, (cx_destructor_func)observer_destructor); |
797 cxMempoolSetDestructor(destr, (cx_destructor_func)observer_destructor); |
| 798 } |
798 } |
| 799 |
799 |
| 800 static int ui_set_op = 0; |
800 static int ui_set_op = 0; |
| |
801 static int ui_onchange_events_enabled = TRUE; |
| 801 |
802 |
| 802 void ui_setop_enable(int set) { |
803 void ui_setop_enable(int set) { |
| 803 ui_set_op = set; |
804 ui_set_op = set; |
| 804 } |
805 } |
| 805 |
806 |
| 806 int ui_get_setop(void) { |
807 int ui_get_setop(void) { |
| 807 return ui_set_op; |
808 return ui_set_op; |
| |
809 } |
| |
810 |
| |
811 void ui_onchange_events_enable(UiBool enable) { |
| |
812 ui_onchange_events_enabled = enable; |
| |
813 } |
| |
814 |
| |
815 UiBool ui_onchange_events_is_enabled(void) { |
| |
816 return ui_onchange_events_enabled; |
| 808 } |
817 } |
| 809 |
818 |
| 810 /* ---------------- List initializers and wrapper functions ---------------- */ |
819 /* ---------------- List initializers and wrapper functions ---------------- */ |
| 811 |
820 |
| 812 void ui_global_list_initializer(ui_list_init_func func, void *userdata) { |
821 void ui_global_list_initializer(ui_list_init_func func, void *userdata) { |