Re: updating appearance of a dialog without gtk_dialog_run?
- From: Jean Bréfort <jean brefort normalesup org>
- To: Ben Johnson <ben blarg net>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: updating appearance of a dialog without gtk_dialog_run?
- Date: Sat, 19 Mar 2005 10:56:42 +0100
Le samedi 19 mars 2005 �1:51 -0800, Ben Johnson a �it :
> Hey.
>
> I'm using a dialog to initiate a network action that blocks for a long
> time. I want to update a label on the dialog immediately prior to
> getting started with the network crap. normally I just update a label
> with the gtk_label_set_markup() function and see it happen on the
> screen. But, when I call gtk_label_set_markup() and then do
> long_blocking_network_operation(), the form doesn't update until the
> second function returns which can take a long time.
>
> I'm guessing that this sort of thing... making the application at least
> moderately responsive while a long lived blocking operation happens "in
> the background" is handled with threads. I'd like to avoid using
> threads if I can.
>
> I have an idea that involves using a timer to run gtk_dialog_run() for a
> very short time, just long enough to update the form before starting the
> blocking function. it would be sort of hackish no doubt.
call gtk_main_loop from your blocking operation.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]