mutter/src/ui
Owen W. Taylor 020aea033c metacity-theme-3.xml: Add a flexible version mechanism
The current mechanism of metacity-theme-1.xml and metacity-theme-2.xml
is not flexible for allowing small-scale additions. With this patch
we bump the major version version once more to metacity-theme-3.xml
and add a single feature:

Any element in the DTD can have an attribute:

 version="[<|<=|=>|>] MAJOR.MINOR"

And it will be ignored unless the predicate is met. (< and > should
be to be entity escaped as &lt; and &gt;)

This allows having alternate sections of the theme file for older and
newer version.

* Required GLib version is bumped to 2.14 so we can parse versions
  with a regular expression.

* We switch internal version numbers to be "1000 * major + minor"

* We keep a stack of the maximum required version for the current portion
  the XML tree so that the "cannot use versions you don't require" stricture
  of the old code can be made local to a subpart of the tree.

* A version on the top metacity_theme element causes the entire file to
  be ignored; this allows having one metacity-theme-3.xml for version 3.2
  and newer (say) and a metacity-1.xml for everything old.

Actual new features will be added starting with 3.1 - 3.0 is just the
version="" feature.

http://bugzilla.gnome.org/show_bug.cgi?id=592503
2010-04-13 13:40:16 -04:00
..
draw-workspace.c Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
draw-workspace.h Clean up #includes according to the GNOME Goal. 2008-11-12 03:43:51 +00:00
fixedtip.c tooltip: set window type hint for self-drawn tooltips to GDK_WINDOW_TYPE_HINT_TOOLTIP 2010-02-11 12:04:10 -05:00
fixedtip.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
frames.c Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
frames.h Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
gradient.c sort source files into these directories according to which part of the WM 2007-12-19 21:17:50 +00:00
gradient.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
menu.c Stop using GTK_SIGNAL_FUNC, gdk_pixbuf_render_to_drawable 2009-08-26 12:56:04 -04:00
menu.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
metaaccellabel.c Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
metaaccellabel.h Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
preview-widget.c Replace usage of deprecated gtk api 2010-02-10 14:03:12 -05:00
preview-widget.h Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
resizepopup.c (Apologies for huge commit; these were done on a transatlantic flight. This is why we need bzr.) 2008-11-22 19:02:54 +00:00
tabpopup.c Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
testgradient.c Stop using GTK_SIGNAL_FUNC, gdk_pixbuf_render_to_drawable 2009-08-26 12:56:04 -04:00
theme-parser.c metacity-theme-3.xml: Add a flexible version mechanism 2010-04-13 13:40:16 -04:00
theme-parser.h sort source files into these directories according to which part of the WM 2007-12-19 21:17:50 +00:00
theme-viewer.c Stop using gtk_toolbar_insert_stock() 2009-08-26 12:57:29 -04:00
theme.c metacity-theme-3.xml: Add a flexible version mechanism 2010-04-13 13:40:16 -04:00
theme.h GtkStyle is specific to a particular colormap. Metacity uses different 2009-01-28 01:47:18 +00:00
themewidget.c Replace usage of deprecated gtk api 2010-02-10 14:03:12 -05:00
themewidget.h Remove deprecated GTK symbols 2009-08-04 09:23:37 +01:00
ui.c Accept an empty string as well as "disabled" for keybindings 2010-02-11 13:02:50 -05:00