summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-08-31 01:33:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-08-31 01:33:11 +0000
commitb97a0a452f1a2664622205b7aa08c57015070690 (patch)
tree9af23a86f849ab8e34c222b8add07009066b90f1 /gtk/gtktextbuffer.h
parentd5f469987b0f54e059467df7cf73ff0fd724a689 (diff)
downloadgtk+-b97a0a452f1a2664622205b7aa08c57015070690.tar.gz
Instead of always mirroring the selection to a single PRIMARY selection,
Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): Instead of always mirroring the selection to a single PRIMARY selection, allow it to be mirrored to any number of clipboards. * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, just use gtk_text_buffer_paste_clipboard with the appropriate clipboard. * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a GtkClipboard argument, and for paste_clipboard, the @override_location argument from @paste_primary. * gtk/gtktextview.c: Adapt to above change.
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r--gtk/gtktextbuffer.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h
index bfaafd2206..24311f8885 100644
--- a/gtk/gtktextbuffer.h
+++ b/gtk/gtktextbuffer.h
@@ -28,6 +28,7 @@
#define GTK_TEXT_BUFFER_H
#include <gtk/gtkwidget.h>
+#include <gtk/gtkclipboard.h>
#include <gtk/gtktexttagtable.h>
#include <gtk/gtktextiter.h>
#include <gtk/gtktextmark.h>
@@ -62,7 +63,8 @@ struct _GtkTextBuffer
GtkTextTagTable *tag_table;
GtkTextBTree *btree;
- GtkTextBuffer *clipboard_contents;
+ GSList *clipboard_contents_buffers;
+ GSList *selection_clipboards;
GtkTextLogAttrCache *log_attr_cache;
@@ -324,13 +326,19 @@ gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer);
void gtk_text_buffer_set_modified (GtkTextBuffer *buffer,
gboolean setting);
-void gtk_text_buffer_paste_primary (GtkTextBuffer *buffer,
- const GtkTextIter *override_location,
- gboolean default_editable);
+void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer,
+ GtkClipboard *clipboard);
+void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer,
+ GtkClipboard *clipboard);
+
void gtk_text_buffer_cut_clipboard (GtkTextBuffer *buffer,
+ GtkClipboard *clipboard,
gboolean default_editable);
-void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer);
+void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer,
+ GtkClipboard *clipboard);
void gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer,
+ GtkClipboard *clipboard,
+ GtkTextIter *override_location,
gboolean default_editable);
gboolean gtk_text_buffer_get_selection_bounds (GtkTextBuffer *buffer,