[Gimp-developer] prototype Inspect plugin uploaded to Gimp registry, re gimp_env_init() abort
I uploaded a prototype of an Inspect plugin to the gimp registry. Refer to a previous thread about gimp_env_init() and a proposed patch. If I get encouragement and the proposed patch to GIMP-Python is approved, I might continue development. I think this plugin fits the Gimp practice of keeping documentation in the code. From the README file: A Gimp plugin that lets plugin programmers view documentation for PDB procedures, GIMP-Python modules, plugins and modules written in Python, and image data. The documentation is live, generated from the code itself and from the current state of GIMP and the PDB. Installation: Copy plugin-inspect.py and the inspector directory to your own, local plugin directory. Make plugin-inspect.py executable. See a comment in plugin-inspect.py for Linux commands. Version: This is an alpha version, a proof-of-concept, a work in progress. It works, and shouldn't crash. It is released for comments about the features and about the GUI. This alpha version asks: 1) whether Gimp Python plugin programmers need an inspector, a unified way to browse internals. 2) whether pydoc documentation for Gimp plugins and Gimp-Python is worthwhile. If so, Gimp needs to be patched to allow plugins to be reimported by pydoc without aborting with the message gimp_env_init() must only be called once. Refer to a discussion on gimp-dev mail list. You won't see the crash from this version since this version explicitly only documents a few plugins (itself) that are safe from this crash, i.e. that guard the call to main() so that it is only called if the script is imported at the top level. 3) whether to migrate HelpBrowse Plugins etc. from C to Python and Glade. Discussion: Uses Glade3 graphical GUI designer and pygtk (requires gtk+ 2.16). Duplicates the existing Gimp menu items HelpBrowse Plugins and HelpBrowse Procedures. Documents python language plugins and modules (including GIMP-Python) using the pydoc module (distributed with python, the official way to produce documentation from python code.) Its data driven. Other views of the data could be added, for example to view plugins by directory path. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Text color change
Thales img writes: Is there any way to change the color of part of a text? Like this: This wordis red I'm asking 'cause if there isn't an easy way is something to think about. Probably the easiest way is to use bucket fill and click on each of the letters. Note that that will change the layer into a graphics layer and lose the special text information, like font and size. A more elaborate, but more flexible, way, is to make a new layer on top of your text layer. Make a selection in that layer covering whatever part of the text you want in a different color (e.g. a rectangle covering only that word). Fill the rectangle with your desired color. Then, in the Layers dialog, set the mode of the new layer to Lighten Only. If your text was black, that will turn the word your desired color. If you started with a different color of text, you might need a different layer mode (experiment with all of them). Depending on your background color, this might also change some of the background around the text, but there are some ways to get arond that. Merge down on the layer will merge it only with the text layer below it, or you could use the text layer as a mask to mask off everything but text in the color layer. The best approach depends on exactly what effect you're trying to achieve and what colors are involved. ...Akkana ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Text color change
On Wed, 2010-03-17 at 11:10 -0700, Akkana Peck wrote: Thales img writes: Is there any way to change the color of part of a text? Like this: This wordis red I'm asking 'cause if there isn't an easy way is something to think about. Probably the easiest way is to use bucket fill and click on each of the letters. Note that that will change the layer into a graphics layer and lose the special text information, like font and size. A more elaborate, but more flexible, way, is to make a new layer on top of your text layer. Make a selection in that layer covering whatever part of the text you want in a different color (e.g. a rectangle covering only that word). Fill the rectangle with your desired color. Then, in the Layers dialog, set the mode of the new layer to Lighten Only. If your text was black, that will turn the word your desired color. If you started with a different color of text, you might need a different layer mode (experiment with all of them). As far as I can see GtkTextTag has properties for color, so it shouldn't be too difficult to extend the support for text styles in git master so that it also supports changing the text color on a per-glyph basis. Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Text color change
Thank you so much for your attention Akkana, the point is I'm able to change the color, I'm just looking if there is an easiest way. Like we now can do with Bold, Italic, etc. Sven, thanks for the reply too, I don't no anything about technicals details, but thanks anyway. Thales -- Thales Oliveira - Img Brasil +55 31 (8365 3869 - 3309 8760) ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Text color change
On Wed, 2010-03-17 at 16:58 -0300, Thales img wrote: Thank you so much for your attention Akkana, the point is I'm able to change the color, I'm just looking if there is an easiest way. Like we now can do with Bold, Italic, etc. Sven, thanks for the reply too, I don't no anything about technicals details, but thanks anyway. Then please ask on the gimp-user mailing-list. This list is for technical discussions and your question would have been more appropriate on gimp-user. Thanks, Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Problems building git version
Hi, I can't build Gimp from the git: Making all in libgimpwidgets make[2]: Entering directory `/home/emil/gimp-build/gimp/libgimpwidgets' CC gimpstock.lo gimpstock.c:394: error: ‘stock_input_device_22’ undeclared here (not in a function) gimpstock.c:521: error: ‘stock_input_device_16’ undeclared here (not in a function) gimpstock.c:521: error: initializer element is not constant gimpstock.c:521: error: (near initialization for ‘gimp_stock_menu_pixbufs[24].inline_data’) make[2]: *** [gimpstock.lo] Fel 1 make[2]: Leaving directory `/home/emil/gimp-build/gimp/libgimpwidgets' make[1]: *** [all-recursive] Fel 1 make[1]: Leaving directory `/home/emil/gimp-build/gimp' make: *** [all] Fel 2 Do I need to upgrade xorg or something? -- Emil ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Text color change
Easy man, easy, I asked here 'cause if it wouldn't possible change the color it would be a suggestion for whose that develop. Thanks anyway, sorry if it wasn't a good idea, Thales On Wed, Mar 17, 2010 at 5:33 PM, Sven Neumann s...@gimp.org wrote: On Wed, 2010-03-17 at 16:58 -0300, Thales img wrote: Thank you so much for your attention Akkana, the point is I'm able to change the color, I'm just looking if there is an easiest way. Like we now can do with Bold, Italic, etc. Sven, thanks for the reply too, I don't no anything about technicals details, but thanks anyway. Then please ask on the gimp-user mailing-list. This list is for technical discussions and your question would have been more appropriate on gimp-user. Thanks, Sven -- Thales Oliveira - Img Brasil +55 31 (8365 3869 - 3309 8760) ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer