[Glade-users] Button



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






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