Submenus for the object menu
The patch http://madlab.me.utexas.edu/~dcthomp/dload/dia-submenu.patch.gz changes create_object_menu() to allow for submenus in Dia's object- related popup menus. The DiaMenu and DiaMenuItem structures are unchanged. If you want a submenu, create a DiaMenuItem with callback=NULL and callback_data pointing to a DiaMenu. Also, if the DiaMenu's title == NULL, no menu item is created in the submenu with the name of the submenu's title. The patch also includes a modification to the FS module that uses this new feature to make the function structure object menu much more usable. The patch is against the current CVS. Please let me know if you have any philosphical or diff-related trouble with it. Thanks, David
Bug report
When opening multiple displays I noticed the program crashed in next circumstances: - A display (XWindow actually) is partialy overlaped behind another, showing the upper-left corner with the windows manager minimize/maximize/close buttons. - We close the partialy overlaped display presing the windows manager "close window" button in the upper-left corner. - The program crashed with an "Segmentation Fault Signal 11". "GDBugging" the program I have solved the problem modifying the clip_region_clear function in app/display.c: static void clip_region_clear(RendererGdk *renderer) { /*NEXT LINE ADDED TO SOLVE BUG*/ + if(renderer->ddisp->canvas->window == NULL) return; if (renderer->clip_region != NULL) gdk_region_destroy(renderer->clip_region); ... ... } It happens that the Windows Manager liberates the XWindow associated to the canvas when pressing the close button. (Note: I use Sawfish WM) ___ Do You Yahoo!? Envía mensajes instantáneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es