Hello,

I've a problem with a edje signal. At the start I see the default state as 
expected.
Then I send "signal=selected, source=folder" and the state changes correct. But 
if
I send "signal=default, source=folder" only the "folder" changes, but not the
"folder.background". It seems it doesn't change, because the description is 
empty.
If I insert an empty image in the "default" state it looks good. So is my code 
wrong
or is this a bug in edje?

Her is my edje group:

group
{
  name: "medialist.folder";
  min: 1 1; // it seems 1 1 is needed to display correct      

  parts
  {
    part
    {
      name: "folder.background";
      type: IMAGE;
      mouse_events: 0;

      description
      {
        state: "default" 0.0;
      }

      description
      {
        state: "selected" 0.0;

        rel1
        {
          relative: 0 0;
          offset: 0 0;
        }

        image
        {
          normal: "medialist_selected.png";
          border: 4 4 4 4;
        }
      }
    }
  
    part
    {
      name: "folder";
      type: IMAGE;
      mouse_events: 0;

      description
      {
        state: "default" 0.0;
        aspect: 1 0.804878049;
        aspect_preference: BOTH;
        align: 0 0.5;

        rel1
        {
          relative: 0 0;
          offset: 0 4;
        }

        image
        {
          normal: "folder.png";
        }
      }

      description
      {
        state: "selected" 0.0;
        aspect: 1 0.804878049;
        aspect_preference: BOTH;
        align: 0 0.5;

        rel1
        {
          relative: 0 0;
          offset: 0 4;
        }

        image
        {
          normal: "folder_selected.png";
        }
      }
    }

    part
    {
      name: "text";
      type: TEXT;
      mouse_events: 0;

      description
      {
        state: "default" 0.0;
        color: 0 255 0 255;

        text
        {
          font:  "FreeSans";
          text: "Test";
          size: 32;
          fit: 0 1;
          min: 0 0;
          align: 0.0 0.5;
        }
        
        rel1 
        {
          relative: 1 0;
          offset: 5 4;
          to: "folder";
        }
      }
    }
    
  } /* Close Parts */

  programs
  {
    // state default
    program 
    {
        name: "folder.default";
        signal: "default";
        source: "folder";
        action: STATE_SET "default" 0.0;
        target: "folder";
    }
    
    program 
    {
        name: "folder.bg.default";
        signal: "default";
        source: "folder";
        action: STATE_SET "default" 0.0;
        target: "folder.background";
    }

    // state selected
    program 
    {
        name: "folder.selected";
        signal: "selected";
        source: "folder";
        action: STATE_SET "selected" 0.0;
        target: "folder";
    }
    
    program 
    {
        name: "folder.bg.selected";
        signal: "selected";
        source: "folder";
        action: STATE_SET "selected" 0.0;
        target: "folder.background";
    }

  } /* Close Prog */
} /* Close Group */

regards
Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to