GCancellables in SessionCfg and MainLoop



Hi,

Related to a thread I started previously[0], I was able to burn a CD
without a GUI from the Python bindings by setting the track and the
burner of a SessionCfg and then calling gtk.main(). The track I used
for testings was a TrackImageCfg and apparently the gtk.main() call
allows for the GCancellables of the TrackImageCfg object to do the
automatic configuration. It looks like this is the only way to get the
auto-configuration of the tracks, i.e, even if I try creating the
TrackImageCfg after starting the first MainLoop (the outermost loop)
the auto-configuration never happens unless I start a new MainLoop.

That would be OK if it wasn't for the fact that I need to display a
dialog with a progress bar and I can't do that if the gtk.main() call
is blocking. I then thought it was still possible because Dialog
objects run their internal MainLoop for events until the respone
signal is emitted, but it then looks like that internal loop does not
allow for the GCancellables to do their auto-configuration thing.

Any advices at this point? I was hoping I could determine if this is
an issue specific to Brasero or if I should ask on the gtk-app-devel
list for clarification on the behavior of the GCancellables and how
are they related to MainLoops. Also, if any one knows the way to make
this work on C, I can do with that.

Thanks in advance.

David E. Narvaez

[0] http://mail.gnome.org/archives/brasero-list/2011-March/msg00000.html


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