mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-29 08:56:15 +01:00
bcdc09e641
2008-07-21 Emmanuele Bassi <ebassi@gnome.org> * glib/gbookmarkfile.c: (bookmark_app_info_new): Do not set the timestamp value using time(), as it will be overwritten anyway. (#535223, Michael Meeks) (parse_application_element), (bookmark_app_info_dump): Support the "modified" attribute, which takes an ISO-formatted string instead of a Unix time stamp, to keep the number of g_strdup_printf() calls to a minimum. * glib/gtimer.c: (g_time_val_to_iso8601): Do not use strftime(): we know the format and contents of the ISO 8601 date format we use. * tests/bookmarks/valid-03.xbel: Add a test file for the modified attribute. svn path=/trunk/; revision=7231
22 lines
973 B
XML
22 lines
973 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE xbel
|
|
PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML"
|
|
"http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">
|
|
<xbel version="1.0"
|
|
xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"
|
|
xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"
|
|
>
|
|
<title>Singleton</title>
|
|
<desc>A file containing a single bookmark element</desc>
|
|
<bookmark href="file:///home/zefram/Documents/milan-stuttgart.ps" added="20050930T23:05:28Z" modified="20050930T23:05:28Z" visited="20050930T23:05:28Z">
|
|
<info>
|
|
<metadata owner="http://freedesktop.org">
|
|
<mime:mime-type type="application/postscript"/>
|
|
<bookmark:applications>
|
|
<bookmark:application name="populate-recent" exec="populate-recent --info %u" modified="2005-09-30T23:05:28Z" count="1"/>
|
|
</bookmark:applications>
|
|
</metadata>
|
|
</info>
|
|
</bookmark>
|
|
</xbel>
|