Re: [Gimp-developer] Plugin that can open a drawable on screen. What am I doing wrong?

2009-12-27 Thread Sven Neumann
On Sat, 2009-12-26 at 19:03 +0100, Louise Hoffman wrote: > > You can't show a drawable by itself, it needs to be in an image. Also, an > > image can't show itself, you must create a display for that. You are also > > using the API in weird ways, for example, objects such as layers and images > > ar

Re: [Gimp-developer] Plugin that can open a drawable on screen. What am I doing wrong?

2009-12-27 Thread Louise Hoffman
> No you got an error. 0, or FALSE, means "error" which you can read in the > documentation for the function: > > http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-pixel Now I see =) And now I get my red pixel as I wanted =) gboolean s; guint8 pixel[] = { 0

Re: [Gimp-developer] Plugin that can open a drawable on screen. What am I doing wrong?

2009-12-27 Thread Louise Hoffman
> I strongly suggest that you read the tutorial on developer.gimp.org > then: > >  http://developer.gimp.org/writing-a-plug-in/1/index.html I read that one, and it was from that, I copied a lot of the code. I was why I had all this pointer and structs at first =) > and perhaps study the code of a

Re: [Gimp-developer] Plugin that can open a drawable on screen. What am I doing wrong?

2009-12-27 Thread Sven Neumann
On Sun, 2009-12-27 at 11:18 +0100, Louise Hoffman wrote: > > I strongly suggest that you read the tutorial on developer.gimp.org > > then: > > > > http://developer.gimp.org/writing-a-plug-in/1/index.html > > I read that one, and it was from that, I copied a lot of the code. I > was why I had all

Re: [Gimp-developer] Plugin that can open a drawable on screen. What am I doing wrong?

2009-12-27 Thread Martin Nordholts
Sven Neumann wrote: > On Sun, 2009-12-27 at 11:18 +0100, Louise Hoffman wrote: >>> I strongly suggest that you read the tutorial on developer.gimp.org >>> then: >>> >>> http://developer.gimp.org/writing-a-plug-in/1/index.html >> I read that one, and it was from that, I copied a lot of the code. I

[Gimp-developer] modify scale of brush with libgimp

2009-12-27 Thread Tim Chen
Hi all, A quick question, is it possible to modify the scale of the brush using some functions in libgimp from plug-in side? I know there is a gimp_brush_set_radius() function that could set the brush radius, but it is not exactly the *scale* in the tool option and could bring some problem when c

Re: [Gimp-developer] [Bug 605366] OpenRaster support

2009-12-27 Thread Jon Nordby
On Thu, Dec 24, 2009 at 4:47 PM, Martin Nordholts wrote: > Jon Nordby wrote: > >> Picking up this right now. As stated in the report, there is a Python >> input handler plug-in (written by me) available that provides OpenRaster >> support. Are you be interested in shipping this for 2.8? What woul