Re: [anjuta-devel] New AnjutaProcess object



Hi Lucas,


Quoting Lucas van Dijk <info return1 net>:
Have you had time to continue on this? I want to finish integrating avr-gcc
this week (including the configure dialog UI), and this class would be very
useful. If you need any help, I'll be on IRC.

As for functions, I think it's handy if you could get the list index for a
given argument string, so you can remove certain arguments. I don't think
it's needed for the AVR plugin, but I can imagine it would be handy for
other environment plugins.

I will not have time to work on this in the following weeks because I will not
be at home. Then, I would like to discuss a bit more about this, I have made
some proposals but I'm not sure we couldn't find something better.


Anyway, to make minimal changes, I think you can do the following:

1. Each time the configuration is changed in the build plugin, create a
configure command and use the ianjuta_environment_override function to get the
modified list of arguments in the current build plugin.

2. I have proposed to add a "changed" signal to IAnjutaEnvironment interface but
I don't like this because it is used only in the configure dialog. So I think a
better way will be to add a "changed" signal on the custom widget that you pass
to the configure dialog. Your configure widget will be seen like improved
GtkEntry widget.

3. Connect to this new "changed" signal and in the call back, create a configure
command and use ianjuta_environment_override function to get the modified list
of arguments (like you do in 1).

This should solve your immediate problem, require relatively few changes. I
think we could perhaps find something better than adding a custom widget but I
haven't any better proposal at the moment.


Then, I think we could create a AnjutaProcess (I would like a better name here)
object to maintain all arguments of ianjuta_environment_override function. But,
it's a quite easy change rather cosmetic. You can already check all arguments
directly in argvp and envp array.

Then, I think I will add some gui for setting environment variables in the
configure dialog and I could use environment variables to pass the FLAGS
argument. So it would be probably better if your plugin is checking environment
variable too.


Regards,

Sébastien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]