Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibar


Modified Files:
        e_mod_main.h e_mod_main.c 


Log Message:
Removed unused variable 'found' in config_item_get function.
Cleaned up compiler warnings from evas_stringshare_add by making char * 
into const char *.
Fixed _ibar_new function to use const char *.


===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/ibar/e_mod_main.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- e_mod_main.h        10 May 2006 07:42:39 -0000      1.34
+++ e_mod_main.h        18 May 2006 12:24:35 -0000      1.35
@@ -21,8 +21,8 @@
 
 struct _Config_Item
 {
-   char *id;
-   char *dir;
+   const char *id;
+   const char *dir;
    int show_label;
 };
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -3 -r1.120 -r1.121
--- e_mod_main.c        18 May 2006 06:30:33 -0000      1.120
+++ e_mod_main.c        18 May 2006 12:24:35 -0000      1.121
@@ -40,7 +40,7 @@
    IBar            *ibar;
    E_Drop_Handler  *drop_handler;
    Ecore_Timer     *drop_recalc_timer;
-   char            *dir;
+   const char            *dir;
 };
 
 struct _IBar
@@ -73,7 +73,7 @@
    } drag;
 };
 
-static IBar *_ibar_new(Evas *evas, char *dir);
+static IBar *_ibar_new(Evas *evas, const char *dir);
 static void _ibar_free(IBar *b);
 static void _ibar_cb_empty_mouse_down(void *data, Evas *e, Evas_Object *obj, 
void *event_info);
 static void _ibar_empty_handle(IBar *b);
@@ -238,7 +238,7 @@
 /**/
 
 static IBar *
-_ibar_new(Evas *evas, char *dir)
+_ibar_new(Evas *evas, const char *dir)
 {
    IBar *b;
    char buf[4096];
@@ -1324,11 +1324,9 @@
    for (l = ibar_config->instances; l; l = l->next)
      {
        Instance *inst;
-       int found;
        Config_Item *ci;
        
        inst = l->data;
-       found = 0;
        ci = _ibar_config_item_get(inst->gcc->id);
        if (ci->dir) evas_stringshare_del(ci->dir);
        /* FIXME: path should be recorded from setup */




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to