[Gtk-sharp-list] (best practices) how to retrieve the output from the dialog
Christopher David Howie
me at chrishowie.com
Sun May 2 16:28:06 EDT 2010
On 05/02/2010 03:41 PM, Maciej Pilichowski wrote:
> Ok, in a way I figured it out -- Run() instead of Show() makes the
> difference -- but still didn't grasp the "internal" meaning, why
> Show() is bad (after all dialog is still modal).
The difference is what you have already found out -- Run is intended to
be used on dialogs. It blocks and waits for a response to be generated
from the dialog, then returns that response.
So Run could be considered the synchronous variant of Show, with the
perk that it returns a value you can use to see if your ok, cancel, or
some other button was clicked.
pub 2048R/CF8338F5 2010-04-14
Fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5
More information about the Gtk-sharp-list