Re: GtkList widget and mouse buttons



Lars Hamann wrote:
> 
> 
> On 02-Dec-98 Owen Taylor wrote:
> 
> > Lars Hamman, I believe, has some current plans for making the
> > button actions in GtkCList configurable. A compatible interface
> > to GtkList should be OK, though IMO, the mouse bindings for a
> > List (or CList) widget are something that an application should
> > touch with very great care, since standardization here is
> > essential from the point of view of the user.
> 
> Yes, I'm working currently on a proposal Tim Janik made once.
> 
> typedef enum
> {
>   GTK_BUTTON_IGNORED    = 0,
>   GTK_BUTTON_SELECTS    = 1 << 0,
>   GTK_BUTTON_DRAGS      = 1 << 1,
> } GtkButtonFlags;

General programming question.  Is there any benefit to defining bitmap
enums as above, instead of like

	GTK_BUTTON_IGNORED = 0x00000000,
	GTK_BUTTON_SELECTS = 0x00000001,
	GTK_BUTTON_DRAGS   = 0x00000002,
	GTK_BUTTON_STUFF   = 0x00000004,
	etc.

Thanks,

	Jeff





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