forked from AuroraMiddleware/gtk
Fix docstring errors with drag and drop code
This commit is contained in:
parent
903afcbddd
commit
2b6162116d
@ -1003,7 +1003,7 @@ gdk_drop_emit_drop_event (GdkDrop *self,
|
||||
|
||||
/**
|
||||
* gdk_drop_has_value:
|
||||
* @drop: a #GdkDrop
|
||||
* @self: a #GdkDrop
|
||||
* @type: the type to check
|
||||
*
|
||||
* Returns whether calling gdk_drop_read_value_async() for @type
|
||||
@ -1012,13 +1012,13 @@ gdk_drop_emit_drop_event (GdkDrop *self,
|
||||
* Returns: %TRUE if the data can be deserialized to the given type
|
||||
*/
|
||||
gboolean
|
||||
gdk_drop_has_value (GdkDrop *drop,
|
||||
gdk_drop_has_value (GdkDrop *self,
|
||||
GType type)
|
||||
{
|
||||
GdkContentFormats *formats;
|
||||
gboolean ret;
|
||||
|
||||
formats = gdk_content_formats_ref (gdk_drop_get_formats (drop));
|
||||
formats = gdk_content_formats_ref (gdk_drop_get_formats (self));
|
||||
formats = gdk_content_formats_union_deserialize_gtypes (formats);
|
||||
|
||||
ret = gdk_content_formats_contain_gtype (formats, type);
|
||||
|
@ -475,7 +475,7 @@ gtk_drop_target_set_actions (GtkDropTarget *dest,
|
||||
|
||||
/**
|
||||
* gtk_drop_target_get_actions:
|
||||
* @dst: a #GtkDropTarget
|
||||
* @dest: a #GtkDropTarget
|
||||
*
|
||||
* Gets the actions that this drop target supports.
|
||||
*
|
||||
|
@ -79,7 +79,7 @@ void gtk_drop_target_read_selection (GtkDropTarget *dest,
|
||||
GdkAtom target,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer data);
|
||||
gpointer user_data);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkSelectionData *gtk_drop_target_read_selection_finish
|
||||
(GtkDropTarget *dest,
|
||||
|
@ -71,7 +71,7 @@ void gtk_drag_source_set_icon (GtkDragSource *source,
|
||||
int hot_x,
|
||||
int hot_y);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_drag_source_drag_cancel (GtkDragSource *sourcei);
|
||||
void gtk_drag_source_drag_cancel (GtkDragSource *source);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkDrag * gtk_drag_source_get_drag (GtkDragSource *source);
|
||||
|
@ -2730,7 +2730,7 @@ gtk_entry_get_icon_at_pos (GtkEntry *entry,
|
||||
* gtk_entry_set_icon_drag_source:
|
||||
* @entry: a #GtkEntry
|
||||
* @icon_pos: icon position
|
||||
* @formats: the targets (data formats) in which the data can be provided
|
||||
* @provider: a #GdkContentProvider
|
||||
* @actions: a bitmask of the allowed drag actions
|
||||
*
|
||||
* Sets up the icon at the given position so that GTK+ will start a drag
|
||||
|
@ -266,7 +266,7 @@ gchar * gtk_entry_get_icon_tooltip_markup (GtkEntry *
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_entry_set_icon_drag_source (GtkEntry *entry,
|
||||
GtkEntryIconPosition icon_pos,
|
||||
GdkContentProvider *content,
|
||||
GdkContentProvider *provider,
|
||||
GdkDragAction actions);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gint gtk_entry_get_current_icon_drag_source (GtkEntry *entry);
|
||||
|
Loading…
Reference in New Issue
Block a user