Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : net

Dir     : e_modules/net


Modified Files:
        e_mod_main.c e_mod_config.c 


Log Message:
Indent for mej :)

===================================================================
RCS file: /cvs/e/e_modules/net/e_mod_main.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- e_mod_main.c        25 May 2006 14:45:43 -0000      1.30
+++ e_mod_main.c        25 May 2006 15:54:55 -0000      1.31
@@ -77,15 +77,15 @@
    inst->net_obj = o;
 
    evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, 
_net_cb_mouse_down, inst);
-   
+
    evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_IN, _net_cb_mouse_in, 
inst);
    evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_OUT, 
_net_cb_mouse_out, inst);
 
    if (ci->always_text)
-     edje_object_signal_emit(inst->net_obj, "label_active", "");
+      edje_object_signal_emit(inst->net_obj, "label_active", "");
 
    _net_cb_check(inst);
-   
+
    inst->check_timer = ecore_timer_add(ci->poll_time, _net_cb_check, inst);
    net_config->instances = evas_list_append(net_config->instances, inst);
 
@@ -153,9 +153,9 @@
         e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
         e_menu_item_callback_set(mi, _net_menu_cb_configure, inst);
 
-       mi = e_menu_item_new(mn);
-       e_menu_item_separator_set(mi, 1);
-       
+        mi = e_menu_item_new(mn);
+        e_menu_item_separator_set(mi, 1);
+
         e_gadcon_client_util_menu_items_append(inst->gcc, mn, 0);
         e_gadcon_canvas_zone_geometry_get(inst->gcc->gadcon, &x, &y, &w, &h);
         e_menu_activate_mouse(mn,
@@ -206,13 +206,13 @@
         if (!strcmp(inst->gcc->id, ci->id))
           {
              if (inst->check_timer)
-              ecore_timer_del(inst->check_timer);
-            inst->check_timer = ecore_timer_add((double)ci->poll_time, 
_net_cb_check, inst);
-            if (ci->always_text)
-              edje_object_signal_emit(inst->net_obj, "label_active", "");
-            else
-              edje_object_signal_emit(inst->net_obj, "label_passive", "");
-              
+                ecore_timer_del(inst->check_timer);
+             inst->check_timer = ecore_timer_add((double)ci->poll_time, 
_net_cb_check, inst);
+             if (ci->always_text)
+                edje_object_signal_emit(inst->net_obj, "label_active", "");
+             else
+                edje_object_signal_emit(inst->net_obj, "label_passive", "");
+
              break;
           }
      }
@@ -265,7 +265,7 @@
    E_CONFIG_VAL(D, T, max, DOUBLE);
    E_CONFIG_VAL(D, T, poll_time, DOUBLE);
    E_CONFIG_VAL(D, T, always_text, INT);
-   
+
    conf_edd = E_CONFIG_DD_NEW("Net_Config", Config);
 
 #undef T
@@ -286,7 +286,7 @@
         ci->device = evas_stringshare_add("eth0");
         ci->poll_time = 1.0;
         ci->max = 1500.0;
-       ci->always_text = 0;
+        ci->always_text = 0;
         net_config->items = evas_list_append(net_config->items, ci);
      }
    net_config->module = m;
