[Gimp-developer] How to change the active current tool from a plugin?

2007-04-25 Thread Laurent gauvrit
hello everybody, I work on a hopefull edge detection plugin for gimp and i need to change the active current tool by a button in my plugin. Anyone know the answer??? thanks lolo _ Windows Live Spaces : créez votre blog à votre

[Gimp-developer] How to change the active current tool from a plugin?

2007-04-25 Thread Laurent gauvrit
I am a little worried about what you said. I can change colors with gimp_context_set_default_colors (void); (and it works) but I don't manage to use the gimp_context_set_paint_method (const gchar *name); method. I tried this code gimp_context_set_paint_method("gimp-paintbrush"); If I can't ch

[Gimp-developer] How to change the active current tool from aplugin?

2007-04-26 Thread Laurent gauvrit
Sven you look like a hardworker, thank you so much for answer so quikly! That I told I try to design an edge detection plugin. This plugin helps the user to select an objet on a picture. In first the user select one algorithm (like Sobel for example), next the plugin will create 3 layers: -a cop