Mercurial > MadButterfly
view inkscape/firefox/template/textmenu/app.c @ 1338:d0e6f350b3fd
Clear change log to prevent from undo/redo.
- commit the transaction after changing DOM-tree.
- prevent SPObject document from adding changes into the log of undo/redo.
- If a changes is not in the log of undo/redo, it would not be redo.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 05 Feb 2011 18:08:57 +0800 |
parents | 26c302b47de1 |
children |
line wrap: on
line source
#include <stdio.h> #include <mb.h> #include "mb_af.h" #include "mb_ani_menu.h" #include "%n.h" void myselect_callback(mb_animated_menu_t *m, int select) { printf("menu %d is selected\n", select); // Put the callback function for menu select here } void MyApp_InitContent(mbaf_t *app,int argc,char *argv[]) { // This function is called when the application is started. }