hi, thx for your help! Its helped me solved my problem! And I have another question: How to modify the context menu? I wanna to edit two context menu, one is the one when Text Tool is actived, the other one is the one when I right-click on canvas. Could you tell me which file should I modify? thx! ------------------ Bear 2010-06-14 ------------------------------------------------------------- From:Bill Skaggs Send Date:2010-06-14 13:56:08 To:Bear CC:gimp-developer Subject:Re: How to create a new tool? At a minimum, you need to add your new tool to the list in app/tools/gimp-tools.c, so that it will be registered. You'll also have to rename some things to avoid duplicate names -- maybe you've already done this but you didn't say so. -- Bill _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer