[vlc-devel] commit: Skins2: change DTD to add possibility to store ID for Anchors, Panels and Groups. (Daniel Dreibrodt )

git version control git at videolan.org
Sun Feb 1 18:20:06 CET 2009


vlc | branch: master | Daniel Dreibrodt <daniel.dreibrodt at googlemail.com> | Sun Feb  1 18:19:48 2009 +0100| [8a5a4a2d2354e3fafe882fbce38d07b37034c1ce] | committer: Jean-Baptiste Kempf 

Skins2: change DTD to add possibility to store ID for Anchors, Panels and Groups.

It adds possibility to store IDs for Anchors, Panels and Groups.
This does not change the way skins2 works I believe. It just stops the
XML parser from complaining about non standard skins when they have set
IDs for those elements. And setting IDs for them is vital in the skin
editor, as it differentiates between different elements in the skin just
by their ID.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a5a4a2d2354e3fafe882fbce38d07b37034c1ce
---

 share/skins2/skin.dtd |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/share/skins2/skin.dtd b/share/skins2/skin.dtd
index 5a7ff14..3faa609 100644
--- a/share/skins2/skin.dtd
+++ b/share/skins2/skin.dtd
@@ -92,12 +92,14 @@
 <!ELEMENT Group (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
                  Anchor|Video|Playtree|Panel)+>
     <!ATTLIST Group
+        id          CDATA   "none"
         x           CDATA   "0"
         y           CDATA   "0"
     >
 <!ELEMENT Panel (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
                  Anchor|Video|Playtree|Panel)+>
     <!ATTLIST Panel
+        id          CDATA   "none"
         x           CDATA   "0"
         y           CDATA   "0"
         lefttop     CDATA   "lefttop"
@@ -111,6 +113,7 @@
 <!-- Anchors -->
 <!ELEMENT Anchor EMPTY>
     <!ATTLIST Anchor
+        id          CDATA   "none"
         x           CDATA   "0"
         y           CDATA   "0"
         lefttop     CDATA   "lefttop"




More information about the vlc-devel mailing list