summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.c
diff options
context:
space:
mode:
authorSébastien Wilmet <swilmet@gnome.org>2013-09-15 01:07:36 +0200
committerSébastien Wilmet <swilmet@gnome.org>2013-09-16 09:48:24 +0200
commit310179176ccbca609aad3174f6714b4abb04748b (patch)
tree62cb02906bce99b30d860cc331e14010fc2665cc /gtk/gtktextbuffer.c
parent7e8bd7c43dcf4fa725b22a46fba2d2f755216c32 (diff)
downloadgtk+-310179176ccbca609aad3174f6714b4abb04748b.tar.gz
Improve doc of gtk_text_buffer_paste_clipboard()
It didn't explain the behavior when there is a non-empty buffer selection. https://bugzilla.gnome.org/show_bug.cgi?id=339539
Diffstat (limited to 'gtk/gtktextbuffer.c')
-rw-r--r--gtk/gtktextbuffer.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index de91b756b3..852b464e8a 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -3764,14 +3764,16 @@ remove_all_selection_clipboards (GtkTextBuffer *buffer)
* gtk_text_buffer_paste_clipboard:
* @buffer: a #GtkTextBuffer
* @clipboard: the #GtkClipboard to paste from
- * @override_location: (allow-none): location to insert pasted text, or %NULL for
- * at the cursor
+ * @override_location: (allow-none): location to insert pasted text, or %NULL
* @default_editable: whether the buffer is editable by default
*
- * Pastes the contents of a clipboard at the insertion point, or
- * at @override_location. (Note: pasting is asynchronous, that is,
- * we'll ask for the paste data and return, and at some point later
- * after the main loop runs, the paste data will be inserted.)
+ * Pastes the contents of a clipboard. If @override_location is %NULL, the
+ * pasted text will be inserted at the cursor position, or the buffer selection
+ * will be replaced if the selection is non-empty.
+ *
+ * Note: pasting is asynchronous, that is, we'll ask for the paste data and
+ * return, and at some point later after the main loop runs, the paste data will
+ * be inserted.
**/
void
gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer,