Re: stop dialog response - - was dialogs problems -- FIXED?
- From: Juan Pablo <jpdborgna yahoo com ar>
- To: gtk-app-devel-list gnome org
- Subject: Re: stop dialog response - - was dialogs problems -- FIXED?
- Date: Fri, 20 Jan 2006 15:37:35 -0300
Juan Pablo wrote:
Hi list, i figured out what was my problem.
Thanks for the responses I recived.
The problem of calling gtk_dialog_run inside a dialog wich is running
with gtk_dialog_run is that if the second call was made by pressing an
action button, the event of this button is also taken in account.
What i want to do is that when the action button is pressed and the
conditions are not met (checked at the button cb), the dialog should
not emit a response. How do I do it?
Thanks all.
Saludos, Juan Pablo.
Hmm...
I did this:
while (gtk_dialog_run(GTK_DIALOG(new_prov))!=GTK_RESPONSE_CLOSE);
And do this when all is ok:
gtk_dialog_response(GTK_DIALOG(lookup_widget(GTK_WIDGET(button),"new_prov")),GTK_RESPONSE_CLOSE);
Please anybody tellme if its ok and if its the way.
Its working... it cant be that bad.
Saludos, Juan Pablo.
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]