Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_entry_dialog.c e_entry_dialog.h 
        e_int_config_wallpaper_import.c e_spectrum.c e_thumb_main.c 
        e_widget_csel.c e_widget_cslider.c e_widget_fsel.c 
        e_widget_fsel.h 


Log Message:
- const
- remove unused variables
- better parameter names

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_entry_dialog.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_entry_dialog.c    15 Aug 2006 20:23:26 -0000      1.6
+++ e_entry_dialog.c    17 Aug 2006 16:58:32 -0000      1.7
@@ -11,8 +11,8 @@
 e_entry_dialog_show(const char *title, const char *icon, const char *text,
                    const char *initial_text,
                    const char *button_text, const char *button2_text,
-                   void (*func)(char *text, void *data), 
-                   void (*func2)(void *data), void *data) 
+                   void (*ok_func)(char *text, void *data), 
+                   void (*cancel_func)(void *data), void *data) 
 {
    E_Entry_Dialog *ed;
    E_Dialog *dia;
@@ -20,9 +20,9 @@
    int w, h;
 
    ed = E_OBJECT_ALLOC(E_Entry_Dialog, E_ENTRY_DIALOG_TYPE, 
_e_entry_dialog_free);
-   ed->ok.func = func;
+   ed->ok.func = ok_func;
    ed->ok.data = data;
-   ed->cancel.func = func2;
+   ed->cancel.func = cancel_func;
    ed->cancel.data = data;
    ed->text = strdup(initial_text);
    
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_entry_dialog.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_entry_dialog.h    12 Aug 2006 12:49:52 -0000      1.3
+++ e_entry_dialog.h    17 Aug 2006 16:58:32 -0000      1.4
@@ -34,8 +34,8 @@
                                         const char *initial_text,
                                         const char *button_text,
                                         const char *button2_text, 
-                                        void (*func) (char *text, void *data), 
-                                        void (*func2) (void *data),
+                                        void (*ok_func) (char *text, void 
*data), 
+                                        void (*cancel_func) (void *data),
                                         void *data);
 
 #endif
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_wallpaper_import.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_int_config_wallpaper_import.c     16 Aug 2006 06:10:30 -0000      1.13
+++ e_int_config_wallpaper_import.c     17 Aug 2006 16:58:32 -0000      1.14
@@ -72,7 +72,7 @@
    Evas_Coord w, h;
    E_Config_Dialog_Data *cfdata;
    Evas_Modifier_Mask mask;
-   char *fdev, *fpath;
+   const char *fdev, *fpath;
    
    import = E_NEW(Import, 1);
    if (!import) return NULL;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_spectrum.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_spectrum.c        15 Aug 2006 19:36:21 -0000      1.6
+++ e_spectrum.c        17 Aug 2006 16:58:32 -0000      1.7
@@ -100,7 +100,6 @@
 _e_spectrum_smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h)
 {
   E_Spectrum *sp;
-  Evas_Coord x, y;
 
   sp = evas_object_smart_data_get(o);
   if (!sp) return;
@@ -151,7 +150,6 @@
 static void
 _e_spectrum_smart_init()
 {
-   Evas_Smart *smart;
    if ( _e_spectrum_smart ) return;
    _e_spectrum_smart = evas_smart_new("e_spectrum",
                                      _e_spectrum_smart_add,
@@ -204,7 +202,7 @@
 void
 _e_spectrum_2d_color_at(E_Spectrum *sp, int x, int y, int *r, int *g, int *b)
 {
-  int rr, gg, bb, aa;
+  int rr, gg, bb;
   float h, s, v;
 
   if (!sp || !sp->cv) return;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_thumb_main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_thumb_main.c      8 Aug 2006 11:16:19 -0000       1.10
+++ e_thumb_main.c      17 Aug 2006 16:58:32 -0000      1.11
@@ -205,7 +205,9 @@
 _e_cb_timer(void *data)
 {
    E_Thumb *eth;
+   /*
    Evas_List *del_list = NULL, *l;
+   */
 
    /* take thumb at head of list */
    if (_thumblist)
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_csel.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_widget_csel.c     15 Aug 2006 00:54:33 -0000      1.4
+++ e_widget_csel.c     17 Aug 2006 16:58:32 -0000      1.5
@@ -148,7 +148,6 @@
 {
    Evas_Object *obj, *o;
    Evas_Object *frame, *table;
-   Evas_Coord mw, mh;
    E_Color*cv;
    int i;
    E_Radio_Group *grp = NULL;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_cslider.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_widget_cslider.c  15 Aug 2006 00:54:33 -0000      1.2
+++ e_widget_cslider.c  17 Aug 2006 16:58:32 -0000      1.3
@@ -203,7 +203,6 @@
 _e_wid_update_standard(E_Widget_Data *wd)
 {
    int r, g, b;
-   float h, s, v;
    int max, min;
    float vx;
 
@@ -262,7 +261,6 @@
 void
 _e_wid_update_fixed(E_Widget_Data *wd)
 {
-  int r, g, b;
   int max, min;
   float vx;
   if (!wd) return;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_fsel.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_widget_fsel.c     15 Aug 2006 06:47:22 -0000      1.15
+++ e_widget_fsel.c     17 Aug 2006 16:58:32 -0000      1.16
@@ -192,7 +192,7 @@
 
 /* externally accessible functions */
 EAPI Evas_Object *
-e_widget_fsel_add(Evas *evas, char *dev, char *path, char *selected, char 
*filter, 
+e_widget_fsel_add(Evas *evas, const char *dev, const char *path, char 
*selected, char *filter, 
                  void (*sel_func) (void *data, Evas_Object *obj), void 
*sel_data,
                  void (*chg_func) (void *data, Evas_Object *obj), void 
*chg_data,
                  int preview)
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_fsel.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_widget_fsel.h     14 Aug 2006 11:08:40 -0000      1.4
+++ e_widget_fsel.h     17 Aug 2006 16:58:32 -0000      1.5
@@ -6,7 +6,7 @@
 #ifndef E_WIDGET_FSEL_H
 #define E_WIDGET_FSEL_H
 
-EAPI Evas_Object *e_widget_fsel_add(Evas *evas, char *dev, char *path, char 
*selected, char *filter,
+EAPI Evas_Object *e_widget_fsel_add(Evas *evas, const char *dev, const char 
*path, char *selected, char *filter,
                                    void (*sel_func) (void *data, Evas_Object 
*obj), void *sel_data,
                                    void (*chg_func) (void *data, Evas_Object 
*obj), void *chg_data, int preview);
 EAPI const char *e_widget_fsel_selection_path_get(Evas_Object *obj);



-------------------------------------------------------------------------
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