Modifying shapes (Windows)



I'm running dia v 0.94. I'm attempting to modify some of the network shapes to include a textbox line (as suggested at http://mail.gnome.org/archives/dia-list/2002-November/msg00028.html). For example, I've modified the pc_minitower.shape (see below). Whenever I uncomment the textbox line, dia crashes at startup with an application error. The command prompt window says:
 
** (dia.exe:5120): WARNING **: No attribute text (00000000) or no data(00000000) in this attribute
 
(dia.exe:5120): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): assertion `G_IS_OBJECT (object)' failed
 
I've tried modifying the x and y coordinates of the textbox several different ways, but each time, I get the same results.
 
pc_minitower.shape file:
 
<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
       xmlns:svg="http://www.w3.org/2000/svg">
  <name>Network2 - A Minitower PC</name>
  <icon>pc_minitower.png</icon>
  <connections>
   <point x="0" y="0"/>
   <point x="0" y="15"/>
   <point x="10" y="1"/>
   <point x="10" y="15"/>
   <point x="0" y="7.5"/>
   <point x="10" y="7.5"/>
   <point x="5" y="0"/>
   <point x="5" y="15"/>
  </connections>
  <aspectratio type="fixed"/>
  <!--  <textbox x1="0" y1="2.3" x2="5" y2="5.3" align="center" resize="no"/> -->
  <svg:svg width="11cm" height="16cm" viewBox="-1 -1 11 16">
   <svg:rect style="fill: #d9d9cd" x="0" y="0" width="10" height="15"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="0" y="0" width="10" height="15"/>
   <svg:rect style="fill: #d9d9cd" x="0.5" y="0.5" width="8" height="6"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="0.5" y="0.5" width="8" height="6"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="0.5" y1="2.5" x2="8.5" y2="2.5"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="8.5" y1="4.5" x2="0.5" y2="4.5"/>
   <svg:rect style="fill: #d9d9cd" x="1.5" y="7" width="5.5" height="3"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="1.5" y="7" width="5.5" height="3"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="0" y1="11.5" x2="10" y2="11.5"/>
   <svg:rect style="fill: #00cd00" x="7" y="10.5" width="0.5" height="0.5"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="7" y="10.5" width="0.5" height="0.5"/>
   <svg:rect style="fill: #cdcd00" x="8" y="10.5" width="0.5" height="0.5"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="8" y="10.5" width="0.5" height="0.5"/>
   <svg:rect style="fill: #cd0000" x="9" y="10.5" width="0.5" height="0.5"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="9" y="10.5" width="0.5" height="0.5"/>
   <svg:rect style="fill: #cdcdbd" x="8.5" y="9" width="1" height="1"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="8.5" y="9" width="1" height="1"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="1.5" y1="8.5" x2="7" y2="8.5"/>
   <svg:rect style="fill: #cdcdbd" x="8" y="7" width="1.5" height="1.5"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="8" y="7" width="1.5" height="1.5"/>
   <svg:rect style="fill: #cdcdc1" x="1" y="5" width="7" height="0.5"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="1" y="5" width="7" height="0.5"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="2" y1="7.5" x2="6.5" y2="7.5"/>
   <svg:rect style="fill: #cdcdc1" x="3" y="7.5" width="2.5" height="0.5"/>
   <svg:rect style="stroke-width: 0.1; stroke: #000000" x="3" y="7.5" width="2.5" height="0.5"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="7" y1="6" x2="8" y2="6"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="0.5" y1="12" x2="9.5" y2="12"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="9.5" y1="12.5" x2="0.5" y2="12.5"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="0.5" y1="13" x2="9.5" y2="13"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="9.5" y1="14.5" x2="0.5" y2="14.5"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="0.5" y1="14" x2="9.5" y2="14"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="9.5" y1="13.5" x2="0.5" y2="13.5"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="1" y1="6" x2="1.5" y2="6"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="2" y1="6" x2="2.5" y2="6"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="2" y1="8" x2="2.5" y2="8"/>
   <svg:line style="stroke-width: 0.1; stroke: #000000" x1="6" y1="8" x2="6.5" y2="8"/>
  </svg:svg>
</shape>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]