forked from AuroraMiddleware/gtk
Pass the correct data to gdk_content_register_serializer()
The argument is eventually passed to g_conv(), so it should be the charset, not the mime/type. Without this change the contentype converter will fail to convert UTF-8 strings to, say, CP-1251 later on.
This commit is contained in:
parent
6bf88d90f3
commit
6e085b3bf1
@ -895,8 +895,8 @@ init (void)
|
||||
gdk_content_register_serializer (G_TYPE_STRING,
|
||||
mime,
|
||||
string_serializer,
|
||||
mime,
|
||||
g_free);
|
||||
(gpointer) charset,
|
||||
NULL);
|
||||
}
|
||||
gdk_content_register_serializer (G_TYPE_STRING,
|
||||
"text/plain",
|
||||
|
Loading…
Reference in New Issue
Block a user