dnd: gdk_drag_action_is_unique() should return a boolean

This commit is contained in:
Benjamin Otte 2018-06-19 16:47:36 +02:00
parent 87532f0ac3
commit 4d4ec2dbfb
2 changed files with 2 additions and 2 deletions

View File

@ -761,7 +761,7 @@ gdk_drag_get_cursor (GdkDragContext *context,
*
* Returns: %TRUE if exactly one action was given
**/
GdkDragAction
gboolean
gdk_drag_action_is_unique (GdkDragAction action)
{
return (action & (action - 1)) == 0;

View File

@ -73,7 +73,7 @@ GDK_AVAILABLE_IN_ALL
GdkDragAction gdk_drag_context_get_selected_action (GdkDragContext *context);
GDK_AVAILABLE_IN_ALL
GdkDragAction gdk_drag_action_is_unique (GdkDragAction action);
gboolean gdk_drag_action_is_unique (GdkDragAction action);
/* Source side */