Escaping in (#51382)
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gtk org
- Subject: Escaping in (#51382)
- Date: 16 Mar 2001 12:04:45 -0500
Bug 51382 points out that there is no way to indicate
literal '/' characters in a GtkItemFactoryEntry.
(On a related topic, there is also a bug so that when
turning item factory strings entries into paths,
"/File/Add __" gets turned to "/File Add " not
"/File Add _"
And a bug where gtk_item_factory_print_func doesn't
handle an itemfactory entry containing literal \n.)
We don't really have an escaping standard in GTK+:
* GScanner and hence RC files support C-string like
escaping with \n \r \t \b \f and octal escapes.
This would imply:
"/_File/\\/var\\/log\\/messages"
* GMarkup, and hence markup-labels, uses, XML/SGML
entities, so:
"/_File/f;varf;logf;messages"
I think the first one is probably a bit more expected
and less unreadable so I'll suggest that we should do
that.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]