[Gimp-developer] Please help with a syntax error.
> From: "Brent Hawkins" > Date: Thu, 4 Jun 2009 01:46:20 +0200 (CEST) > > When i try to run this script in the console, it says "Error: Bad > syntax of binding spec in let* : (var-one 1)" > > I already wrote a much bigger script using information from an old > tutorial but without trying out this simple part of it first and > now that doesn't work, except when you replace the variables with > values. > > Using gimp 2.6.6 and Ubuntu 9.04 > > (let* > (var-one 1) > (var-two 2) > (var-three 3) > ) > >The syntax of let* is > >(let* bindings &body body) > >The bindings are a single argument, so they have to be a list: > >(let* ((var-one 1) > (var-two 2)) > ...body...) > > Thank you so much! -- habeoanimusnon (via www.gimpusers.com) ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Please help with a syntax error.
From: "Brent Hawkins" Date: Thu, 4 Jun 2009 01:46:20 +0200 (CEST) When i try to run this script in the console, it says "Error: Bad syntax of binding spec in let* : (var-one 1)" I already wrote a much bigger script using information from an old tutorial but without trying out this simple part of it first and now that doesn't work, except when you replace the variables with values. Using gimp 2.6.6 and Ubuntu 9.04 (let* (var-one 1) (var-two 2) (var-three 3) ) The syntax of let* is (let* bindings &body body) The bindings are a single argument, so they have to be a list: (let* ((var-one 1) (var-two 2)) ...body...) -- Robert Krawitz Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2 Member of the League for Programming Freedom -- mail l...@uunet.uu.net Project lead for Gutenprint --http://gimp-print.sourceforge.net "Linux doesn't dictate how I work, I dictate how Linux works." --Eric Crampton ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Please help with a syntax error.
When i try to run this script in the console, it says "Error: Bad syntax of binding spec in let* : (var-one 1)" I already wrote a much bigger script using information from an old tutorial but without trying out this simple part of it first and now that doesn't work, except when you replace the variables with values. Using gimp 2.6.6 and Ubuntu 9.04 (let* (var-one 1) (var-two 2) (var-three 3) ) If it is just written wrong please tell me how it should be written. Thanks in advance -- Brent Hawkins ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] resubmitted patches: tile-cache performance improvements
Updated patches attached, including all requested coding style changes. Unless, of course, I missed any. Monty 0001-Minor-change-to-TILE_DATA_POINTER-that-restricts-TIL.patch Description: Binary data 0002-Add-additional-profiling-to-tile-usage-in-order-to-a.patch Description: Binary data 0003-Replace-two-list-flush-clean-first-cache-strategy-wi.patch Description: Binary data 0004-Correct-startup-flaw-in-idle-swapper-start-Don-t-wat.patch Description: Binary data ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Drawing a line in a GIMP plugin
Okay, one more bit of help should finish this. :-) On Sun, 2009-05-31 at 11:50 +1000, David Hodson wrote: > On Sat, 2009-05-30 at 20:47 -0400, Adam C Powell IV wrote: > > I'm sorry, I'm developing a C plugin (tried Scheme first and it was DOG > > slow). Is there a C equivalent? All I'm seeing is > > gimp-paintbrush-register. > > Open Gimp > Select Help > Procedure Browser > In the search box, type "brush" > Click on "gimp-context-set-brush" > Read the documentation > In your plugin, add the line: > > gboolean result = gimp_context_set_brush("Circle (01)"); > > Rinse, lather, repeat. > > (The hardest part is changing the dashes in the name to underscores.) Thanks very much, this and Rob's sequence got me almost there. And apologies to Rob, Liam and Sven for missing this post on Scheme -> C procedure names until after my Sunday replies. But using gimp_pencil (drawable_ID, etc.) in C only draws on the main window. I want it to draw on the preview or window as appropriate. Here's my function in a nutshell: if (!(drawable = (GimpDrawable *) gimp_drawable_get (drawable_ID))) return FALSE; has_selection = gimp_drawable_mask_bounds (drawable_ID, &x1, &y1, &x2, &y2); if (!(source_data = g_new (guchar, drawable->bpp * (x2-x1) * (y2-y1 return FALSE; gimp_pixel_rgn_init (&source_region, drawable, x1, y1, x2-x1, y2-y1, FALSE, FALSE); gimp_pixel_rgn_get_rect (&source_region, source_data, x1, y1, x2-x1, y2-y1); // Do some stuff to source_data gimp_pixel_rgn_init (&output_region, drawable, x1, y1, x2-x1, y2-y1, (preview == NULL), TRUE); gimp_pixel_rgn_set_rect (&output_region, source_data + y1*rowskip, 0, y1, full_width, y2-y1); // I want to draw the lines here if (preview) gimp_drawable_preview_draw_region (GIMP_DRAWABLE_PREVIEW (preview), &output_region); else { gimp_drawable_flush (drawable); gimp_drawable_merge_shadow (bs_param->drawable_ID, TRUE); gimp_drawable_update (bs_param->drawable_ID, x1, y1, win_width, win_height); } This is called by both the "invalidated" callback of the preview in the dialog, and also the run() method of the plugin after "OK". The first non-lines part works fine: the changes to source_data get merged into the preview when it's running, and into the original image when I click "OK". However, it draws the lines on the original image when the preview is running in the dialog. So that messes up the image analysis (Do some stuff... above) when that runs at the end of run(). And gimp_pixel_rgn_set_rect overwrites the lines, so they're all gone. How can I get this to behave like gimp_pixel_rgn_set_rect , i.e. draw on the preview in preview mode, and draw on the original window in run() ? Can I draw the lines into the output_region somehow? -Adam -- GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6 Engineering consulting with open source tools http://www.opennovation.com/ signature.asc Description: This is a digitally signed message part ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] hackmeeting @milan 19->21 June 2009
Hi all, (sorry if some of you got two similar emails...) i just wrote on the inkscape-devel list too. It was choosen as first for a merely chronological list of events: we developed inkscapegallery some month before gimpgallery. But here i am too. Probably you might have read about my company: nois3lab. You know already that we developed gimpgallery.net, as well as inkscapegallery.net. We underline that it's time to show it proudly to the world. So we're going to this year italian hackmeeting to have some workshops about this. Showing why The Gimp, why free software, why drupal and so on. But again: who better that its developer could? So, here I am: there will be some of you guys who want to come and take a workshop about the software itself? The roadmap, the status, the choices. It'll be of great pleasure for us all. Btw this years' saturday session will be focused on free software graphics, and video with some gimp sessions, some cinelerra's and pureData's... Here's the website http://it.hackmeeting.org and the wiki on which we're planning the meeting http://www.hackmeeting.org/_wiki/ Down here some info about hackmeeting. The Hackmeeting was born in 1998 as the time and place for Italian and international digital counterculters, hackers and activists to share ideas, discuss projects and plan strategies on cyber-rights, electronic tools for struggling and alternative views of society. In 10 years it has been organized in Florence, Milan, Rome, Catania, Bologna, Genova, Torino, Naples, Pisa, Palermo and Parma. Every year it has been participated by hundreds of people, each one contributing to the event with debates, projects, software, concerts, talks, and a lot more. This year the hackmeeting is back in Milan, in the neighbourhood that will be swept away by the 2015 International Exposition projects. Our slogan will be: Hack your fear! Build your future! Hackmeeting is a story twelve years old. Hackmeeting has been born in 1998 and has been hold every year since that date, all over Italy, from north to south, in Florence, Milan, Rome, Bologna, Turin, Pisa, Genoa, Naples, Palermo, Catania, Parma. It has gathered nerds, cyber activists, geeks, techies, but also anyone who cared to subscribe to a general definition of hacking as changing one's own life to suit one's own desire, overcoming limit and borders, self-managing tools and spaces. The Hackmeeting has always focused on open hardware and free software, on digital countercultures, economies without capital, free speech against repression, and tried to point out the evolution and the impact of computers and electronic communication on the information system and on all of our lives. Hackmeeting offers workshop, conferences, spontaneous discussion, cyber art performances, and much more. Each proposed activity, though, is meant as one of the facet of a philosophical framework based on sharing, openness, decentralization, free access, human evolution, and aimed at a political outcome. Hackmeeting is organized by a community of hackers unique in the world for its desire to funnel the hacker ethics into political activism, far beyond the limits of the technological environment. The Hackmeeting community thinks hacking is a tool to alter reality and society as a whole. The Hackmeeting is usually a three-days long event and it's completely self-organized through an open and non-moderated mailing list (https://www.autistici.org/mailman/listinfo/hackmeeting ) and wiki (http://hackmeeting.org/_wiki/index.php?title=Pagina_principale ), as well as local live meeting in the city which will hold the next edition. It often takes place in social centers, community spaces, and squats, to stress the close relationship between hacking and the underground political scene. (http://aia.mahost.org/pro_spaces.html) The first two days are dedicated to workshop, conferences and debates. The third is usually dedicated to a big plenum, where all the participants analyse new ideas and possibilities pointed out during the meeting, sum up all the event and reflects and examines projects for the next future. For the first time in 2009 Hackmeeting is going to be splitted in two parts, to reach as many people as possible: Warm up and Hackmeeting. Warm up is a series of events which will take place in various univerisities in Milan (Accademia di belle arti di Brera, Fisica, Bovisa, Bicocca, Scienze politiche, and Cascina Torchiera), between june 9th and 18th. They will be open conferences presented by researchers, experts, activists on ethics and hackers culture issues as hacking and net art history, open source, fear embedded societies, security and control, open design e 3D animation, peer to peer economy, ecohacking (hacker approach to ecology). The Hackmeeting itself will take place in Sos Fornace, Rho (sosfornace.org) from june 19th to 21st: three
[Gimp-developer] [GSoC] Request for Status Reports
Hello Michael: Adam and Eric are moving as expected on their respective GSoCs. Nicolas ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [GSoC] Request for Status Reports
Hi! >From Dynamics Gui side things are progressing as expected. We are setting up work flow, getting accounts and reading code. Best, Alexia On Wed, Jun 3, 2009 at 12:12 PM, Michael Schumacher wrote: > Hi, > > I'd like to see a short status report from each of our SoC mentors. > > We're now one week into SoC coding, and I want to be sure that everything > is going as you expect - or if it does not, I'd like to be able to supply > you with any assistance you need. > > Please do reply on the list, or mail me in private if you think that your > message is not appropriate for a public audience. > > > Regards, > Michael > -- > GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 > Euro/mtl.! > http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a > ___ > Gimp-developer mailing list > Gimp-developer@lists.XCF.Berkeley.EDU > https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer > --Alexia ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] [GSoC] Request for Status Reports
Hi, I'd like to see a short status report from each of our SoC mentors. We're now one week into SoC coding, and I want to be sure that everything is going as you expect - or if it does not, I'd like to be able to supply you with any assistance you need. Please do reply on the list, or mail me in private if you think that your message is not appropriate for a public audience. Regards, Michael -- GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.! http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [PATCH 1/4] Tile caching performance patches
On Wed, Jun 3, 2009 at 3:12 AM, Sven Neumann wrote: > There should not be any trailing whitespace in the GIMP source code. We > have several times trimmed away all trailing whitespace and committed > these cleanups. If new trailing whitespace sneaked in, then we should > probably do that again. You're right and I was vaguely astounded to see that. 'Show whitespace' seems like the right solution, not forcing anything. [BTW, did I manage to avoid any slipups in the new patches?] Monty ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [PATCH 1/4] Tile caching performance patches
Hi, On Tue, 2009-06-02 at 22:15 -0400, Christopher Montgomery wrote: > For about a month I'd turned on emacs's trailing whitespace autotrim > and it was a cure worse than the disease. How shall I kill my own > whitespace without generating patches 4x larger than necessary due to > others' trailing whitespace? There should not be any trailing whitespace in the GIMP source code. We have several times trimmed away all trailing whitespace and committed these cleanups. If new trailing whitespace sneaked in, then we should probably do that again. Now that git warns about trailing whitespace, we have a good chance to finally end this disease. I will commit another global whitespace cleanup later today. Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [PATCH 1/4] Tile caching performance patches
Hi, On Wed, 2009-06-03 at 11:41 +0930, David Gowers wrote: > I'd like to mention also that there are also some minor problems with > whitespace Right. I suggest to add the following lines to your .emacs file: (setq c-mode-common-hook '(lambda () (setq indent-tabs-mode nil) (setq show-trailing-whitespace "true"))) Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer