Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : uptime

Dir     : e_modules/uptime


Modified Files:
        uptime.edc e_mod_main.c 


Log Message:
Clip the text to not allow displaying outside the gadget. Allow better gadget 
resizing now.
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/uptime/uptime.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- uptime.edc  20 Feb 2006 17:21:15 -0000      1.1
+++ uptime.edc  21 Feb 2006 13:25:57 -0000      1.2
@@ -14,25 +14,20 @@
     {
        name, "modules/uptime/main";
        parts {
-       part {
-            name:          "base";
-            type: RECT;
-            mouse_events:  0;
-            description {
-                        state:    "default" 0.0;
-                        color: 255 255 255 0;
-                        rel1 { 
-                             offset: 0 0; 
-                        }
-                        rel2 { 
-                             offset: -1 -1; 
-                        }
-            }
+      part {
+          name: "base";
+          type: RECT;
+          mouse_events: 0;
+          description {
+                      state: "default" 0.0;
+                      color: 255 255 255 255;
+          }
+      }
             
-            }
                part {
                        name,           "uptime";
                        type,           TEXT;
+           clip_to: "base";                                    
                        effect,         SOFT_SHADOW;
                        mouse_events, 0;
            description {
@@ -50,7 +45,7 @@
              text {
                   text: "uptime"; 
                   font: "VeraMono";
-                  size:  10;     
+                  size:  8;     
                   min:     1 1;
                   align: 0.5 0.5;
              }
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/uptime/e_mod_main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_main.c        20 Feb 2006 18:29:40 -0000      1.3
+++ e_mod_main.c        21 Feb 2006 13:25:57 -0000      1.4
@@ -243,10 +243,12 @@
    e_gadman_client_policy_set(cf->gmc,
                              E_GADMAN_POLICY_ANYWHERE |
                              E_GADMAN_POLICY_HMOVE |
+                             E_GADMAN_POLICY_HSIZE |
+                             E_GADMAN_POLICY_VSIZE |
                              E_GADMAN_POLICY_VMOVE);
    e_gadman_client_min_size_set(cf->gmc, 4, 4);
-   e_gadman_client_max_size_set(cf->gmc, 160, 20);
-   e_gadman_client_auto_size_set(cf->gmc, 160, 20);
+   e_gadman_client_max_size_set(cf->gmc, 128, 128);
+   e_gadman_client_auto_size_set(cf->gmc, 40, 40);
    e_gadman_client_align_set(cf->gmc, 1.0, 1.0);
    e_gadman_client_resize(cf->gmc, 160, 20);
    e_gadman_client_change_func_set(cf->gmc, _uptime_face_cb_gmc_change, cf);




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to