GtkBuilder GMenu changes
- From: Ryan Lortie <desrt desrt ca>
- To: gtk-devel-list gnome org
- Subject: GtkBuilder GMenu changes
- Date: Wed, 25 Jan 2012 19:51:32 -0500
hi,
I was quite fond of the XML format originally used by GMenu because it
allowed for a relatively concise expression of the menus in your
application. It turned out that this format didn't jive well with the
rest of GtkBuilder and, particularly, the tools that we use to extract
translations from our XML file formats.
For this reason, the format has been changed to be brought more into
line with how the rest of GtkBuilder works. In doing so, I also moved
the code of the parser itself into Gtk and made it private (only to be
called by GtkBuilder).
The GLib API for parsing menus will soon disappear. When it does, you
will have to ensure that you have the new version of GTK installed.
I apologise for making this change after many people have probably
already written their menus in the old format. To mitigate the
inconvenience, I wrote a small XSLT program that should help with the
process of converting to the new format.
Commit: http://git.gnome.org/browse/gtk+/commit/?id=eed307713b8ef4da5e4edf0aa8d85aa5c32a6d4f
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=668696
XSLT program: http://bugzilla-attachments.gnome.org/attachment.cgi?id=206142
Cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]