[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Dialog Question (Help) - solution
- From: Harring Figueiredo <harringf yahoo com>
- To: Shaun McCance <shaunm wolfram com>
- Cc: gtk <gtk-app-devel-list gnome org>
- Subject: Re: Dialog Question (Help) - solution
- Date: Mon, 14 Jul 2003 20:23:07 -0700 (PDT)
I found out the solution.
The solution is to set the FileSelection dialog to be Modal
gtk_window_set_modal(dialog).
Thanks for the help.
HArring.
--- Shaun McCance <shaunm@wolfram.com> wrote:
> On Mon, 2003-07-14 at 14:42, Harring Figueiredo wrote:
> > Folks,
> >
> > I created a dialog for Preferences as follows:
> >
> > dialog = gtk_dialog_new_with_buttons
> > ("CDStation2 Preferances", NULL,
> > GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
> > GTK_STOCK_APPLY, GTK_RESPONSE_APPLY,
> GTK_STOCK_CLOSE,
> > GTK_RESPONSE_CLOSE, "Reset", 999, NULL);
> > build_ui();
> > while(1){
> > rt = gtk_dialog_run(GTK_DIALOG(settings_ui->dialog));
> > if(rt == GTK_RESPONSE_APPLY )
> > g_warning("Apply changes not implemented.");
> > else{
> >
> gtk_widget_destroy(GTK_WIDGET(settings_ui->dialog));
> > break;
> > }
> > }
> >
> >
> > The dialog displays fine; however, while it is running, I press a button
> to
> > create a GtkFileSelection. The file selection gets displayed; however, I am
> > able to get a response from it no matter where I click.
>
> That's because you've made your dialog modal. Modal dialogs generally
> suck, and you shouldn't use them unless you have a really, really good
> reason.
>
> --
> Shaun
>
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
=====
"We should do smart things with stupid technology before we do stupid
things with smart technology."
--Bill Buxton, Alias Research
Harring Figueiredo
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]