summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-11-07 21:01:02 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-11-07 21:01:02 +0000
commitf1de9df0511db6e82ee12c8e7f78d68d7a31cbbe (patch)
treee7c7ec7be138908bef2c5395d50ab6710f86f6d9 /gtk/gtkselection.h
parent163dc54dea828d41fe12eb762c730e57444d63f3 (diff)
downloadgdk-pixbuf-f1de9df0511db6e82ee12c8e7f78d68d7a31cbbe.tar.gz
rename to gtk_text_mark_get_visible
2000-11-07 Havoc Pennington <hp@redhat.com> * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename to gtk_text_mark_get_visible * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix bug that was generating an invalid iterator * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to ensure_char_offsets() in front of code placing the iter in an invalid state. * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary): make override_location arg const (paste): Replace the selection if we paste into the current selection * gtk/gtkselection.h: Remove "GtkSelectioData" (struct _GtkSelectionData): move the definition here. * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection): Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement (gtk_text_buffer_insert_range_interactive): implement (gtk_text_buffer_get_tags): Remove, replaced by gtk_text_iter_get_tags() * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search limit parameter, to avoid infinite linear scan. (gtk_text_iter_backward_search): Add search limit (gtk_text_iter_forward_find_char): Add search limit (gtk_text_iter_backward_find_char): Add search limit
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r--gtk/gtkselection.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h
index 668fec4b3..4c109d553 100644
--- a/gtk/gtkselection.h
+++ b/gtk/gtkselection.h
@@ -36,10 +36,30 @@
extern "C" {
#endif /* __cplusplus */
-typedef struct _GtkSelectionData GtkSelectioData;
typedef struct _GtkTargetList GtkTargetList;
typedef struct _GtkTargetEntry GtkTargetEntry;
+/* The contents of a selection are returned in a GtkSelectionData
+ * structure. selection/target identify the request. type specifies
+ * the type of the return; if length < 0, and the data should be
+ * ignored. This structure has object semantics - no fields should be
+ * modified directly, they should not be created directly, and
+ * pointers to them should not be stored beyond the duration of a
+ * callback. (If the last is changed, we'll need to add reference
+ * counting.) The time field gives the timestamp at which the data was
+ * sent.
+ */
+
+struct _GtkSelectionData
+{
+ GdkAtom selection;
+ GdkAtom target;
+ GdkAtom type;
+ gint format;
+ guchar *data;
+ gint length;
+};
+
struct _GtkTargetEntry {
gchar *target;
guint flags;
@@ -125,8 +145,8 @@ gint gtk_selection_notify (GtkWidget *widget,
GdkEventSelection *event);
gint gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event);
-GtkSelectioData *gtk_selection_data_copy (GtkSelectionData *data);
-void gtk_selection_data_free (GtkSelectionData *data);
+GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
+void gtk_selection_data_free (GtkSelectionData *data);