merge with master
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / panes.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20    group {
21       name: "elm/panes/vertical/default";
22       images {
23          image: "00_splite_handler_bg_v.png" COMP;
24          image: "00_splite_handler_bg_press.png" COMP;
25          image: "00_splite_handler_v.png" COMP;
26       }
27       parts
28       {
29          part
30          {
31             name: "whole";
32             type: RECT;
33             description
34             {
35                state: "default" 0.0;
36                visible: 0;
37                rel1.to_x: "pad_left";
38                rel2.to_x: "pad_right";
39             }
40          }
41          part {
42             name: "pad_left";
43             type: RECT;
44             scale: 1;
45             description {
46                state: "default" 0.0;
47                rel2.relative:0.0 1.0;
48                min: PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC 0;
49                fixed: 1 0;
50                align: 1.0 0.5;
51                visible: 0;
52             }
53             description {
54                state: "hidden" 0.0;
55                inherit: "default" 0.0;
56                min: 0 0;
57             }
58          }
59          part {
60             name: "pad_right";
61             type: RECT;
62             scale: 1;
63             description {
64                state: "default" 0.0;
65                rel1.relative: 1.0 0.0;
66                min: PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC 0;
67                fixed: 1 0;
68                align: 0.0 0.5;
69                visible: 0;
70             }
71             description {
72                state: "hidden" 0.0;
73                inherit: "default" 0.0;
74                min: 0 0;
75             }
76          }
77          //2 contents
78          part
79          {
80             name: "whole_left";
81             type: RECT;
82             mouse_events: 0;
83             description
84             {
85                state: "default" 0.0;
86                rel1 {
87                   to_x: "pad_left";
88                   relative: 1.0 0.0;
89                }
90                rel2 {
91                   to_x: "bar_bg";
92                   relative: 0.0 1.0;
93                }
94             }
95             description
96             {
97                state: "hide" 0.0;
98                inherit: "default" 0.0;
99                color: 255 255 255 0;
100             }
101          }
102          part
103          {
104             name: "elm.swallow.left";
105             type: SWALLOW;
106             clip_to: "whole_left";
107             description
108             {
109                state: "default" 0.0;
110                rel1.to: "whole_left";
111                rel2.to: "whole_left";
112             }
113             description
114             {
115                state: "hide" 0.0;
116                inherit: "default" 0.0;
117                rel1.relative: -1.0 0.0;
118                rel2.relative: 0.0 1.0;
119             }
120          }
121          part
122          {
123             name: "whole_right";
124             type: RECT;
125             mouse_events: 0;
126             description
127             {
128                state: "default" 0.0;
129                rel1 {
130                   to_x: "bar_bg";
131                   relative: 1.0 0.0;
132                }
133                rel2 {
134                   to_x: "pad_right";
135                   relative: 0.0 1.0;
136                }
137             }
138          }
139          part
140          {
141             name: "elm.swallow.right";
142             type: SWALLOW;
143             clip_to: "whole_right";
144             description
145             {
146                state: "default" 0.0;
147                rel1.to: "whole_right";
148                rel2.to: "whole_right";
149             }
150          }
151          //BAR
152          part { name: "elm.bar";
153             type: RECT;
154             dragable {
155                confine: "whole";
156                x: 1 1 1;
157                y: 0 0 0;
158             }
159             scale: 1;
160             description { state: "default" 0.0;
161                min: PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC 999999;
162                fixed: 0 1;
163                align: 1.0 0.5;
164                rel1.relative: 0.0 0.5;
165                rel2.relative: 1.0 0.5;
166                color: 0 0 0 0;
167             }
168             description { state: "default" 0.1;
169                inherit: "default" 0.0;
170                min: 0 999999;
171             }
172             description { state: "disabled" 0.0;
173                inherit:  "default" 0.0;
174                min: PANES_STYLE_DEFAULT_FIXED_SIZE_INC 999999;
175             }
176             description { state: "disabled" 0.1;
177                inherit:  "default" 0.1;
178             }
179          }
180          part { name: "pad_bar_left";
181             type: RECT;
182             scale: 1;
183             mouse_events: 0;
184             description { state: "default" 0.0;
185                min: PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC 0;
186                align: 0.0 0.5;
187                rel1.to_x: "elm.bar";
188                rel2 {
189                   relative: 0.0 1.0;
190                   to_x: "elm.bar";
191                }
192                fixed: 1 0;
193                visible: 0;
194             }
195             description {
196                state: "hidden" 0.0;
197                inherit: "default" 0.0;
198                min: 0 0;
199             }
200          }
201          part { name: "pad_bar_right";
202             type: RECT;
203             scale: 1;
204             mouse_events: 0;
205             description { state: "default" 0.0;
206                min: PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC 0;
207                align: 1.0 0.5;
208                rel1 {
209                   relative: 1.0 0.0;
210                   to_x: "elm.bar";
211                }
212                rel2.to_x: "elm.bar";
213                fixed: 1 0;
214                visible: 0;
215             }
216             description {
217                state: "hidden" 0.0;
218                inherit: "default" 0.0;
219                min: 0 0;
220             }
221          }
222          part { name: "bar_bg";
223             type: IMAGE;
224             mouse_events: 0;
225             description { state: "default" 0.0;
226                rel1 {
227                   relative: 1.0 0.0;
228                   to_x: "pad_bar_left";
229                }
230                rel2 {
231                   relative: 0.0 1.0;
232                   to_x: "pad_bar_right";
233                }
234                fixed: 1 0;
235                image.normal: "00_splite_handler_bg_v.png";
236             }
237             description { state: "clicked" 0.0;
238                inherit: "default" 0.0;
239                image.normal: "00_splite_handler_bg_press.png";
240             }
241          }
242          part { name:"bar_handler";
243             mouse_events: 0;
244             description { state:"default" 0.0;
245                rel1 {
246                   to_x: "bar_bg";
247                   relative: 0.0 0.5;
248                }
249                rel2 {
250                   to_x: "bar_bg";
251                   relative: 1.0 0.5;
252                }
253                fixed: 0 1;
254                min: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
255                image.normal: "00_splite_handler_v.png";
256             }
257             description { state:"clicked" 0.0;
258                inherit: "default" 0.0;
259             }
260             description { state: "disabled" 0.0;
261                inherit: "default" 0.0;
262                visible: 0;
263             }
264          }
265          part { name: "over2";
266             type: RECT;
267             mouse_events: 1;
268             repeat_events: 1;
269             ignore_flags: ON_HOLD;
270             description { state: "default" 0.0;
271                rel1.to: "elm.bar";
272                rel2.to: "elm.bar";
273                color: 0 0 0 0;
274             }
275             description { state: "disabled" 0.0;
276                inherit:  "default" 0.0;
277                visible: 0;
278             }
279          }
280          part { name: "over3";
281             type: RECT;
282             mouse_events: 1;
283             repeat_events: 1;
284             description { state: "default" 0.0;
285                rel1.to: "elm.bar";
286                rel2.to: "elm.bar";
287                color: 0 0 0 0;
288             }
289             description { state: "clicked" 0.0;
290                inherit:  "default" 0.0;
291             }
292          }
293          part { name:"bar_disabled";
294             type: RECT;
295             description { state:"default" 0.0;
296                rel1.to_x: "elm.bar";
297                rel2.to_x: "elm.bar";
298                color: 0 0 0 0;
299                visible: 0;
300             }
301             description { state: "disabled" 0.0;
302                inherit: "default" 0.0;
303                visible: 1;
304             }
305          }
306       }
307       script {
308          public state_pair = 1; //0:both contents are not set, 1:both contents are set
309          public frame_num, whole_drag;
310
311          public drag_effect(val) {
312             new Float:time, Float:cur_drag, Float:drag;
313             new num;
314
315             num = get_int(frame_num);
316             drag = get_float(whole_drag);
317
318             num += 1;
319             time = 0.06 * num; // decide speed
320             cur_drag = drag - drag * sin(time * 90, DEGREES);
321
322             set_int(frame_num, num);
323
324             if (time < 1.0 && cur_drag > 0.0) {
325                set_drag(PART:"elm.bar", cur_drag, 0.0);
326                timer(0.02, "drag_effect", val);
327             }
328             else {
329                set_drag(PART:"elm.bar", 0.0, 0.0);
330                run_program(PROGRAM:"left_content_reset");
331             }
332          }
333       }
334       programs {
335          program {
336             name: "drag_effect_start";
337             signal: "left,hide,effect";
338             source: "";
339             script {
340                new Float:x, Float:y;
341
342                get_drag(PART:"elm.bar", x, y);
343                set_float(whole_drag, x);
344                set_int(frame_num, 0);
345
346                timer(0.02, "drag_effect", 0);
347             }
348             after: "left_content_hide";
349          }
350          program {
351             name: "left_content_hide";
352             action: STATE_SET "hide" 0.0;
353             transition: DECELERATE 0.4;
354             target: "elm.swallow.left";
355             target: "whole_left";
356          }
357          program {
358             name: "left_content_reset";
359             action: STATE_SET "default" 0.0;
360             target: "elm.swallow.left";
361             target: "whole_left";
362             after: "effect_finished";
363          }
364          program {
365             name: "effect_finished";
366             action: SIGNAL_EMIT "left,hide,effect,finished" "";
367          }
368          program {
369             name:   "panes_pair";
370             signal: "elm,panes,pair";
371             source: "";
372             script {
373                new st[31];
374                new Float:vl;
375                set_int(state_pair, 1);
376                get_state(PART:"elm.bar", st, 30, vl);
377                set_state(PART:"elm.bar", st, 0.0);
378                set_state(PART:"pad_left", "default", 0.0);
379                set_state(PART:"pad_right", "default", 0.0);
380                set_state(PART:"pad_bar_left", "default", 0.0);
381                set_state(PART:"pad_bar_right", "default", 0.0);
382             }
383          }
384          program {
385             name:   "panes_unpair";
386             signal: "elm,panes,unpair";
387             source: "";
388             script {
389                new st[31];
390                new Float:vl;
391                set_int(state_pair, 0);
392                get_state(PART:"elm.bar", st, 30, vl);
393                set_state(PART:"elm.bar", st, 0.1);
394                set_state(PART:"pad_left", "hidden", 0.0);
395                set_state(PART:"pad_right", "hidden", 0.0);
396                set_state(PART:"pad_bar_left", "hidden", 0.0);
397                set_state(PART:"pad_bar_right", "hidden", 0.0);
398             }
399          }
400          program {
401             name:   "button_click";
402             signal: "mouse,down,1";
403             source: "over2";
404             action: SIGNAL_EMIT "elm,action,press" "";
405             after: "button_click_anim";
406          }
407          program {
408             name:   "button_click_anim";
409             script {
410                set_state(PART:"bar_bg", "clicked", 0.0);
411             }
412          }
413          program {
414             name:   "button_unclick";
415             signal: "mouse,up,1";
416             source: "over2";
417             action: SIGNAL_EMIT "elm,action,unpress" "";
418             after: "button_unclick_anim";
419          }
420          program {
421             name:   "button_unclick_anim";
422             script {
423                set_state(PART:"bar_bg", "default", 0.0);
424             }
425          }
426          program {
427             name:   "button_click2";
428             signal: "mouse,down,1";
429             source: "over3";
430             action: STATE_SET "clicked" 0.0;
431             target: "over3";
432          }
433          program {
434             name:   "button_unclick2";
435             signal: "mouse,up,1";
436             source: "over3";
437             action: STATE_SET "default" 0.0;
438             transition: DECELERATE 0.5;
439             target: "over3";
440          }
441          program {
442             name:   "button_unclick3";
443             signal: "mouse,up,1";
444             source: "over2";
445             action: SIGNAL_EMIT "elm,action,click" "";
446          }
447          program {
448             name:   "button_down_double";
449             signal: "mouse,down,1,double";
450             source: "over3";
451             action: SIGNAL_EMIT "elm,action,click,double" "";
452          }
453          //fix the pane
454          program {
455             name:   "panes_fixed";
456             signal: "elm.panes.fixed";
457             source: "elm";
458             action: STATE_SET "disabled" 0.0;
459             target: "bar_disabled";
460             target: "bar_handler";
461             after: "after_fixed";
462          }
463          program {
464             name:   "after_fixed";
465             script {
466                if (get_int(state_pair))
467                  set_state(PART:"elm.bar", "disabled", 0.0);
468                else
469                  set_state(PART:"elm.bar", "disabled", 0.1);
470             }
471          }
472          //allow the movement by interaction
473          program {
474             name:   "panes_unfixed";
475             signal: "elm.panes.unfixed";
476             source: "elm";
477             action: STATE_SET "default" 0.0;
478             target: "bar_disabled";
479             target: "bar_handler";
480             after: "after_unfixed";
481          }
482          program {
483             name:   "after_unfixed";
484             script {
485                if (get_int(state_pair))
486                  set_state(PART:"elm.bar", "default", 0.0);
487                else
488                  set_state(PART:"elm.bar", "default", 0.1);
489             }
490          }
491       }
492    }
493
494    group {
495       name: "elm/panes/horizontal/default";
496       images {
497          image: "00_splite_handler_bg_h.png" COMP;
498          image: "00_splite_handler_bg_press.png" COMP;
499          image: "00_splite_handler_h.png" COMP;
500       }
501       script {
502          public state_pair = 1; //0:both contents are not set, 1:both contents are set
503       }
504       parts
505       {
506          part
507          {
508             name: "whole";
509             type: RECT;
510             description
511             {
512                state: "default" 0.0;
513                visible: 0;
514                rel1.to_y: "pad_left";
515                rel2.to_y: "pad_right";
516             }
517          }
518          part {
519             name: "pad_left";
520             type: RECT;
521             scale: 1;
522             description {
523                state: "default" 0.0;
524                rel2.relative:1.0 0.0;
525                min: 0 PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC;
526                fixed: 0 1;
527                align: 0.5 1.0;
528                visible: 0;
529             }
530             description {
531                state: "hidden" 0.0;
532                inherit: "default" 0.0;
533                min: 0 0;
534             }
535          }
536          part {
537             name: "pad_right";
538             type: RECT;
539             scale: 1;
540             description {
541                state: "default" 0.0;
542                rel1.relative: 0.0 1.0;
543                min: 0 PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC;
544                fixed: 0 1;
545                align: 0.5 0.0;
546                visible: 0;
547             }
548             description {
549                state: "hidden" 0.0;
550                inherit: "default" 0.0;
551                min: 0 0;
552             }
553          }
554          //2 contents
555          part
556          {
557             name: "whole_left";
558             type: RECT;
559             mouse_events: 0;
560             description
561             {
562                state: "default" 0.0;
563                rel1 {
564                   to_y: "pad_left";
565                   relative: 0.0 1.0;
566                }
567                rel2 {
568                   to_y: "bar_bg";
569                   relative: 1.0 0.0;
570                }
571             }
572          }
573          part
574          {
575             name: "elm.swallow.left";
576             type: SWALLOW;
577             clip_to: "whole_left";
578             description
579             {
580                state: "default" 0.0;
581                rel1.to: "whole_left";
582                rel2.to: "whole_left";
583             }
584          }
585          part
586          {
587             name: "whole_right";
588             type: RECT;
589             mouse_events: 0;
590             description
591             {
592                state: "default" 0.0;
593                rel1 {
594                   to_y: "bar_bg";
595                   relative: 0.0 1.0;
596                }
597                rel2 {
598                   to_y: "pad_right";
599                   relative: 1.0 0.0;
600                }
601             }
602          }
603          part
604          {
605             name: "elm.swallow.right";
606             type: SWALLOW;
607             clip_to: "whole_right";
608             description
609             {
610                state: "default" 0.0;
611                rel1.to: "whole_right";
612                rel2.to: "whole_right";
613             }
614          }
615          //BAR
616          part { name: "elm.bar";
617             type: RECT;
618             dragable {
619                confine: "whole";
620                x: 0 0 0;
621                y: 1 1 1;
622             }
623             scale: 1;
624             description { state: "default" 0.0;
625                min: 999999 PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC;
626                fixed: 1 0;
627                align: 0.5 0.0;
628                rel1.relative: 0.5 0.0;
629                rel2.relative: 0.5 1.0;
630                color: 0 0 0 0;
631             }
632             description { state: "default" 0.1;
633                inherit: "default" 0.0;
634                min: 999999 0;
635             }
636             description { state: "disabled" 0.0;
637                inherit:  "default" 0.0;
638                min: 999999 PANES_STYLE_DEFAULT_FIXED_SIZE_INC;
639                visible: 0;
640             }
641             description { state: "disabled" 0.1;
642                inherit:  "default" 0.1;
643             }
644          }
645          part { name: "pad_bar_left";
646             type: RECT;
647             scale: 1;
648             mouse_events: 0;
649             description { state: "default" 0.0;
650                min: 0 PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC;
651                align: 0.5 0.0;
652                rel1.to_y: "elm.bar";
653                rel2 {
654                   relative: 1.0 0.0;
655                   to_y: "elm.bar";
656                }
657                fixed: 0 1;
658                visible: 0;
659             }
660             description {
661                state: "hidden" 0.0;
662                inherit: "default" 0.0;
663                min: 0 0;
664             }
665          }
666          part { name: "pad_bar_right";
667             type: RECT;
668             scale: 1;
669             mouse_events: 0;
670             description { state: "default" 0.0;
671                min: 0 PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC;
672                align: 0.5 1.0;
673                rel1 {
674                   relative: 0.0 1.0;
675                   to_y: "elm.bar";
676                }
677                rel2.to_y: "elm.bar";
678                fixed: 0 1;
679                visible: 0;
680             }
681             description {
682                state: "visible" 0.0;
683                inherit: "default" 0.0;
684                min: 0 0;
685             }
686          }
687          part { name: "bar_bg";
688             type: IMAGE;
689             mouse_events: 0;
690             description { state: "default" 0.0;
691                rel1 {
692                   relative: 0.0 1.0;
693                   to_y: "pad_bar_left";
694                }
695                rel2 {
696                   relative: 1.0 0.0;
697                   to_y: "pad_bar_right";
698                }
699                fixed: 0 1;
700                image.normal: "00_splite_handler_bg_h.png";
701             }
702             description { state: "clicked" 0.0;
703                inherit: "default" 0.0;
704                image.normal: "00_splite_handler_bg_press.png";
705             }
706          }
707          part { name:"bar_handler";
708             mouse_events: 0;
709             description { state:"default" 0.0;
710                rel1 {
711                   to_y: "bar_bg";
712                   relative: 0.5 0.0;
713                }
714                rel2 {
715                   to_y: "bar_bg";
716                   relative: 0.5 1.0;
717                }
718                fixed: 1 0;
719                min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
720                image.normal: "00_splite_handler_h.png";
721             }
722             description { state:"clicked" 0.0;
723                inherit: "default" 0.0;
724             }
725             description { state: "disabled" 0.0;
726                inherit: "default" 0.0;
727                visible: 0;
728             }
729          }
730          part { name: "over2";
731             type: RECT;
732             mouse_events: 1;
733             repeat_events: 1;
734             ignore_flags: ON_HOLD;
735             description { state: "default" 0.0;
736                rel1.to: "elm.bar";
737                rel2.to: "elm.bar";
738                color: 0 0 0 0;
739             }
740             description { state: "disabled" 0.0;
741                inherit:  "default" 0.0;
742                visible: 0;
743             }
744          }
745          part { name: "over3";
746             type: RECT;
747             mouse_events: 1;
748             repeat_events: 1;
749             description { state: "default" 0.0;
750                rel1.to: "elm.bar";
751                rel2.to: "elm.bar";
752                color: 0 0 0 0;
753             }
754             description { state: "clicked" 0.0;
755                inherit:  "default" 0.0;
756             }
757          }
758          part { name:"bar_disabled";
759             type: RECT;
760             description { state:"default" 0.0;
761                rel1.to_y: "elm.bar";
762                rel2.to_y: "elm.bar";
763                color: 0 0 0 0;
764                visible: 0;
765             }
766             description { state: "disabled" 0.0;
767                inherit: "default" 0.0;
768                visible: 1;
769             }
770          }
771       }
772       programs {
773          program {
774             name:   "panes_pair";
775             signal: "elm,panes,pair";
776             source: "";
777             script {
778                new st[31];
779                new Float:vl;
780                set_int(state_pair, 1);
781                get_state(PART:"elm.bar", st, 30, vl);
782                set_state(PART:"elm.bar", st, 0.0);
783                set_state(PART:"pad_left", "default", 0.0);
784                set_state(PART:"pad_right", "default", 0.0);
785                set_state(PART:"pad_bar_left", "default", 0.0);
786                set_state(PART:"pad_bar_right", "default", 0.0);
787             }
788          }
789          program {
790             name:   "panes_unpair";
791             signal: "elm,panes,unpair";
792             source: "";
793             script {
794                new st[31];
795                new Float:vl;
796                set_int(state_pair, 0);
797                get_state(PART:"elm.bar", st, 30, vl);
798                set_state(PART:"elm.bar", st, 0.1);
799                set_state(PART:"pad_left", "hidden", 0.0);
800                set_state(PART:"pad_right", "hidden", 0.0);
801                set_state(PART:"pad_bar_left", "hidden", 0.0);
802                set_state(PART:"pad_bar_right", "hidden", 0.0);
803             }
804          }
805          program {
806             name:   "button_click";
807             signal: "mouse,down,1";
808             source: "over2";
809             action: SIGNAL_EMIT "elm,action,press" "";
810             after: "button_click_anim";
811          }
812          program {
813             name:   "button_click_anim";
814             script {
815                set_state(PART:"bar_bg", "clicked", 0.0);
816             }
817          }
818          program {
819             name:   "button_unclick";
820             signal: "mouse,up,1";
821             source: "over2";
822             action: SIGNAL_EMIT "elm,action,unpress" "";
823             after: "button_unclick_anim";
824          }
825          program {
826             name:   "button_unclick_anim";
827             script {
828                set_state(PART:"bar_bg", "default", 0.0);
829             }
830          }
831          program {
832             name:   "button_click2";
833             signal: "mouse,down,1";
834             source: "over3";
835             action: STATE_SET "clicked" 0.0;
836             target: "over3";
837          }
838          program {
839             name:   "button_unclick2";
840             signal: "mouse,up,1";
841             source: "over3";
842             action: STATE_SET "default" 0.0;
843             transition: DECELERATE 0.5;
844             target: "over3";
845          }
846          program {
847             name:   "button_unclick3";
848             signal: "mouse,up,1";
849             source: "over2";
850             action: SIGNAL_EMIT "elm,action,click" "";
851          }
852          program {
853             name:   "button_down_double";
854             signal: "mouse,down,1,double";
855             source: "over3";
856             action: SIGNAL_EMIT "elm,action,click,double" "";
857          }
858          //fix the pane
859          program {
860             name:   "panes_fixed";
861             signal: "elm.panes.fixed";
862             source: "elm";
863             action: STATE_SET "disabled" 0.0;
864             target: "bar_disabled";
865             target: "bar_handler";
866             after: "after_fixed";
867          }
868          program {
869             name:   "after_fixed";
870             script {
871                if (get_int(state_pair))
872                  set_state(PART:"elm.bar", "disabled", 0.0);
873                else
874                  set_state(PART:"elm.bar", "disabled", 0.1);
875             }
876          }
877          //allow the movement by interaction
878          program {
879             name:   "panes_unfixed";
880             signal: "elm.panes.unfixed";
881             source: "elm";
882             action: STATE_SET "default" 0.0;
883             target: "bar_disabled";
884             target: "bar_handler";
885             after: "after_unfixed";
886          }
887          program {
888             name:   "after_unfixed";
889             script {
890                if (get_int(state_pair))
891                  set_state(PART:"elm.bar", "default", 0.0);
892                else
893                  set_state(PART:"elm.bar", "default", 0.1);
894             }
895          }
896       }
897    }