Re: dialog enhancements
- From: Tim Janik <timj gtk org>
- To: gtk-devel-list redhat com
- Subject: Re: dialog enhancements
- Date: Sat, 25 Mar 2000 11:51:57 +0100 (CET)
On Sat, 25 Mar 2000, Tim Janik wrote:
> the simple solution to fritz's (urg, do you actually apostrophe-s
> such a name? ;) which also takes care of carrying on the main_quit
> flag is (and that's what BEAST's procedure dialog does):
>
> dialog_run (GtkWidget *dialog)
> {
> [...]
>
> gtk_widget_ref (dialog);
>
> [...]
>
> gtk_widget_show (dialog); /* GtkWindow.modal cares about modality here */
> do
> g_main_iteration (TRUE);
> while (GTK_WIDGET_VISIBLE (dialog));
>
> [...]
>
> gtk_widget_unref (dialog);
>
> [...]
> }
arg, of course that needs to be:
do
{
GDK_THREADS_LEAVE ();
g_main_iteration (TRUE);
GDK_THREADS_ENTER ();
}
while (GTK_WIDGET_VISIBLE (dialog));
which will, i guess, reintroduce fritz' problem, but then
i'm not sure i really understand it while reading over it again.
anyways, off to bed...
>
> >
> > Havoc
> >
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]