annotate inkscape/firefox/template/textmenu/app.c @ 439:254854ed479c

Fix bug of _find_shape_in_pos(). It can not find a correct shape for a specified point. Since it call _shape_pos_is_in_cairo() directly, cairo_new_path() is not called to clear path after each calling for a shape. So, old path would interference later testing. It should call _shape_pos_is_in() instead of _shape_pos_is_in_cairo().
author Thinker K.F. Li <thinker@branda.to>
date Thu, 30 Jul 2009 15:42:47 +0800
parents 7d244a85dd68
children 9b8dda201ccb
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>
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
3 #include "mbapp.h"
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
4 #include "animated_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
3d21115297ba Add textmenu template
wycc
parents:
diff changeset
13 void MyApp_InitContent(MBApp *app,int argc,char *argv[])
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 }