use minmuml for frame hide/show.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 14 Jan 2012 02:29:29 +0000 (02:29 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 14 Jan 2012 02:29:29 +0000 (02:29 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67198 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

data/themes/widgets/frame.edc
src/lib/elm_frame.c

index 946ecf8..f02efe7 100644 (file)
@@ -32,11 +32,6 @@ group { name: "elm/frame/base/default";
             }
             fill.smooth : 0;
          }
-         description { state: "collapsed" 0.0;
-            inherit: "default" 0.0;
-            rel2.to_y: "elm.text";
-            rel2.offset: 9 0;
-         }
       }
       part { name: "elm.text";
          type: TEXT;
@@ -97,15 +92,15 @@ group { name: "elm/frame/base/default";
          description { state: "default" 0.0;
             align: 0.0 1.0;
             rel1 {
-               to: "clip";
-               relative: 0.0 0.0;
+               to_y: "elm.text";
+               relative: 0.0 1.0;
+               offset: 8 2;
             }
-            rel2.to: "clip";
+            rel2.offset: -9 -9;
          }
          description { state: "collapsed" 0.0;
             inherit: "default" 0.0;
-//            rel1.relative: 0.0 1.0;
-            rel1.offset: 0 -100;
+            minmul: 1.0 0.0;
          }
       }
       part { name: "event";
@@ -120,6 +115,18 @@ group { name: "elm/frame/base/default";
       }
    }
    programs {
+      program { name: "collapse";
+         action:  STATE_SET "collapsed" 0.0;
+         target: "elm.swallow.content";
+         transition: BOUNCE 0.5 1.0 3;
+         after: "signal";
+      }
+      program { name: "expand";
+         action:  STATE_SET "default" 0.0;
+         target: "elm.swallow.content";
+         transition: BOUNCE 0.5 1.0 3;
+         after: "signal";
+      }
       program { name: "click";
          signal:  "mouse,up,1";
          source:  "event";
@@ -131,25 +138,13 @@ group { name: "elm/frame/base/default";
          script {
             new st[31];
             new Float:vl;
-            get_state(PART:"over", st, 30, vl);
+            get_state(PART:"elm.swallow.content", st, 30, vl);
             if (!strcmp(st, "default"))
               run_program(PROGRAM:"collapse");
             else
               run_program(PROGRAM:"expand");
          }
       }
-      program { name: "collapse";
-         action:  STATE_SET "collapsed" 0.0;
-         target: "elm.swallow.content";
-         transition: LINEAR 1.0;
-         after: "signal";
-      }
-      program { name: "expand";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.swallow.content";
-         transition: LINEAR 1.0;
-         after: "signal";
-      }
       program { name: "signal";
          action: SIGNAL_EMIT "elm,anim,done" "elm";
       }
index fafd25b..ae99aa9 100644 (file)
@@ -86,7 +86,6 @@ _sizing_eval(Evas_Object *obj)
    edje_object_size_min_calc(wd->frm, &minw, &minh);
    evas_object_size_hint_min_get(obj, &cminw, &cminh);
    if ((minw == cminw) && (minh == cminh)) return;
-   //printf("min: %3.3f %ix%i\n", ecore_loop_time_get(), minw, minh);
    evas_object_size_hint_min_set(obj, minw, minh);
    evas_object_size_hint_max_set(obj, -1, -1);
 }