Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_gadcon_config.c 


Log Message:
Fix removing gadgets from a shelf.
    - Don't need to use strcasecmp.
    - Remove an unneeded variable.
    

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_gadcon_config.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- e_int_gadcon_config.c       27 Nov 2006 15:52:45 -0000      1.33
+++ e_int_gadcon_config.c       30 Nov 2006 19:46:55 -0000      1.34
@@ -166,14 +166,12 @@
 static void
 _cb_remove_instance(void *data, void *data2)
 {
-   int i;
    E_Config_Dialog_Data *cfdata;
    Evas_List *l;
-   const char *name;
+   int i;
    
    cfdata = data;
    i = e_widget_ilist_selected_get(cfdata->o_instances);
-   name = e_widget_ilist_selected_label_get(cfdata->o_instances);
    
    for (l = cfdata->cf_gc->clients; l; l = l->next) 
      {
@@ -182,7 +180,7 @@
        cf_gcc = l->data;
        if (!cf_gcc) continue;
        if (!cf_gcc->name) continue;
-       if (!strcasecmp(cf_gcc->name, name)) 
+       if (!strcmp(cf_gcc->name, cfdata->ciname))
          {
             if (cf_gcc->name) evas_stringshare_del(cf_gcc->name);
             if (cf_gcc->id) evas_stringshare_del(cf_gcc->id);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to