Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir     : e_modules/mail


Modified Files:
        e_mod_config_box.c 


Log Message:
Remove old unused passwd change callback function.

===================================================================
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_config_box.c  11 Jun 2006 13:20:35 -0000      1.4
+++ e_mod_config_box.c  11 Jun 2006 17:44:39 -0000      1.5
@@ -11,7 +11,6 @@
    char *host;
    char *user;
    char *pass;
-   char *pass_cp;
    char *new_path;
    char *cur_path;
    char *exec;
@@ -32,7 +31,6 @@
 static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data 
*cfdata);
 static void _type_cb_change(void *data, Evas_Object *obj);
 static void _use_exec_cb_change(void *data, Evas_Object *obj);
-static void _passwd_cb_change(void *data, Evas_Object *obj);
 
 static E_Config_Dialog *prev_dlg;
 static Config_Item *mail_ci;
@@ -92,12 +90,8 @@
    if (cb->user)
      cfdata->user = strdup(cb->user);
    if (cb->pass)
-     {
-       cfdata->pass = strdup(cb->pass);
-       cfdata->pass_cp = strdup(cb->pass);
-       for (ptr = cfdata->pass; *ptr; ptr++) 
-         *ptr = '*';
-     }
+     cfdata->pass = strdup(cb->pass);
+ 
    if (cb->new_path)
      cfdata->new_path = strdup(cb->new_path);
    if (cb->cur_path)
@@ -124,7 +118,6 @@
    E_FREE(cfdata->host);
    E_FREE(cfdata->user);
    E_FREE(cfdata->pass);
-   E_FREE(cfdata->pass_cp);
    E_FREE(cfdata->new_path);
    E_FREE(cfdata->cur_path);
    E_FREE(cfdata->exec);
@@ -202,8 +195,6 @@
    ob = e_widget_label_add(evas, _("Password:"));
    e_widget_frametable_object_append(of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
    ob = e_widget_entry_add(evas, &cfdata->pass);
-   //e_widget_entry_password_set(ob, 1);
-   e_widget_entry_on_change_callback_set(ob, _passwd_cb_change, cfdata);
    e_widget_frametable_object_append(of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
 
    cfdata->new_path_label = e_widget_label_add(evas, _("New Mail Path:"));
@@ -283,7 +274,7 @@
 
    if (cb->pass) evas_stringshare_del(cb->pass);
    if (cfdata->pass != NULL)
-     cb->pass = evas_stringshare_add(cfdata->pass_cp);
+     cb->pass = evas_stringshare_add(cfdata->pass);
    else
      cb->pass = evas_stringshare_add("");
    
@@ -360,45 +351,4 @@
    e_widget_disabled_set(cfdata->exec_entry, !cfdata->use_exec);
    if (!cfdata->use_exec)
      e_widget_entry_text_set(cfdata->exec_entry, "");
-}
-
-static void 
-_passwd_cb_change(void *data, Evas_Object *obj) 
-{
-   E_Config_Dialog_Data        *cfdata;
-   int i;
-   char *ptr;
-   
-   cfdata = data;
-
-   if (!cfdata->pass[0])
-     {
-       E_FREE(cfdata->pass_cp);
-       cfdata->pass_cp = strdup("");
-       return;
-     }
-
-   if (strlen(cfdata->pass) > strlen(cfdata->pass_cp))
-     {
-       for (i = 0; i < strlen(cfdata->pass_cp); i++)
-         cfdata->pass[i] = cfdata->pass_cp[i];
-       E_FREE(cfdata->pass_cp);
-       cfdata->pass_cp = strdup(cfdata->pass);
-     }
-   else if (strlen(cfdata->pass) < strlen(cfdata->pass_cp))
-     {
-       cfdata->pass_cp[strlen(cfdata->pass)] = 0;
-       E_FREE(cfdata->pass);
-       cfdata->pass = strdup(cfdata->pass_cp);
-     }
-   else
-     {
-       E_FREE(cfdata->pass);
-       cfdata->pass = strdup(cfdata->pass_cp);
-     }
-
-   for (ptr = cfdata->pass; *ptr; ptr++) 
-     *ptr = '*';
-   
-   e_widget_entry_text_set(obj, cfdata->pass);
 }




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

Reply via email to