forked from AuroraMiddleware/gtk
6b1407a3ec
2001-12-04 Havoc Pennington <hp@redhat.com> * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove g_assert_not_reached() that was bogus, since we demand-create the tag info. reported by Chris Phelps Jump through assorted hoops to fix bug from Chris Phelps where removing tags from the table resulted in btree trying to access tag->table * gtk/gtktextbuffer.c: set up mechanics of adding/removing ourselves to the tag table * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) (_gtk_text_tag_table_remove_buffer): private cruft to let us notify buffer of disappearing tags * gtk/gtktexttag.h: remove BTreeNode typedef from this public header, put it in tagprivate * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to tag_removed; it's emitted too late. (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to this Padding for ABI-compat expansion * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this (struct _GtkTextAppearance): one pad in here too * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here * gtk/gtktextview.h (struct _GtkTextViewClass): more padding, since action signals etc. seem pretty likely * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding * gtk/gtktexttag.h (struct _GtkTextTagClass): padding * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
32 lines
1.4 KiB
C
32 lines
1.4 KiB
C
#ifndef GTK_TEXT_TAG_PRIVATE_H
|
|
#define GTK_TEXT_TAG_PRIVATE_H
|
|
|
|
#include <gtk/gtktexttag.h>
|
|
|
|
typedef struct _GtkTextBTreeNode GtkTextBTreeNode;
|
|
|
|
/* values should already have desired defaults; this function will override
|
|
* the defaults with settings in the given tags, which should be sorted in
|
|
* ascending order of priority
|
|
*/
|
|
void _gtk_text_attributes_fill_from_tags (GtkTextAttributes *values,
|
|
GtkTextTag **tags,
|
|
guint n_tags);
|
|
void _gtk_text_tag_array_sort (GtkTextTag **tag_array_p,
|
|
guint len);
|
|
|
|
/* ensure colors are allocated, etc. for drawing */
|
|
void _gtk_text_attributes_realize (GtkTextAttributes *values,
|
|
GdkColormap *cmap,
|
|
GdkVisual *visual);
|
|
|
|
/* free the stuff again */
|
|
void _gtk_text_attributes_unrealize (GtkTextAttributes *values,
|
|
GdkColormap *cmap,
|
|
GdkVisual *visual);
|
|
|
|
gboolean _gtk_text_tag_affects_size (GtkTextTag *tag);
|
|
gboolean _gtk_text_tag_affects_nonsize_appearance (GtkTextTag *tag);
|
|
|
|
#endif
|