mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
dnd: gdk_drag_action_is_unique() should return a boolean
This commit is contained in:
parent
87532f0ac3
commit
4d4ec2dbfb
@ -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;
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user