summaryrefslogtreecommitdiff
path: root/gtk/gtktextchild.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/gtktextchild.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/gtktextchild.c')
-rw-r--r--gtk/gtktextchild.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtktextchild.c b/gtk/gtktextchild.c
index ad23def347..dd7d3a4906 100644
--- a/gtk/gtktextchild.c
+++ b/gtk/gtktextchild.c
@@ -134,9 +134,10 @@ _gtk_pixbuf_segment_new (GdkPixbuf *pixbuf)
seg->next = NULL;
- seg->byte_count = 3; /* We convert to the 0xFFFC "unknown character",
- * a 3-byte sequence in UTF-8
- */
+ /* We convert to the 0xFFFC "unknown character",
+ * a 3-byte sequence in UTF-8.
+ */
+ seg->byte_count = GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN;
seg->char_count = 1;
seg->body.pixbuf.pixbuf = pixbuf;