On Thu, Jul 06, 2000 at 10:08:26AM -0300, Martin Nogueira wrote:
> Hi all
> 
> Im from argentine and try to create an aplication.
> How can i add the command to a button?
> 
> for a console appz , i use:    system("mpg123");    to launch mgp123.
> 
> How can i do this with a button?

You'll have to create a callback function which then calls system like:

Signal: clicked
Handler: on_mpg123_button_clicked

After clicking the build button, it should create the on_mpg123_button_clicked
function in callbacks.c which you can modify to include the functions for
running mpg123.

A glade unrelated note is the fact that you probably shouldn't use system.. try
the exec() family of functions, and if you want to make sure your app's gui
remains usable while mpg123 is running, you should fork ().. read up on these
functions with 'man'.

Lucas

> 
> I supose:
> 
> on_button1_clicked
> data= system ("mpg123"); 
> 
> but dosen't work.
> 
> please Help me!
> 
> Tank you
> 
> +---------------------------------------------------------------------+
> To unsubscribe from this list, send a message to [EMAIL PROTECTED]
> with the line "unsubscribe glade-devel" in the body of the message.

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to