GtkTextSearchFlags problem



Hi,

GtkTextSearchFlags is declared in gtktextiter.h like this:

typedef enum {
   GTK_TEXT_SEARCH_VISIBLE_ONLY,
   GTK_TEXT_SEARCH_TEXT_ONLY,
} GtkSourceSearchFlags;

but because it's represents a bitmask field shouldn't it be declared like this:

typedef enum {
   GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0,
   GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1,
} GtkTextSearchFlags;

Regards,

Jeff Franks.




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