summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-28 02:09:21 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-03 05:46:48 +0100
commitf53848c3606a9c46bcb3a0e568f36e573bdf84da (patch)
treeb1dd4a727486e33abcf40401208c94c6b2f547fa /gtk/gtktextbuffer.h
parent4e06aaeaa8de2f01e28f68f41c442b6dd66482db (diff)
downloadgtk+-f53848c3606a9c46bcb3a0e568f36e573bdf84da.tar.gz
textview: Redo clipboard handling
Instead of using GtkClipboard and handling everything ourselves, we now put GtkTextBuffer into the GdkClipboard and register (de)serializers for text/plain.
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r--gtk/gtktextbuffer.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h
index 240bf8e2f9..2181c5efb5 100644
--- a/gtk/gtktextbuffer.h
+++ b/gtk/gtktextbuffer.h
@@ -30,7 +30,6 @@
#endif
#include <gtk/gtkwidget.h>
-#include <gtk/gtkclipboard.h>
#include <gtk/gtktexttagtable.h>
#include <gtk/gtktextiter.h>
#include <gtk/gtktextmark.h>
@@ -146,7 +145,7 @@ struct _GtkTextBufferClass
void (* end_user_action) (GtkTextBuffer *buffer);
void (* paste_done) (GtkTextBuffer *buffer,
- GtkClipboard *clipboard);
+ GdkClipboard *clipboard);
/*< private >*/
@@ -425,21 +424,21 @@ gboolean gtk_text_buffer_get_has_selection (GtkTextBuffer *buffer);
GDK_AVAILABLE_IN_ALL
void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer,
- GtkClipboard *clipboard);
+ GdkClipboard *clipboard);
GDK_AVAILABLE_IN_ALL
void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer,
- GtkClipboard *clipboard);
+ GdkClipboard *clipboard);
GDK_AVAILABLE_IN_ALL
void gtk_text_buffer_cut_clipboard (GtkTextBuffer *buffer,
- GtkClipboard *clipboard,
+ GdkClipboard *clipboard,
gboolean default_editable);
GDK_AVAILABLE_IN_ALL
void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer,
- GtkClipboard *clipboard);
+ GdkClipboard *clipboard);
GDK_AVAILABLE_IN_ALL
void gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer,
- GtkClipboard *clipboard,
+ GdkClipboard *clipboard,
GtkTextIter *override_location,
gboolean default_editable);
@@ -458,11 +457,6 @@ void gtk_text_buffer_begin_user_action (GtkTextBuffer *buffer);
GDK_AVAILABLE_IN_ALL
void gtk_text_buffer_end_user_action (GtkTextBuffer *buffer);
-GDK_AVAILABLE_IN_ALL
-GdkContentFormats * gtk_text_buffer_get_copy_target_list (GtkTextBuffer *buffer);
-GDK_AVAILABLE_IN_ALL
-GdkContentFormats * gtk_text_buffer_get_paste_target_list (GtkTextBuffer *buffer);
-
G_END_DECLS