changeset 246:4df1b766bbf5

Fixed the Makefile.am to generate scene.so automatically. iModify scene.svg to restore the scene
author wycc
date Thu, 01 Jan 2009 08:01:00 +0800
parents 81458bb0bf34
children d9a78c859660
files examples/dynamic/Makefile.am examples/dynamic/scene.svg
diffstat 2 files changed, 41 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/examples/dynamic/Makefile.am	Wed Dec 31 23:57:12 2008 +0800
+++ b/examples/dynamic/Makefile.am	Thu Jan 01 08:01:00 2009 +0800
@@ -1,10 +1,10 @@
 include $(top_srcdir)/config.mk
 
-noinst_PROGRAMS = dynamic button.so
+noinst_PROGRAMS = dynamic button.so scene.so
 EXTRA_DIST = menu.svg button.svg
 
 dynamic_SOURCES = main.c
-nodist_dynamic_SOURCES = menu.c menu.h menu.mb button.c button.h button.mb
+nodist_dynamic_SOURCES = menu.c menu.h menu.mb
 CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES)
 dynamic_LDFLAGS = @cairo_LIBS@ 
 dynamic_LDADD = $(top_builddir)/src/libmbfly.la
--- a/examples/dynamic/scene.svg	Wed Dec 31 23:57:12 2008 +0800
+++ b/examples/dynamic/scene.svg	Thu Jan 01 08:01:00 2009 +0800
@@ -36,12 +36,12 @@
   <defs
      id="defs2385">
     <inkscape:perspective
-       id="perspective2391"
-       inkscape:persp3d-origin="320 : 160 : 1"
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 240 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
        inkscape:vp_z="640 : 240 : 1"
-       inkscape:vp_y="0 : 1000 : 0"
-       inkscape:vp_x="0 : 240 : 1"
-       sodipodi:type="inkscape:persp3d" />
+       inkscape:persp3d-origin="320 : 160 : 1"
+       id="perspective2391" />
   </defs>
   <metadata
      id="metadata2388">
@@ -54,45 +54,52 @@
       </cc:Work>
     </rdf:RDF>
     <ns0:scenes
-       current="1">
+       current="3">
       <ns0:scene
          start="1"
          ref="s7737" />
       <ns0:scene
          start="2"
          ref="s4405" />
+      <ns0:scene
+         start="3"
+         ref="s4702" />
     </ns0:scenes>
   </metadata>
   <g
-     inkscape:groupmode="layer"
+     id="layer1"
      inkscape:label="Layer 1"
-     id="layer1">
-    <text
-       xml:space="preserve"
-       style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
-       x="188.4539"
-       y="189.57446"
-       id="text2554"><tspan
-         sodipodi:role="line"
-         id="tspan2556"
+     inkscape:groupmode="layer">
+    <g
+       id="s7737"
+       style="display:none">
+      <text
+         id="text2554"
+         y="189.57446"
          x="188.4539"
-         y="189.57446">This is scene 1</tspan></text>
+         style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+         xml:space="preserve"><tspan
+           y="189.57446"
+           x="188.4539"
+           id="tspan2556"
+           sodipodi:role="line">This is scene 1</tspan></text>
+    </g>
+    <g
+       id="s4405"
+       style="display:none">
+      <text
+         xml:space="preserve"
+         style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+         x="196.19858"
+         y="199.90071"
+         id="text2576"><tspan
+           sodipodi:role="line"
+           id="tspan2578"
+           x="196.19858"
+           y="199.90071">This is scene 2</tspan></text>
+    </g>
     <g
        style=""
-       id="s7737" />
-    <g
-       style="display:none"
-       id="s4405">
-      <text
-         id="text2576"
-         y="199.90071"
-         x="196.19858"
-         style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
-         xml:space="preserve"><tspan
-           y="199.90071"
-           x="196.19858"
-           id="tspan2578"
-           sodipodi:role="line">This is scene 2</tspan></text>
-    </g>
+       id="s4702" />
   </g>
 </svg>