diff options
author | Havoc Pennington <hp@redhat.com> | 2000-11-07 23:05:19 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-11-07 23:05:19 +0000 |
commit | d3c9910ad2eead372836f24caba2b8724376eddb (patch) | |
tree | 8de29fa4d380a58f0f22add8896dff13f2c04a5d /gtk/gtktextbuffer.h | |
parent | f1de9df0511db6e82ee12c8e7f78d68d7a31cbbe (diff) | |
download | gtk+-d3c9910ad2eead372836f24caba2b8724376eddb.tar.gz |
Half-ass somewhat fix this function, so that scrolling to the insertion
2000-11-07 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
Half-ass somewhat fix this function, so that scrolling to the
insertion point works. Pango hacking is in the future to really
fix it.
* gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
length of data, no longer used.
* gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
method contents in here, get rid of destroy method
(gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
that were backward. Remove debug spew.
(cut_or_copy): Make the clipboard work with insert_range to
preserve tags and pixbufs, not just the primary selection.
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r-- | gtk/gtktextbuffer.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h index 54844e1465..f8c00a6710 100644 --- a/gtk/gtktextbuffer.h +++ b/gtk/gtktextbuffer.h @@ -53,17 +53,21 @@ typedef struct _GtkTextBTree GtkTextBTree; typedef struct _GtkTextBufferClass GtkTextBufferClass; -struct _GtkTextBuffer { +struct _GtkTextBuffer +{ GtkObject parent_instance; GtkTextTagTable *tag_table; GtkTextBTree *btree; + GtkTextBuffer *clipboard_contents; + /* Whether the buffer has been modified since last save */ - gboolean modified; + guint modified : 1; }; -struct _GtkTextBufferClass { +struct _GtkTextBufferClass +{ GtkObjectClass parent_class; void (* insert_text) (GtkTextBuffer *buffer, |