Mercurial > MadButterfly
view 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 |
line wrap: on
line source
#include <stdio.h> #include <mb.h> #include "mbapp.h" #include "animated_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(MBApp *app,int argc,char *argv[]) { // This function is called when the application is started. }