Re: GtkDialogFlags problem

Havoc Pennington wrote:

Jeff Franks <jcf tpg com au> writes:

I was wondering about the following line of code that appears in the
static gtk_dialog_new_empty function:

    if (flags & GTK_DIALOG_MODAL)
         gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);

Since GTK_DIALOG_MODAL has a value of zero in the GtkDialogFlags enum
doesn't 'flags & GTK_DIALOG_MODAL' always evaluate to FALSE.

Yeah, that enum is impressively broken. ;-)



Is the GTK_DIALOG_MODAL flag really necessary when the gtk_dialog_run() function does it all for you for free.


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