Re: open/fork from a callback hang the windows (gtk2::helper)



On 15 January 2015 at 07:21, Prunk Dump <prunkdump gmail com> wrote:
On all gtk2::helper examples I've found, the "open" call is made
before Gtk2->main. How can I do if the windows is already displayed
and if I'm inside gtkmain ?

I use Glib::Timeout() to update the progress bar. I start the
subprocess with IPC::Open3::open3(), and Glib::IO->add_watch() to
monitor the output.

You can see the gory details in

https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/lib/Gscan2pdf/Frontend/CLI.pm

Search for "_watch_cmd"

Regards

Jeff


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