Commit 47428b89 authored by Daiki Ueno's avatar Daiki Ueno
Browse files

Define eek_symbol_is_modifier as function.

parent 0965ed68
......@@ -301,3 +301,17 @@ eek_symbol_get_modifier_mask (EekSymbol *symbol)
priv = EEK_SYMBOL_GET_PRIVATE(symbol);
return priv->modifier_mask;
}
/**
* eek_symbol_is_modifier:
* @symbol: an #EekSymbol
*
* Check if @symbol is a modifier.
* Returns: %TRUE if @symbol is a modifier.
*/
gboolean
eek_symbol_is_modifier (EekSymbol *symbol)
{
return eek_symbol_get_modifier_mask (symbol) != 0;
}
......@@ -86,16 +86,7 @@ EekSymbolCategory eek_symbol_get_category (EekSymbol *symbol);
EekModifierType eek_symbol_get_modifier_mask (EekSymbol *keysym);
void eek_symbol_set_modifier_mask (EekSymbol *keysym,
EekModifierType mask);
/**
* eek_symbol_is_modifier:
* @symbol: an #EekSymbol
*
* Check if @symbol is a modifier.
* Returns: %TRUE if @symbol is a modifier.
*/
#define eek_symbol_is_modifier(symbol) \
(eek_symbol_get_modifier_mask ((symbol)) != 0)
gboolean eek_symbol_is_modifier (EekSymbol *symbol);
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment