[maemo-developers] Gtk Dialog box causing application to crash
From: Simon Budig simon at budig.deDate: Thu Aug 7 11:47:16 EEST 2008
- Previous message: Gtk Dialog box causing application to crash
- Next message: powering on gps, playing nice with others
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jussi Kukkonen (jku at o-hand.com) wrote: > * gtk_dialog_run() makes the dialog modal, so you can't use several > dialogs at once. You'll have to connect to the "respose" signal and > and show the widget yourself. The dialog is not necessarily modal, if you want modal behaviour add "GTK_DIALOG_MODAL" to the dialog flags. When using gtk_dialog_run () a recursive mainloop gets started and (some) event processing for the parent windows widgets get blocked. Unless you want some custom behaviour it then usually is not necessary to connect to the respond-signal (which *is* probably needed if you want multiple dialogs simultaneously). You also can force the dialog to respond by calling gtk_dialog_response(). This is useful if you e.g. want to cancel a dialog because of external conditions. Bye, Simon -- simon at budig.de http://simon.budig.de/
- Previous message: Gtk Dialog box causing application to crash
- Next message: powering on gps, playing nice with others
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]