:2010-06-22 06:45:50
To:Bear
CC:gimp-developer
Subject:Re: Re: [Gimp-developer] 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
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
hi,
Maybe my poor english made you confused about my task? I have some knowledge on
gtk+. My task is to response the right-click message on canvas. Is this clear?
The original responding is to popup a menu which as same as the menubar. I
wanna modify it. For example, to popup a message box or
On Sat, 2010-06-19 at 20:29 +0800, Bear wrote:
hi,
I wanna edit my GIMP's context menu. Now the context menu is as seems as the
menu bar. I wanna use my customized context menu to replace the original one.
I found some clue in
app/widgets/gimpuimanager.c:573
which say:
void
hi,
Er... but my work is to make it popup something like a new window instead the
original context menu... Could you help me? thx!
--
Bear
2010-06-19
-
From:Michael Natterer
Send
On Sat, 2010-06-19 at 23:49 +0800, Bear wrote:
hi,
Er... but my work is to make it popup something like a new window instead the
original context menu... Could you help me? thx!
Are you familiar with GTK+? If not, please read the documentation and
tutorials before you ask here. We can
If you want to do this for your new tool, you might benefit from looking at
gimptexttool.c --
the function gimp_text_tool_get_popup is what sets up the context menu for
the text
tool. It is invoked in the gimp_text_tool_class_init function, in the line
that reads
tool_class-get_popup =