By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,146 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,146 IT Pros & Developers. It's quick & easy.

Metacity error: The file format is invalid

eboyjr14
P: 27
I have this xml metacity thing, and it is giving off this error:

The file format is invalid.
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3.     <info>
  4.         <name>Royale</name>
  5.         <author>Devin Samarin</author>
  6.         <copyright>Devin Samarin, 2007</copyright>
  7.         <date>June 30, 2007</date>
  8.         <description>Royale - A copy of the theme used in Windows Media Center Edition</description>
  9.     </info>
  10.     <constant name="IconTitleSpacing" value="0"/>
  11.     <frame_geometry name="normal"  rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false" title_scale="medium">
  12.         <distance name="left_width" value="5"/>
  13.         <distance name="right_width" value="5"/>
  14.         <distance name="bottom_height" value="5"/>
  15.         <distance name="left_titlebar_edge" value="1"/>
  16.         <distance name="right_titlebar_edge" value="7"/>
  17.         <distance name="button_width" value="27"/>
  18.         <distance name="button_height" value="23"/>
  19.         <distance name="title_vertical_pad" value="0"/>
  20.         <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  21.         <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  22.     </frame_geometry>
  23.     <frame_geometry name="border" parent="normal" has_title="false">
  24.         <distance name="button_width" value="0"/>
  25.         <distance name="button_height" value="24"/>
  26.         <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  27.         <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  28.     </frame_geometry>
  29.     <draw_ops name="title-text-focused">
  30.         <title color="#060606" x="(width - title_width) / 2 +1" y="(height - title_height) / 2 + 1"/>
  31.         <title color="#ffffff" x="(width - title_width) / 2" y="(height - title_height) / 2"/>
  32.     </draw_ops>
  33.     <draw_ops name="title-text-unfocused">
  34.         <title color="#cecece" x="(width - title_width) / 2 +1" y="(height - title_height) / 2 + 1"/>
  35.         <title color="#ffffff" x="(width - title_width) / 2" y="(height - title_height) / 2"/>
  36.     </draw_ops>
  37.     <draw_ops name="blank">
  38.     </draw_ops>
  39.     <draw_ops name="title">
  40.         <image filename="titlebar-left-focused.png" x="0" y="0" width="object_width" height="height"/>
  41.         <image filename="titlebar-mid-focused.png" x="10" y="0" width="width - 10" height="height"/>
  42.         <image filename="titlebar-right-focused.png" x="width - object_width" y="0" width="object_width" height="height"/>
  43.     </draw_ops>
  44.     <draw_ops name="title-shaded">
  45.         <image filename="titlebar-left-shaded-focused.png" x="0" y="0" width="object_width" height="height"/>
  46.         <image filename="titlebar-mid-shaded-focused.png" x="10" y="0" width="width - 10" height="height"/>
  47.         <image filename="titlebar-right-shaded-focused.png" x="width - object_width" y="0" width="object_width" height="height"/>
  48.     </draw_ops>
  49.     <draw_ops name="frame-left-focused">
  50.         <image filename="frame-left-focused.png" x="0" y="0" width="width" height="height"/>
  51.     </draw_ops>
  52.     <draw_ops name="frame-right-focused">
  53.         <image filename="frame-right-focused.png" x="0" y="0" width="width" height="height"/>
  54.     </draw_ops>
  55.     <draw_ops name="frame-bottom-focused">
  56.         <image filename="frame-bottom-left-focused.png" x="0" y="0" width="5" height="object_height"/>
  57.         <image filename="frame-bottom-mid-focused.png" x="5" y="0" width="width - 10" height="object_height"/>
  58.         <image filename="frame-bottom-right-focused.png" x="width - object_width" y="0" width="object_width" height="object_height"/>
  59.     </draw_ops>
  60.     <draw_ops name="button-close-focused">
  61.         <image filename="close_normal.png" x="0" y="0" width="width" height="height"/>
  62.     </draw_ops>
  63.     <draw_ops name="button-close-unfocused">
  64.         <image filename="close_inactive.png" x="0" y="0" width="width" height="height"/>
  65.     </draw_ops>
  66.     <draw_ops name="button-close-pressed">
  67.         <image filename="close_down.png" x="0" y="0" width="width" height="height"/>
  68.     </draw_ops>
  69.     <draw_ops name="button-maximize-focused">
  70.         <image filename="max_normal.png" x="0" y="0" width="width" height="height"/>
  71.     </draw_ops>
  72.     <draw_ops name="button-maximize-unfocused">
  73.         <image filename="max_inactive.png" x="0" y="0" width="width" height="height"/>
  74.     </draw_ops>
  75.     <draw_ops name="button-maximize-pressed">
  76.         <image filename="max_down.png" x="0"  y="0" width="width" height="height"/>
  77.     </draw_ops>
  78.     <draw_ops name="button-minimize-focused">
  79.         <image filename="min_normal.png" x="0" y="0" width="width" height="height"/>
  80.     </draw_ops>
  81.     <draw_ops name="button-minimize-unfocused">
  82.         <image filename="min_inactive.png" x="0" y="0" width="width" height="height"/>
  83.     </draw_ops>
  84.     <draw_ops name="button-minimize-pressed">
  85.         <image filename="min_down.png" x="0" y="0" width="width" height="height"/>
  86.     </draw_ops>
  87.     <draw_ops name="button-menu-focused">
  88.         <image filename="button-menu-focused.png" x="0" y="0" width="width" height="height"/>
  89.     </draw_ops>
  90.     <draw_ops name="button-menu-unfocused">
  91.         <image filename="button-menu-unfocused.png" x="0" y="0" width="width" height="height"/>
  92.     </draw_ops>
  93.     <draw_ops name="button-menu-pressed">
  94.         <image filename="button-menu-pressed.png" x="0" y="0" width="width" height="height"/>
  95.     </draw_ops>
  96.     <frame_style name="normal-focused" geometry="normal">
  97.         <piece position="titlebar" draw_ops="title"/>
  98.         <piece position="left_edge" draw_ops="frame-left-focused"/>
  99.         <piece position="right_edge" draw_ops="frame-right-focused"/>
  100.         <piece position="bottom_edge" draw_ops="frame-bottom-focused"/>
  101.         <piece position="title" draw_ops="title-text-focused"/>
  102.         <button function="close" state="normal" draw_ops="button-close-unfocused"/>
  103.         <button function="close" state="prelight" draw_ops="button-close-focused"/>
  104.         <button function="close" state="pressed" draw_ops="button-close-pressed"/>
  105.         <button function="minimize" state="normal" draw_ops="button-minimize-unfocused"/>
  106.         <button function="minimize" state="prelight" draw_ops="button-minimize-focused"/>
  107.         <button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
  108.         <button function="maximize" state="normal" draw_ops="button-maximize-unfocused"/>
  109.         <button function="maximize" state="prelight" draw_ops="button-maximize-focused"/>
  110.         <button function="maximize" state="pressed" draw_ops="button-maximize-pressed"/>
  111.         <button function="menu" state="normal" draw_ops="button-menu-unfocused"/>
  112.         <button function="menu" state="prelight" draw_ops="button-menu-focused"/>
  113.         <button function="menu" state="pressed" draw_ops="button-menu-pressed"/>
  114.     </frame_style>
  115.     <frame_style name="normal-unfocused" geometry="normal">
  116.         <piece position="titlebar" draw_ops="title"/>
  117.         <piece position="left_edge" draw_ops="frame-left-focused"/>
  118.         <piece position="right_edge" draw_ops="frame-right-focused"/>
  119.         <piece position="bottom_edge" draw_ops="frame-bottom-focused"/>
  120.         <piece position="title" draw_ops="title-text-unfocused"/>
  121.         <button function="close" state="normal" draw_ops="button-close-unfocused"/>
  122.         <button function="close" state="prelight" draw_ops="button-close-focused"/>
  123.         <button function="close" state="pressed" draw_ops="button-close-pressed"/>
  124.         <button function="minimize" state="normal" draw_ops="button-minimize-unfocused"/>
  125.         <button function="minimize" state="prelight" draw_ops="button-minimize-focused"/>
  126.         <button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
  127.         <button function="maximize" state="normal" draw_ops="button-maximize-unfocused"/>
  128.         <button function="maximize" state="prelight" draw_ops="button-maximize-focused"/>
  129.         <button function="maximize" state="pressed" draw_ops="button-maximize-pressed"/>
  130.         <button function="menu" state="normal" draw_ops="button-menu-unfocused"/>
  131.         <button function="menu" state="prelight" draw_ops="button-menu-focused"/>
  132.         <button function="menu" state="pressed" draw_ops="button-menu-pressed"/>
  133.     </frame_style>
  134.     <frame_style name="normal-shaded-focused" geometry="normal" parent="normal-focused">
  135.         <piece position="titlebar" draw_ops="title-shaded"/>
  136.     </frame_style>
  137.     <frame_style name="normal-shaded-unfocused" geometry="normal" parent="normal-unfocused">
  138.         <piece position="titlebar" draw_ops="title-shaded"/>
  139.     </frame_style>
  140.     <frame_style_set name="normal">
  141.         <frame focus="yes" state="normal" resize="both" style="normal-focused"/>
  142.         <frame focus="no" state="normal" resize="both" style="normal-unfocused"/>
  143.         <frame focus="yes" state="maximized" style="normal-focused"/>
  144.         <frame focus="no" state="maximized" style="normal-unfocused"/>
  145.         <frame focus="yes" state="shaded" style="normal-shaded-focused"/>
  146.         <frame focus="no" state="shaded" style="normal-shaded-unfocused"/>
  147.         <frame focus="yes" state="maximized_and_shaded" style="normal-shaded-focused"/>
  148.         <frame focus="no" state="maximized_and_shaded" style="normal-shaded-unfocused"/>
  149.     </frame_style_set>
  150.     <window type="normal" style_set="normal"/>
  151.     <window type="dialog" style_set="normal"/>
  152.     <window type="modal_dialog" style_set="normal"/>
  153.     <window type="menu" style_set="normal"/>
  154.     <window type="utility" style_set="normal"/>
  155.     <window type="border" style_set="normal"/>
  156.     <menu_icon function="close" state="normal" draw_ops="button-close-focused"/>
  157.     <menu_icon function="maximize" state="normal" draw_ops="button-maximize-focused"/>
  158.     <menu_icon function="unmaximize" state="normal" draw_ops="button-maximize-focused"/>
  159.     <menu_icon function="minimize" state="normal" draw_ops="button-minimize-focused"/>
  160. </metacity_theme>
  161.  
Jun 30 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.