annotate inkscape/firefox/template/textmenu/app.c @ 1535:9aff42a7e2b9 tip

Fix issue of add/remove a frame at a scene before all key frames of a layer. When you added or removed a frame at a scene before all key frames of a layer, frameline was not updated correctly. It seems nothing happened, but domview is updated. This changeset fix this issue by correcting logic for boundary case.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 30 Sep 2011 22:07:28 +0800
parents 26c302b47de1
children
rev   line source
371
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
1 #include <stdio.h>
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
2 #include <mb.h>
456
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents: 454
diff changeset
3 #include "mb_af.h"
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents: 454
diff changeset
4 #include "mb_ani_menu.h"
376
7d244a85dd68 Change the screen layout to make it more like an usual IDE.
wycc
parents: 371
diff changeset
5 #include "%n.h"
371
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
6
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
7 void myselect_callback(mb_animated_menu_t *m, int select)
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
8 {
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
9 printf("menu %d is selected\n", select);
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
10 // Put the callback function for menu select here
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
11 }
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
12
454
9b8dda201ccb Make naming convention consistent with MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents: 376
diff changeset
13 void MyApp_InitContent(mbaf_t *app,int argc,char *argv[])
371
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
14 {
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
15 // This function is called when the application is started.
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
16 }