We need a content provider for the selection,
to implement DND, and the text buffer already
has one. Just add an api to get it.
}
}
+GdkContentProvider *
+gtk_text_buffer_get_selection_content (GtkTextBuffer *buffer)
+{
+ return gtk_text_buffer_content_new (buffer);
+}
+
+
/**
* gtk_text_buffer_cut_clipboard:
* @buffer: a #GtkTextBuffer
gboolean interactive,
gboolean default_editable);
+GDK_AVAILABLE_IN_ALL
+GdkContentProvider *
+ gtk_text_buffer_get_selection_content (GtkTextBuffer *buffer);
+
GDK_AVAILABLE_IN_ALL
gboolean gtk_text_buffer_get_can_undo (GtkTextBuffer *buffer);
GDK_AVAILABLE_IN_ALL