Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : net

Dir     : e_modules/net


Modified Files:
        net.edc e_mod_main.c 


Log Message:
Added device label


===================================================================
RCS file: /cvs/e/e_modules/net/net.edc,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- net.edc     25 May 2006 12:21:45 -0000      1.18
+++ net.edc     3 Jun 2006 03:56:46 -0000       1.19
@@ -112,6 +112,49 @@
                       color: 255 255 255 192;
                    }
               }
+            part 
+              {
+                 name: "net_label";
+                 type: TEXT;
+                 clip_to: "fade_clip";
+                 effect: SOFT_SHADOW;
+                 description 
+                   {
+                      state: "default" 0.0;
+                      color: 255 255 255 0;
+                      color3: 0 0 0 0;
+                      visible: 0;
+                      rel1 
+                        {
+                           relative: 0.0 0.0;
+                           offset: 0 0;
+                           to: "net";
+                        }
+                      rel2 
+                        {
+                           relative: 1.0 1.0;
+                           offset: -1 -1;
+                           to: "net";
+                        }
+                      text 
+                        {
+                           text: "Device";
+                           font: "VeraMono";
+                           size: 9;
+                           min: 1 1;
+                           align: 0.5 0.5;
+                           text_class: "module_normal";
+                        }
+                   }
+                 description 
+                   {
+                      state: "visible" 0.0;
+                      inherit: "default" 0.0;
+                      visible: 1;
+                      color: 255 255 255 255;
+                      color3: 0 0 0 42;
+                   }
+              }
             part
               {
                  name: "rx_meter";
@@ -442,6 +485,7 @@
                  transition: SINUSOIDAL 0.5;
                  target: "rx_label";
                  target: "tx_label";
+                 target: "net_label";
                  //after: "go_passive2";
               }
             program 
@@ -462,6 +506,7 @@
                  transition: SINUSOIDAL 1.0;             
                  target: "rx_label";
                  target: "tx_label";
+                 target: "net_label";
               }
          }
      }
===================================================================
RCS file: /cvs/e/e_modules/net/e_mod_main.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- e_mod_main.c        1 Jun 2006 21:33:56 -0000       1.36
+++ e_mod_main.c        3 Jun 2006 03:56:46 -0000       1.37
@@ -468,6 +468,8 @@
    inst->old_in = in;
    inst->old_out = out;
 
+   edje_object_part_text_set(inst->net_obj, "net_label", ci->device);
+   
    if (bytes_in <= 0)
       edje_object_part_text_set(inst->net_obj, "rx_label", "Rx: 0 B");
    else




_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to