[Glade-users] Button

Alexey Kurochkin alexey.kurochkin at pathfinderlwd.com
Wed Aug 5 09:07:30 EDT 2009


On Tue, 2009-08-04 at 11:15 +0200, Zampini Samuele wrote:
> I am a very beginner with glade and I am trying to create a button that launch a script.
> 
> Could you send me an example of a callback function (if possible in c/c++) to do this?

You just need to call one of g_spawn functions in the callback. The
simplest one would probably be g_spawn_command_line_async()

http://library.gnome.org/devel/glib/stable/glib-Spawning-Processes.html#g-spawn-command-line-async




More information about the Glade-users mailing list