Re: GtkDialogFlags problem



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. ;-)

Havoc



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