summaryrefslogtreecommitdiff
path: root/gtk/gtktextmarkprivate.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-10-24 22:44:14 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-10-24 22:44:14 +0000
commit2fab0eb1fa92964cca24d55e51203c5af5113c8e (patch)
tree6198960908bd87ef72de178dd3ad0452d825832a /gtk/gtktextmarkprivate.h
parent873b316f2346ad4cc928b798337d35f46a0ec716 (diff)
downloadgtk+-2fab0eb1fa92964cca24d55e51203c5af5113c8e.tar.gz
make it a static function
2000-10-24 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make it a static function * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should redraw text when a tag is applied to it. * gtk/gtktexttag.c (gtk_text_tag_affects_size) (gtk_text_tag_affects_nonsize_appearance): private functions to see if a tag requires various kinds of redraw/layout to be queued up. * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock * gtk/testtext.c (fill_example_buffer): Put the cursor at the start of the buffer, so search works by default * gtk/gtktextiter.c (lines_match): init match_start always * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New function, get iter at a line + a byte index * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function, to set byte position within a line (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
Diffstat (limited to 'gtk/gtktextmarkprivate.h')
-rw-r--r--gtk/gtktextmarkprivate.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtktextmarkprivate.h b/gtk/gtktextmarkprivate.h
index 87e862c289..4776ca6b10 100644
--- a/gtk/gtktextmarkprivate.h
+++ b/gtk/gtktextmarkprivate.h
@@ -8,7 +8,7 @@ extern "C" {
#include <gtk/gtktexttypes.h>
#include <gtk/gtktextlayout.h>
-#define GTK_IS_TEXT_MARK(mark) (((GtkTextLineSegment*)mark)->type == &gtk_text_left_mark_type || \
+#define GTK_IS_TEXT_MARK_SEGMENT(mark) (((GtkTextLineSegment*)mark)->type == &gtk_text_left_mark_type || \
((GtkTextLineSegment*)mark)->type == &gtk_text_right_mark_type)
/*
@@ -17,7 +17,7 @@ extern "C" {
*/
struct _GtkTextMarkBody {
- guint refcount;
+ GtkTextMark *obj;
gchar *name;
GtkTextBTree *tree;
GtkTextLine *line;
@@ -28,9 +28,6 @@ struct _GtkTextMarkBody {
GtkTextLineSegment *_mark_segment_new (GtkTextBTree *tree,
gboolean left_gravity,
const gchar *name);
-void _mark_segment_ref (GtkTextLineSegment *mark);
-void _mark_segment_unref (GtkTextLineSegment *mark);
-
#ifdef __cplusplus
}