libmalcontent: Set flag-like values for flag types
Previously these flags were using automatically assigned enum values, which would have eventually resulted in having more than one bit set per flag. Fix that before it happens by explicitly assigning flag-like values. This was an oversight when they were first written. This introduces no functional changes because both enums only had one element so far. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
5f2d4046ea
commit
282cf9c66b
|
@ -43,7 +43,7 @@ G_BEGIN_DECLS
|
|||
typedef enum
|
||||
{
|
||||
MCT_GET_APP_FILTER_FLAGS_NONE = 0,
|
||||
MCT_GET_APP_FILTER_FLAGS_INTERACTIVE,
|
||||
MCT_GET_APP_FILTER_FLAGS_INTERACTIVE = (1 << 0),
|
||||
} MctGetAppFilterFlags;
|
||||
|
||||
/**
|
||||
|
@ -60,7 +60,7 @@ typedef enum
|
|||
typedef enum
|
||||
{
|
||||
MCT_SET_APP_FILTER_FLAGS_NONE = 0,
|
||||
MCT_SET_APP_FILTER_FLAGS_INTERACTIVE,
|
||||
MCT_SET_APP_FILTER_FLAGS_INTERACTIVE = (1 << 0),
|
||||
} MctSetAppFilterFlags;
|
||||
|
||||
#define MCT_TYPE_MANAGER mct_manager_get_type ()
|
||||
|
|
Loading…
Reference in New Issue