summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-01-14 03:55:41 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-01-14 03:55:41 +0000
commit3313f28a9a9ca0babace7bb5ada62e46e634cb20 (patch)
treecd42030ce71a56d924128c79aa79eaebe0ea2523
parentde5a943b88edd530d7cf98a6341f8eebad2f91c4 (diff)
efenniht frame collapsing is GO
SVN revision: 67204
-rw-r--r--elm/frame.edc35
1 files changed, 18 insertions, 17 deletions
diff --git a/elm/frame.edc b/elm/frame.edc
index 3563a21..a055a4d 100644
--- a/elm/frame.edc
+++ b/elm/frame.edc
@@ -10,11 +10,6 @@ collections {
10 rel1.offset: 2 1; 10 rel1.offset: 2 1;
11 rel2.offset: -3 -2; 11 rel2.offset: -3 -2;
12 } 12 }
13 description { state: "collapsed" 0.0;
14 inherit: "default" 0.0;
15 rel2.to_y: "elm.text";
16 rel2.offset: -3 0;
17 }
18 } 13 }
19 BG_BOX("base", 0) 14 BG_BOX("base", 0)
20 part { 15 part {
@@ -22,23 +17,29 @@ collections {
22 type: RECT; 17 type: RECT;
23 description { 18 description {
24 state: "default" 0.0; 19 state: "default" 0.0;
25 min: 1 1; 20 rel1 {
26 rel1.to: "base"; 21 to_y: "elm.text";
27 rel2.to: "base"; 22 relative: 0.0 1.0;
23 offset: 8 2;
24 }
25 rel2.offset: -9 -9;
28 } 26 }
29 } 27 }
30 part { name: "elm.swallow.content"; 28 part { name: "elm.swallow.content";
31 type: SWALLOW; 29 type: SWALLOW;
32 clip_to: "clip"; 30 clip_to: "clip";
33 description { state: "default" 0.0; 31 description { state: "default" 0.0;
32 align: 0.0 1.0;
34 rel1 { 33 rel1 {
35 to_x: "base";
36 to_y: "elm.text"; 34 to_y: "elm.text";
37 relative: 0.0 1.0; 35 relative: 0.0 1.0;
38 offset: 4 4; 36 offset: 8 2;
39 } 37 }
40 rel2.to: "base"; 38 rel2.offset: -9 -9;
41 rel2.offset: -5 -5; 39 }
40 description { state: "collapsed" 0.0;
41 inherit: "default" 0.0;
42 minmul: 1.0 0.0;
42 } 43 }
43 } 44 }
44 part { name: "elm.text"; 45 part { name: "elm.text";
@@ -73,8 +74,8 @@ collections {
73 mouse_events: 1; 74 mouse_events: 1;
74 repeat_events: 1; 75 repeat_events: 1;
75 description { state: "default" 0.0; 76 description { state: "default" 0.0;
76 rel1.to: "elm.text"; 77 rel1.to_y: "elm.text";
77 rel2.to: "elm.text"; 78 rel2.to_y: "elm.text";
78 color: 0 0 0 0; 79 color: 0 0 0 0;
79 } 80 }
80 } 81 }
@@ -91,7 +92,7 @@ collections {
91 script { 92 script {
92 new st[31]; 93 new st[31];
93 new Float:vl; 94 new Float:vl;
94 get_state(PART:"base", st, 30, vl); 95 get_state(PART:"elm.swallow.content", st, 30, vl);
95 if (!strcmp(st, "default")) 96 if (!strcmp(st, "default"))
96 run_program(PROGRAM:"collapse"); 97 run_program(PROGRAM:"collapse");
97 else 98 else
@@ -100,13 +101,13 @@ collections {
100 } 101 }
101 program { name: "collapse"; 102 program { name: "collapse";
102 action: STATE_SET "collapsed" 0.0; 103 action: STATE_SET "collapsed" 0.0;
103 target: "base"; 104 target: "elm.swallow.content";
104 transition: LINEAR 0.1; 105 transition: LINEAR 0.1;
105 after: "signal"; 106 after: "signal";
106 } 107 }
107 program { name: "expand"; 108 program { name: "expand";
108 action: STATE_SET "default" 0.0; 109 action: STATE_SET "default" 0.0;
109 target: "base"; 110 target: "elm.swallow.content";
110 transition: LINEAR 0.1; 111 transition: LINEAR 0.1;
111 after: "signal"; 112 after: "signal";
112 } 113 }