Re: dialog patches



Havoc Pennington <hp redhat com> writes: 
>  There are two use cases we're envisioning for GtkDialog.
> 
>  A. Synchronous
> 
>   - create dialog with gtk_dialog_new() or new_with_buttons(),
>     pack child widgets
>   - int result = gtk_dialog_run (dialog)
>   - switch (result) and take some action
>   - destroy or hide the dialog
>   - optionally, instead of destroy/hide, signal an error to the user
>     and goto the gtk_dialog_run() step again
> 
>  B. Asynchronous
> 
>   - create dialog with gtk_dialog_new(), pack children
>   - connect callbacks to delete_event, the "response" signal,
>     and/or to widgets you're manually packed into the action area.
>     The callbacks will be set up to destroy the dialog when
>     appropriate.
> 
... 
>  I recommend committing the current stuff, which covers use case A,
>  and then discussing what to do about use case B as a separate issue.
> 

OK, if no one comes up with objections to the patch for case A above
in the next couple days I'm going to commit this code. IIRC Tim's
objections to the dialog stuff were all about case B, which remains
the same as it is in GTK 1.2 after applying my patch.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]