Re: [gtk-list] Modal dialog - no more please!
- From: Jiang XU <jiang xu echostar com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Modal dialog - no more please!
- Date: Mon, 30 Aug 1999 11:09:51 -0600
The code seems to be not all of them, you do not have signal connect........
any way, according to the code you show here,
Do not add gtk_main() in run_dialog(), insdead, put gtk_widget_destroy(dialog)
in a call back function of some signal connect with the dialog. then put the
gtk_main() in the main.cpp
Sven Anders wrote:
> Hello !
>
> My modal dialog drives me crazy ?!
> After closing the dialog and clicking to any other widget it
> mystically appears again. What's strange is that it does not
> happen always.
>
> What's wrong with my dialog?
>
> The structure is the following:
>
> callback()
> {
> <store result>
> gtk_main_quit();
> }
>
> run_dialog()
> {
> <create dialog>
> gtk_widget_show(dialog);
> gtk_main();
> gtk_widget_destroy(dialog);
> return result;
> }
>
> Any ideas ?!
>
> Thanks in advance and
> best regards
> Sven
> --
> .-------------------------------------------------------.
> .^. | Sven Anders, Germany | anderss@fmi.uni-passau.de |
> /V\ |----------------------| www.fmi.uni-passau.de/~anderss |
> // \\ | Sites I recommend: `--------------------------------|
> /( )\ | www.freshmeat.net www.enlightenment.org www.gnome.org |
> ^^-^^ `-------------------------------------------------------'
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]