@@ -392,8 +392,8 @@
 {
    Edje_Message_Int_Set *val;
    Instance *inst;
-   
-   inst = data;   
+
+   inst = data;
    val = malloc(sizeof(Edje_Message_Int_Set) + (1 * sizeof(int)));
    val->count = 1;
    val->val[0] = value;
@@ -406,7 +406,7 @@
 {
    Edje_Message_Int_Set *val;
    Instance *inst;
-   
+
    inst = data;
    val = malloc(sizeof(Edje_Message_Int_Set) + (1 * sizeof(int)));
    val->count = 1;
@@ -429,11 +429,11 @@
 {
    Instance *inst;
    Config_Item *ci;
-   
+
    inst = data;
    ci = _net_config_item_get(inst->gcc->id);
    if (!ci->always_text)
-     edje_object_signal_emit(inst->net_obj, "label_passive", "");
+      edje_object_signal_emit(inst->net_obj, "label_passive", "");
 }
 
 static int
@@ -495,29 +495,29 @@
    bytes_in = in - old_in;
    bytes_out = out - old_out;
    if (bytes_in < 0)
-     bytes_in = 0;
+      bytes_in = 0;
    if (bytes_out < 0)
-     bytes_out = 0;
-   
+      bytes_out = 0;
+
    old_in = in;
    old_out = out;
 
-   if (first_time) 
+   if (first_time)
      {
-       first_time = 0;
-       return 1;
+        first_time = 0;
+        return 1;
      }
-   
+
    if (bytes_in <= 0)
       edje_object_part_text_set(inst->net_obj, "rx_label", "Rx: 0 B");
    else
      {
         if (bytes_in > 1048576)
-         snprintf(in_str, sizeof(in_str), "Rx: %d Mb", (bytes_in / 1048576));
+           snprintf(in_str, sizeof(in_str), "Rx: %d Mb", (bytes_in / 1048576));
         else if (bytes_in > 1024 && bytes_in < 1048576)
-         snprintf(in_str, sizeof(in_str), "Rx: %d Kb", (bytes_in / 1024));
+           snprintf(in_str, sizeof(in_str), "Rx: %d Kb", (bytes_in / 1024));
         else
-         snprintf(in_str, sizeof(in_str), "Rx: %d B", bytes_in);
+           snprintf(in_str, sizeof(in_str), "Rx: %d B", bytes_in);
 
         edje_object_part_text_set(inst->net_obj, "rx_label", in_str);
      }
@@ -527,27 +527,27 @@
    else
      {
         if (bytes_out > 1048576)
-         snprintf(out_str, sizeof(out_str), "Tx: %d Mb", (bytes_out / 
1048576));
+           snprintf(out_str, sizeof(out_str), "Tx: %d Mb", (bytes_out / 
1048576));
         else if (bytes_out > 1024 && bytes_out < 1048576)
-         snprintf(out_str, sizeof(out_str), "Tx: %d Kb", (bytes_out / 1024));
+           snprintf(out_str, sizeof(out_str), "Tx: %d Kb", (bytes_out / 1024));
         else
-         snprintf(out_str, sizeof(out_str), "Tx: %d B", bytes_out);
+           snprintf(out_str, sizeof(out_str), "Tx: %d B", bytes_out);
 
         edje_object_part_text_set(inst->net_obj, "tx_label", out_str);
      }
 
    double i, o;
-   
+
    if (bytes_in != 0.0)
-     i = ((double)bytes_in / (double)ci->max);
+      i = ((double)bytes_in / (double)ci->max);
    else
-     i = 0.0;
-   
+      i = 0.0;
+
    if (bytes_out != 0.0)
-     o = ((double)bytes_out / (double)ci->max);
+      o = ((double)bytes_out / (double)ci->max);
    else
-     o = 0.0;
-   
+      o = 0.0;
+
    if (i < 0.0)
       i = 0.0;
    if (o < 0.0)
===================================================================
RCS file: /cvs/e/e_modules/net/e_mod_config.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_config.c      25 May 2006 12:06:14 -0000      1.13
+++ e_mod_config.c      25 May 2006 15:54:55 -0000      1.14
@@ -49,7 +49,7 @@
    cfdata->poll_time = ci->poll_time;
    cfdata->always_text = ci->always_text;
    cfdata->max = ci->max;
-   
+
    if (ci->device != NULL)
       cfdata->device = strdup(ci->device);
    else
@@ -117,9 +117,9 @@
    ob = e_widget_radio_add(evas, D_("Always Show Text"), 1, rg);
    e_widget_framelist_object_append(of, ob);
    ob = e_widget_radio_add(evas, D_("Show Text On Mouse Over"), 0, rg);
-   e_widget_framelist_object_append(of, ob);   
+   e_widget_framelist_object_append(of, ob);
    e_widget_list_object_append(o, of, 1, 1, 0.5);
-   
+
    of = e_widget_framelist_add(evas, D_("Device Settings"), 0);
    ot = e_widget_table_add(evas, 0);
    rg = e_widget_radio_group_new(&(cfdata->dev_num));
@@ -142,10 +142,10 @@
    e_widget_table_object_append(ot, ob, 0, i, 1, 1, 0, 0, 1, 0);
    i++;
    ob = e_widget_slider_add(evas, 1, 0, _("%1.0f"), 100, 1500, 100, 0, 
&(cfdata->max), NULL, 150);
-   e_widget_table_object_append(ot, ob, 0, i, 1, 1, 1, 0, 1, 0);   
+   e_widget_table_object_append(ot, ob, 0, i, 1, 1, 1, 0, 1, 0);
    e_widget_framelist_object_append(of, ot);
    e_widget_list_object_append(o, of, 1, 1, 0.5);
-   
+
    return o;
 }
 
@@ -166,7 +166,7 @@
    ci->poll_time = cfdata->poll_time;
    ci->always_text = cfdata->always_text;
    ci->max = cfdata->max;
-   
+
    e_config_save_queue();
    _net_config_updated(ci->id);
    return 1;




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to