GtkSourceSearchFlags problem



Hi,

GtkSourceSearchFlags is declared in gtksourceiter.h like this:

typedef enum {
   GTK_SOURCE_SEARCH_VISIBLE_ONLY,
   GTK_SOURCE_SEARCH_TEXT_ONLY,
   GTK_SOURCE_SEARCH_CASE_INSENSITIVE
} GtkSourceSearchFlags;

but because it's represents a bitmask field I think it should be declared like this:

typedef enum {
   GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1 << 0,
   GTK_SOURCE_SEARCH_TEXT_ONLY = 1 << 1,
   GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 1 << 2
} GtkSourceSearchFlags;

Regards,

Jeff Franks.




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