summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2010-09-08 20:33:30 +0300
committerTor Lillqvist <tml@iki.fi>2010-09-08 21:31:34 +0300
commit87141cf4c8f6d8cb3bfa1745e0dafa582fd0431e (patch)
treef1a61864aadbaa0f4dd503aabe1e5c638eaa471f /gtk/gtktextbtree.c
parent801875b8050e7113249943000276f72ffec07e6e (diff)
downloadgtk+-87141cf4c8f6d8cb3bfa1745e0dafa582fd0431e.tar.gz
Get rid of the rest of variables exported from libgtk
Especially the gtk_*_type ones in gtktexttypes.h were mentioned in gtk.symbols presumably by accident. That header isn't even installed, so no way can they be supposed to be public. gtk_text_attr_appearance_type is from the installed but "semi-private" gtktextlayout.h, so drop that one too from gtk.symbols for now. The use of gtk_text_unknown_char_utf8 is bit of a mess. Code in a few files knew implicitly that it is three bytes. Define a symbolic name for the length of it instead. Add an exported function gtk_text_unknown_char_utf8_gtk_tests_only() that returns a pointer to it just for the sake of gtk/tests/textbuffer.c. Prefix the variable with an underscore. I doubt the usefulness of the test_utf8() in textbuffer.c. If it could be dropped, gtk_text_unknown_char_utf8_gtk_tests_only() could be dropped, too.
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r--gtk/gtktextbtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 72abfc5d1f..b07a04ec1f 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -2389,8 +2389,8 @@ copy_segment (GString *string,
if (copy)
{
g_string_append_len (string,
- gtk_text_unknown_char_utf8,
- 3);
+ _gtk_text_unknown_char_utf8,
+ GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN);
}
}