Mercurial > MadButterfly
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 | 1 #include <stdio.h> |
2 #include <mb.h> | |
3 #include "mbapp.h" | |
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 | 6 |
7 void myselect_callback(mb_animated_menu_t *m, int select) | |
8 { | |
9 printf("menu %d is selected\n", select); | |
10 // Put the callback function for menu select here | |
11 } | |
12 | |
13 void MyApp_InitContent(MBApp *app,int argc,char *argv[]) | |
14 { | |
15 // This function is called when the application is started. | |
16 } |