Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h dialog.c events.c text.c 


Log Message:
Fix some const glitches.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -3 -r1.179 -r1.180
--- E.h 12 Jan 2004 20:43:17 -0000      1.179
+++ E.h 12 Jan 2004 21:05:00 -0000      1.180
@@ -2324,11 +2324,11 @@
 /* text.c functions */
 TextState          *TextGetState(TextClass * tclass, int active, int sticky,
                                 int state);
-char              **TextGetLines(char *text, int *count);
+char              **TextGetLines(const char *text, int *count);
 void                TextStateLoadFont(TextState * ts);
 void                TextSize(TextClass * tclass, int active, int sticky,
-                            int state, char *text, int *width, int *height,
-                            int fsize);
+                            int state, const char *text, int *width,
+                            int *height, int fsize);
 void                TextDraw(TextClass * tclass, Window win, int active,
                             int sticky, int state, char *text, int x, int y,
                             int w, int h, int fsize, int justification);
@@ -2581,8 +2581,8 @@
 void                DialogBindKey(Dialog * d, char *key,
                                  void (*func) (int val, void *data), int val,
                                  void *data);
-void                DialogSetText(Dialog * d, char *text);
-void                DialogSetTitle(Dialog * d, char *title);
+void                DialogSetText(Dialog * d, const char *text);
+void                DialogSetTitle(Dialog * d, const char *title);
 void                DialogSetExitFunction(Dialog * d,
                                          void (*func) (int val, void *data),
                                          int val, void *data);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/dialog.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- dialog.c    11 Jan 2004 13:20:16 -0000      1.73
+++ dialog.c    12 Jan 2004 21:05:00 -0000      1.74
@@ -379,7 +379,7 @@
 }
 
 void
-DialogSetText(Dialog * d, char *text)
+DialogSetText(Dialog * d, const char *text)
 {
    int                 w, h;
 
@@ -395,7 +395,7 @@
 }
 
 void
-DialogSetTitle(Dialog * d, char *title)
+DialogSetTitle(Dialog * d, const char *title)
 {
    if (d->title)
       Efree(d->title);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/events.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- events.c    12 Jan 2004 20:43:18 -0000      1.43
+++ events.c    12 Jan 2004 21:05:00 -0000      1.44
@@ -888,7 +888,7 @@
 {
    Window              win = ev->xany.window;
    const char         *name = EventName(ev->type);
-   const char         *txt;
+   char               *txt;
 
    switch (ev->type)
      {
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/text.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- text.c      15 Nov 2003 22:27:17 -0000      1.26
+++ text.c      12 Jan 2004 21:05:00 -0000      1.27
@@ -104,7 +104,7 @@
 }
 
 char              **
-TextGetLines(char *text, int *count)
+TextGetLines(const char *text, int *count)
 {
    int                 i, j, k;
    char              **list = NULL;
@@ -228,8 +228,8 @@
 }
 
 void
-TextSize(TextClass * tclass, int active, int sticky, int state, char *text,
-        int *width, int *height, int fsize)
+TextSize(TextClass * tclass, int active, int sticky, int state,
+        const char *text, int *width, int *height, int fsize)
 {
    char              **lines;
    int                 i, num_lines;




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to