Hey all,
Having a slight issue with this. The edc works fine and compiles and
works just great if I swap the e-module-efm_nav.edc for this when
compiling efm_nav, but when it comes to using it in my theme, it fails
with "edje_cc: Error. toolbar_nav.edc:148 unhandled keyword
collections"
And yes, 148 is the start of the collections section.

If you cant tell, its just a plain copy of the default theme included
in the module. Ive tested it without the define BTN and copied it all
out just like a define would do, but still get the same error.

Im sure its something very simple but Ive been staring at this for
over an hour and just given up.

Thanks in advance,
Toma-




----------------------------------------------------------------------------------------

#define BTN(NAME) \
   group \
     { \
        name: "modules/efm_nav/"NAME; \
        parts \
          { \
             part \
               { \
                  name: "bg"; \
                  mouse_events: 1; \
                  repeat_events: 1; \
                  type: IMAGE; \
                  description \
                    { \
                       state: "default" 0.0; \
                       max: 24 24; \
                       aspect: 1.0 1.0; \
                       aspect_preference: VERTICAL; \
                       image \
                         { \
                            normal: "e17_toolbar_nav_btn.png"; \
                            border: 3 3 3 3; \
                         } \
                    } \
                  description \
                    { \
                       state: "down" 0.0; \
                       inherit: "default" 0.0; \
                       image.normal: "e17_toolbar_nav_btn_down.png"; \
                    } \
                  description \
                    { \
                       state: "disabled" 0.0; \
                       inherit: "default" 0.0; \
                       visible: 0; \
                    } \
               } \
             part \
               { \
                  name: "bg2"; \
                  type: IMAGE; \
                  mouse_events: 1; \
                  repeat_events: 1; \
                  description \
                    { \
                       state: "default" 0.0; \
                       visible: 0; \
                       rel1.to: "bg"; \
                       rel2.to: "bg"; \
                       image \
                         { \
                            normal: "e17_toolbar_nav_btn_disabled.png"; \
                            border: 3 3 3 3; \
                         } \
                    } \
                  description \
                    { \
                       state: "disabled" 0.0; \
                       inherit: "default" 0.0; \
                       visible: 1; \
                    } \
               } \
             part \
               { \
                  name: "img"; \
                  mouse_events: 0; \
                  type: IMAGE; \
                  description \
                    { \
                       state: "default" 0.0; \
                       max: 16 16; \
                       rel1 \
                         { \
                            offset: 4 4; \
                            to: "bg"; \
                         } \
                       rel2 \
                         { \
                            offset: -5 -5; \
                            to: "bg"; \
                         } \
                       image.normal: "e17_toolbar_nav_"NAME".png"; \
                    } \
               } \
          } \
        programs \
          { \
             program \
               { \
                  name: "click"; \
                  signal: "mouse,down,1"; \
                  source: "bg"; \
                  action: STATE_SET "down" 0.0; \
                  target: "bg"; \
               } \
             program \
               { \
                  name: "unclick"; \
                  signal: "mouse,up,1"; \
                  source: "bg"; \
                  action: STATE_SET "default" 0.0; \
                  target: "bg"; \
               } \
             program \
               { \
                  name: "send"; \
                  signal: "mouse,clicked,1"; \
                  source: "bg"; \
                  action: SIGNAL_EMIT "e,action,click" ""; \
               } \
             program \
               { \
                  name: "disable"; \
                  signal: "e,state,disabled"; \
                  source: "e"; \
                  action: STATE_SET "disabled" 0.0; \
                  target: "bg"; \
                  target: "bg2"; \
               } \
             program \
               { \
                  name: "enable"; \
                  signal: "e,state,enabled"; \
                  source: "e"; \
                  action: STATE_SET "default" 0.0; \
                  target: "bg"; \
                  target: "bg2"; \
               } \
          } \
     }

fonts
{
   font: "Vera.ttf" "Vera";
}

images
{
   image: "e17_toolbar_nav_home.png" COMP;
   image: "e17_toolbar_nav_btn.png" COMP;
   image: "e17_toolbar_nav_btn_down.png" COMP;
   image: "e17_toolbar_nav_btn_disabled.png" COMP;
   image: "e17_toolbar_nav_back.png" COMP;
   image: "e17_toolbar_nav_forward.png" COMP;
   image: "e17_toolbar_nav_up.png" COMP;
}

collections
{
   group
     {
        name: "icon";
        max: 48 48;
        parts
          {
             part
               {
                  name: "image";
                  mouse_events: 0;
                  type: IMAGE;
                  description
                    {
                       state: "default" 0.0;
                       image.normal: "e17_toolbar_nav_home.png";
                    }
               }
          }
     }
   group
     {
        name: "modules/efm_nav/main";
        parts
          {
             part
               {
                  name: "base";
                  type: RECT;
                  description
                    {
                       state: "default" 0.0;
                       color: 0 0 0 0;
                    }
               }
             part
               {
                  name: "e.swallow.buttons";
                  type: SWALLOW;
                  description
                    {
                       state: "default" 0.0;
                       align: 0.5 0.5;
                    }
               }
          }
     }
   BTN("back")
   BTN("forward")
   BTN("up")
}

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to