Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
Hi, Could someone tell me the location of this file? I found it way back when I originally asked the question, but I can't find it anymore. Thanks, Jordan On Tue, Jun 16, 2009 at 9:36 PM, David Gowers 00a...@gmail.com wrote: toolrc On Wed, Jun 17, 2009 at 11:00 AM, Jordan Stinsonjordan.stinso...@gmail.com wrote: Thanks for the quick response. It looks like this will get me closer to what i'm actually after. When I use this method to add the hue saturation tool to the toolbox, it persists after I close gimp and reopen it. Could anyone tell me what file it's saved to? ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
On 07/13/2009 09:27 PM, Jordan Stinson wrote: Hi, Could someone tell me the location of this file? Hi, Do you mean menus/image-menu.xml.in ? / Martin ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
Hi, I meant toolrc. Sorry if that wasn't clear. Thanks, Jordan On Mon, Jul 13, 2009 at 3:35 PM, Martin Nordholts ense...@gmail.com wrote: On 07/13/2009 09:27 PM, Jordan Stinson wrote: Hi, Could someone tell me the location of this file? Hi, Do you mean menus/image-menu.xml.in ? / Martin ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
Hi,I'm trying (for starters) to make the hue saturation tool visible in the toolbox. I noticed that all tools are registered in the gimp_tools_register function. In the function a tool info structure is created for each tool and the tool info visible property is set to true if tool is an image map tool type. I tried hacking this to set the hue saturation tool info object to be visible. All well and good, I thought. But when the toolbox is populated in the tool_box_create tools function, the visible property is set back to false. I set a memory breakpoint using gdb and it looks like there's a plug in that's setting the visible property back to false. So far, I haven't been able to figure out what plug in is doing this. Does anyone have any idea what plug in may be doing this or where I can find it? Thanks, Jordan On Tue, Jun 2, 2009 at 2:46 PM, Martin Nordholts ense...@gmail.com wrote: Jordan Stinson wrote: Thanks for the tips. Just one quick question though. What do you mean by installing the menu.xml.in http://xml.in file? What's the difference between that file and the menu.xml file? Look in menus/Makefile.am, *.xml.in is processed with xsltproc into *.xml. With installing the menu.xml.in file I really meant installing the generated menu.xml file. Sorry for being a bit unprecise ;) / Martin ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
Jordan Stinson (jordan.stinso...@gmail.com) wrote: Hi,I'm trying (for starters) to make the hue saturation tool visible in the toolbox. Uhm, actually there is no need to start hacking for this: 1) Go to Windows - Dockable Dialogs - Tools 2) toggle the eye icon next to the hue-saturation tool 3) watch it appear in the toolbox. Hope this helps, Simon -- si...@budig.de http://simon.budig.de/ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
Thanks for the quick response. It looks like this will get me closer to what i'm actually after. When I use this method to add the hue saturation tool to the toolbox, it persists after I close gimp and reopen it. Could anyone tell me what file it's saved to? Thanks again, Jordan On Tue, Jun 16, 2009 at 8:33 PM, Simon Budig si...@budig.de wrote: Jordan Stinson (jordan.stinso...@gmail.com) wrote: Hi,I'm trying (for starters) to make the hue saturation tool visible in the toolbox. Uhm, actually there is no need to start hacking for this: 1) Go to Windows - Dockable Dialogs - Tools 2) toggle the eye icon next to the hue-saturation tool 3) watch it appear in the toolbox. Hope this helps, Simon -- si...@budig.de http://simon.budig.de/ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking GIMP - Gimp top level menu
toolrc On Wed, Jun 17, 2009 at 11:00 AM, Jordan Stinsonjordan.stinso...@gmail.com wrote: Thanks for the quick response. It looks like this will get me closer to what i'm actually after. When I use this method to add the hue saturation tool to the toolbox, it persists after I close gimp and reopen it. Could anyone tell me what file it's saved to? ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking gimp
Hi, Thanks! That's exactly what I needed. - Jordan On Mon, Jun 1, 2009 at 11:44 PM, Martin Nordholts ense...@gmail.com wrote: Jordan Stinson wrote: Hi, I'm attempting to add new files to the app/widgets directory. I've added a .h and a .c file and the compiler tries to compile it. I seem to be able to compile code in these files however, when I try to include gimp.h, I get an error in gimpobject.h line 35 saying something like, expected specifier-qualifier-list before 'GObject' I'm not sure what I'm doing wrong and I can't seem to find anything on the gimp developer site or in any of the archives for the mailing list. Is there a prescribed way to add files? If so, where can I find this information? Hi! This doesn't sound like an add-file problem but an include-problem. More specifically, it seems that you include gimp.h before the GObject header is pulled in. Did you read the GIMP include policy in devel-docs/includes.txt? You can see how other files in the app/widgets dir include gimp.h, for example gimpcolordialog.c. That file, like most files in that dir, includes the GObject header indirectly by pulling in the GTK+ header: #include gtk/gtk.h and then after widgets-types.h comes gimp.h: #include core/gimp.h Let us know if you need further assistance. Best regards, Martin ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Hacking GIMP - Gimp top level menu
Hi, I was wondering how the top level menu for GIMP is created (The one with these items: File, Edit, Select, View, Image, etc. ). I want to add a menu item to this menu and I'm kind of lost as to where to start. If someone could tell me where to hunt around in the code for this and give me an explanation of how it's done, that would be great! Even better, is there some documentation online about this kind of thing? Thanks in advance, Jordan ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Hacking gimp
Hi, I'm attempting to add new files to the app/widgets directory. I've added a .h and a .c file and the compiler tries to compile it. I seem to be able to compile code in these files however, when I try to include gimp.h, I get an error in gimpobject.h line 35 saying something like, expected specifier-qualifier-list before 'GObject' I'm not sure what I'm doing wrong and I can't seem to find anything on the gimp developer site or in any of the archives for the mailing list. Is there a prescribed way to add files? If so, where can I find this information? Thanks, Jordan ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Hacking gimp
Jordan Stinson wrote: Hi, I'm attempting to add new files to the app/widgets directory. I've added a .h and a .c file and the compiler tries to compile it. I seem to be able to compile code in these files however, when I try to include gimp.h, I get an error in gimpobject.h line 35 saying something like, expected specifier-qualifier-list before 'GObject' I'm not sure what I'm doing wrong and I can't seem to find anything on the gimp developer site or in any of the archives for the mailing list. Is there a prescribed way to add files? If so, where can I find this information? Hi! This doesn't sound like an add-file problem but an include-problem. More specifically, it seems that you include gimp.h before the GObject header is pulled in. Did you read the GIMP include policy in devel-docs/includes.txt? You can see how other files in the app/widgets dir include gimp.h, for example gimpcolordialog.c. That file, like most files in that dir, includes the GObject header indirectly by pulling in the GTK+ header: #include gtk/gtk.h and then after widgets-types.h comes gimp.h: #include core/gimp.h Let us know if you need further assistance. Best regards, Martin ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer