fix GtkSourceSearchFlags values

changes values from:

	0, 1, 2

to:

	1, 2, 4

before, GTK_SOURCE_SEARCH_VISIBLE_ONLY was 0,
and as the the enum values are used as bit-field,
checking for this bit would always return in _not set_:

    visible_only = (flags & GTK_SOURCE_SEARCH_VISIBLE_ONLY) != 0;
This commit is contained in:
hoijui 2017-12-17 10:42:59 +01:00
parent dd09ecacf8
commit aa0b0eb0d7

View File

@ -28,9 +28,9 @@ G_BEGIN_DECLS
typedef enum typedef enum
{ {
GTK_SOURCE_SEARCH_VISIBLE_ONLY, GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1,
GTK_SOURCE_SEARCH_TEXT_ONLY, GTK_SOURCE_SEARCH_TEXT_ONLY = 2,
GTK_SOURCE_SEARCH_CASE_INSENSITIVE GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 4
/* Possible future plans: SEARCH_REGEXP */ /* Possible future plans: SEARCH_REGEXP */
} GtkSourceSearchFlags; } GtkSourceSearchFlags;