Re: How to edit context menu?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
I am very very thankful for your help!!!
After 3 days working, I already done this job!
Without your help, I wont finish it. Thx so much!

------------------				 
Bear
2010-06-26

-------------------------------------------------------------
From:Bill Skaggs
Send Date:2010-06-22 06:45:50
To:Bear
CC:gimp-developer
Subject:Re: Re:  How to edit context menu?

It isn't as bad as it looks.  The im_menu stuff all relates to a special
submenu, and
you can discard it.  The rest you can replicate as is (with the obvious
changes).

Here is a quick summary of how to create a context menu for a tool:

1) Create a get_popup handler similar to gimp_text_tool_get_popup.

2) Create menu actions by creating a file similar to
app/actions/text-tool-actions.c.

3) Create menu commands by creating a file similar to
app/actions/text-tool-commands.c.

4) Define the menu structure by creating a file similar to
menus/text-tool-menu.xml.

It should be possible to do most of this without a very deep understanding
of the code.

  -- Bill

_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux