[prev in list] [next in list] [prev in thread] [next in thread]
List: enlightenment-svn
Subject: E CVS: e kwo
From: enlightenment-cvs () lists ! sourceforge ! net
Date: 2004-07-31 8:07:34
Message-ID: E1Bqoty-0003Pk-9X () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
Tag: branch-exp
config.c icccm.c stacking.c theme.c
Log Message:
Merge.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/config.c,v
retrieving revision 1.111.2.1
retrieving revision 1.111.2.2
diff -u -3 -r1.111.2.1 -r1.111.2.2
--- config.c 26 Jul 2004 23:07:59 -0000 1.111.2.1
+++ config.c 31 Jul 2004 08:07:33 -0000 1.111.2.2
@@ -2452,13 +2452,13 @@
/* This function will load an ImageClass off disk */
char s[FILEPATH_LEN_MAX];
- char s1[FILEPATH_LEN_MAX];
char s2[FILEPATH_LEN_MAX];
int i1;
ImageClass *ic = 0;
ImageState *ICToRead = 0;
ColorModifierClass *cm = 0;
int fields;;
+ int l, r, t, b;
while (GetLine(s, sizeof(s), ConfigFile))
{
@@ -2476,10 +2476,9 @@
else if (i1 != CONFIG_INVALID)
{
if (fields != 2)
- {
- Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
- }
+ Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
}
+
switch (i1)
{
case CONFIG_CLOSE:
@@ -2488,18 +2487,14 @@
return;
case ICLASS_LRTB:
{
- char s3[FILEPATH_LEN_MAX];
- char s4[FILEPATH_LEN_MAX];
- char s5[FILEPATH_LEN_MAX];
-
ICToRead->border = Emalloc(sizeof(Imlib_Border));
- sscanf(s, "%4000s %4000s %4000s %4000s %4000s", s1, s2, s3,
- s4, s5);
- ICToRead->border->left = atoi(s2);
- ICToRead->border->right = atoi(s3);
- ICToRead->border->top = atoi(s4);
- ICToRead->border->bottom = atoi(s5);
+ l = r = t = b = 0;
+ sscanf(s, "%*s %i %i %i %i", &l, &r, &t, &b);
+ ICToRead->border->left = l;
+ ICToRead->border->right = r;
+ ICToRead->border->top = t;
+ ICToRead->border->bottom = b;
/* Hmmm... imlib2 works better with this */
ICToRead->border->right++;
ICToRead->border->bottom++;
@@ -2544,16 +2539,12 @@
break;
case ICLASS_PADDING:
{
- char s3[FILEPATH_LEN_MAX];
- char s4[FILEPATH_LEN_MAX];
- char s5[FILEPATH_LEN_MAX];
-
- sscanf(s, "%4000s %4000s %4000s %4000s %4000s", s1, s2, s3,
- s4, s5);
- ic->padding.left = atoi(s2);
- ic->padding.right = atoi(s3);
- ic->padding.top = atoi(s4);
- ic->padding.bottom = atoi(s5);
+ l = r = t = b = 0;
+ sscanf(s, "%*s %i %i %i %i", &l, &r, &t, &b);
+ ic->padding.left = l;
+ ic->padding.right = r;
+ ic->padding.top = t;
+ ic->padding.bottom = b;
}
break;
case CONFIG_CLASSNAME:
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/icccm.c,v
retrieving revision 1.76
retrieving revision 1.76.2.1
diff -u -3 -r1.76 -r1.76.2.1
--- icccm.c 15 Jul 2004 23:31:01 -0000 1.76
+++ icccm.c 31 Jul 2004 08:07:33 -0000 1.76.2.1
@@ -526,6 +526,11 @@
if (atom_change && atom_change != E_XA_WM_NORMAL_HINTS)
EDBUG_RETURN_;
+ x = ewin->client.x;
+ y = ewin->client.y;
+ w = ewin->client.w;
+ h = ewin->client.h;
+ bw = ewin->client.bw;
EGetGeometry(disp, ewin->client.win, &ww, &x, &y, &w, &h, &bw, &dummy);
ewin->client.x = x;
ewin->client.y = y;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/stacking.c,v
retrieving revision 1.12
retrieving revision 1.12.2.1
diff -u -3 -r1.12 -r1.12.2.1
--- stacking.c 28 Jun 2004 18:22:04 -0000 1.12
+++ stacking.c 31 Jul 2004 08:07:33 -0000 1.12.2.1
@@ -215,7 +215,7 @@
EwinListGetForDesktop(int desk, int *num)
{
static EWin **lst = NULL;
- static int nalloc;
+ static int nalloc = 0;
int i, n, nwins;
EWin *ewin;
@@ -223,7 +223,7 @@
nwins = EwinListStack.nwins;
if (nalloc < nwins)
{
- nalloc += 16;
+ nalloc = (nwins + 16) & ~0xf; /* 16 at the time */
lst = Erealloc(lst, nalloc * sizeof(EWin *));
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/theme.c,v
retrieving revision 1.37
retrieving revision 1.37.2.1
diff -u -3 -r1.37 -r1.37.2.1
--- theme.c 12 Jul 2004 23:33:15 -0000 1.37
+++ theme.c 31 Jul 2004 08:07:33 -0000 1.37.2.1
@@ -92,7 +92,7 @@
char s[FILEPATH_LEN_MAX], ss[FILEPATH_LEN_MAX];
char **str = NULL, *def = NULL;
char already, *tmp, *tmp2;
- int i, j, num;
+ int i, j, num, len;
str = E_ls(dir, &num);
if (!str)
@@ -120,8 +120,11 @@
if (!strcmp(str[i], "DEFAULT"))
{
- if (readlink(ss, s, sizeof(s)) > 0)
+ memset(s, 0, sizeof(s));
+ len = readlink(ss, s, sizeof(s) - 1);
+ if (len > 0)
{
+ s[len] = '\0'; /* Redundant due to memset */
if (s[0] == '/')
def = Estrdup(s);
else
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic