GtkSourceSearchFlags problem
- From: Jeff Franks <jcf tpg com au>
- To: Gnome Devtools list <gnome-devtools gnome org>
- Subject: GtkSourceSearchFlags problem
- Date: Fri, 13 Jun 2003 11:52:52 +1000
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]