Thu Jan 6 12:23:56 PST 2000
(Mandrake) updated copyrights to say 2000. muahahaha. SVN revision: 1864
This commit is contained in:
parent
aee2601d05
commit
8388b82d62
|
@ -4141,3 +4141,10 @@ Tue Jan 4 23:58:44 CET 2000
|
|||
|
||||
* Corrected a couple of spelling errors in the code.
|
||||
* Added localization of a few messages in the E.h file.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Thu Jan 6 12:23:56 PST 2000
|
||||
(Mandrake)
|
||||
|
||||
updated copyrights to say 2000. muahahaha.
|
||||
|
|
113
src/actions.c
113
src/actions.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -664,17 +664,17 @@ runApp(char *exe, char *params)
|
|||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file does not exist.\n"),
|
||||
(char *)exe);
|
||||
"This is because the file does not exist.\n"),
|
||||
(char *)exe);
|
||||
/* relative path */
|
||||
else
|
||||
DialogAlertOK(_
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is most probably because this program "
|
||||
"This is most probably because this program "
|
||||
"is not in the\n"
|
||||
"path for your shell which is %s. I suggest "
|
||||
"path for your shell which is %s. I suggest "
|
||||
"you read " "the manual\n"
|
||||
"page for that shell and read up how to "
|
||||
"change or add " "to your\n"
|
||||
|
@ -689,26 +689,26 @@ runApp(char *exe, char *params)
|
|||
/* can execute it */
|
||||
if (canexec((char *)path))
|
||||
DialogAlertOK(_
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"I am unsure as to why you could not "
|
||||
"do this. " "The file exists,\n"
|
||||
"is a file, and you are allowed to "
|
||||
"execute it. I " "suggest you look\n"
|
||||
"into this.\n"), (char *)path);
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"I am unsure as to why you could not "
|
||||
"do this. " "The file exists,\n"
|
||||
"is a file, and you are allowed to "
|
||||
"execute it. I " "suggest you look\n"
|
||||
"into this.\n"), (char *)path);
|
||||
/* not executable file */
|
||||
else
|
||||
DialogAlertOK(_
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file exists, is a"
|
||||
" file, but " "you are unable\n"
|
||||
"to execute it because you do not "
|
||||
"have execute "
|
||||
"access to this file.\n"),
|
||||
(char *)path);
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file exists, is a"
|
||||
" file, but " "you are unable\n"
|
||||
"to execute it because you do not "
|
||||
"have execute "
|
||||
"access to this file.\n"),
|
||||
(char *)path);
|
||||
}
|
||||
/* it's not a file */
|
||||
else
|
||||
|
@ -716,19 +716,19 @@ runApp(char *exe, char *params)
|
|||
/* its a dir */
|
||||
if (isdir((char *)path))
|
||||
DialogAlertOK(_
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file is in fact "
|
||||
"a directory.\n"), (char *)path);
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file is in fact "
|
||||
"a directory.\n"), (char *)path);
|
||||
/* its not a file or a dir */
|
||||
else
|
||||
DialogAlertOK(_
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file is not a "
|
||||
"regular file.\n"), (char *)path);
|
||||
("There was an error running the program:\n"
|
||||
"%s\n"
|
||||
"This program could not be executed.\n"
|
||||
"This is because the file is not a "
|
||||
"regular file.\n"), (char *)path);
|
||||
}
|
||||
if (path)
|
||||
Efree(path);
|
||||
|
@ -1181,11 +1181,11 @@ doMoveEnd(void *params)
|
|||
if (gwins[i]->floating)
|
||||
MoveEwinToDesktopAt(gwins[i], d,
|
||||
gwins[i]->x - (desks.desk[d].x -
|
||||
desks.desk[gwins[i]->
|
||||
desktop].x),
|
||||
desks.
|
||||
desk[gwins[i]->desktop].x),
|
||||
gwins[i]->y - (desks.desk[d].y -
|
||||
desks.desk[gwins[i]->
|
||||
desktop].y));
|
||||
desks.
|
||||
desk[gwins[i]->desktop].y));
|
||||
else
|
||||
MoveEwinToDesktopAt(gwins[i], d, gwins[i]->x, gwins[i]->y);
|
||||
gwins[i]->floating = 0;
|
||||
|
@ -1371,11 +1371,11 @@ doCleanup(void *params)
|
|||
floating[j++].h = ((EWin *) lst[i])->h;
|
||||
}
|
||||
else if (
|
||||
(
|
||||
(((EWin *) lst[i])->desktop == desks.current) ||
|
||||
(((EWin *) lst[i])->sticky)) &&
|
||||
(((EWin *) lst[i])->layer != 4) &&
|
||||
(((EWin *) lst[i])->layer != 0) && (!((EWin *) lst[i])->menu))
|
||||
(
|
||||
(((EWin *) lst[i])->desktop == desks.current) ||
|
||||
(((EWin *) lst[i])->sticky)) &&
|
||||
(((EWin *) lst[i])->layer != 4) &&
|
||||
(((EWin *) lst[i])->layer != 0) && (!((EWin *) lst[i])->menu))
|
||||
{
|
||||
fixed = Erealloc(fixed, sizeof(RectBox) * (k + 1));
|
||||
fixed[k].data = lst[i];
|
||||
|
@ -2333,7 +2333,7 @@ doHideShowButton(void *params)
|
|||
if (matchregexp(ss, lst[i]->name))
|
||||
{
|
||||
if ((strcmp(lst[i]->name,
|
||||
"_DESKTOP_DESKRAY_DRAG_CONTROL") &&
|
||||
"_DESKTOP_DESKRAY_DRAG_CONTROL") &&
|
||||
(!lst[i]->used)))
|
||||
{
|
||||
if (!(lst[i]->visible))
|
||||
|
@ -2363,7 +2363,7 @@ doHideShowButton(void *params)
|
|||
if (!matchregexp(ss, lst[i]->name))
|
||||
{
|
||||
if ((strcmp(lst[i]->name,
|
||||
"_DESKTOP_DESKRAY_DRAG_CONTROL") &&
|
||||
"_DESKTOP_DESKRAY_DRAG_CONTROL") &&
|
||||
(!lst[i]->used)))
|
||||
{
|
||||
if (!(lst[i]->visible))
|
||||
|
@ -3328,7 +3328,7 @@ doConfigure(void *params)
|
|||
{
|
||||
ChooseGroupDialog(ewin,
|
||||
_
|
||||
(" Pick the group the window will belong to: \n"),
|
||||
(" Pick the group the window will belong to: \n"),
|
||||
GROUP_SELECT_ALL_EXCEPT_EWIN,
|
||||
ACTION_ADD_TO_GROUP);
|
||||
}
|
||||
|
@ -3347,8 +3347,7 @@ struct _keyset
|
|||
int
|
||||
doInsertKeys(void *params)
|
||||
{
|
||||
const struct _keyset ks[] =
|
||||
{
|
||||
const struct _keyset ks[] = {
|
||||
{"a", 0, "a"},
|
||||
{"b", 0, "b"},
|
||||
{"c", 0, "c"},
|
||||
|
@ -3573,8 +3572,8 @@ doRaiseLower(void *params)
|
|||
{
|
||||
if (desks.desk[ewin->desktop].list[i]->layer == ewin->layer &&
|
||||
(desks.desk[ewin->desktop].list[i] == ewin ||
|
||||
!FindEwinInList(desks.desk[ewin->desktop].list[i], gwins,
|
||||
num)))
|
||||
!FindEwinInList(desks.desk[ewin->desktop].list[i], gwins,
|
||||
num)))
|
||||
{
|
||||
if (desks.desk[ewin->desktop].list[i] != ewin)
|
||||
raise = 1;
|
||||
|
@ -3680,10 +3679,10 @@ doAddToGroup(void *params)
|
|||
ChooseGroupDialog(ewin,
|
||||
_
|
||||
("\n There's no current group at the moment. \n"
|
||||
" The current group is the last one you created, \n"
|
||||
" and it exists until you create a new one or break \n"
|
||||
" The current group is the last one you created, \n"
|
||||
" and it exists until you create a new one or break \n"
|
||||
" the latest one. \n\n"
|
||||
" Pick another group that the window will belong to here: \n\n"),
|
||||
" Pick another group that the window will belong to here: \n\n"),
|
||||
GROUP_SELECT_ALL_EXCEPT_EWIN, ACTION_ADD_TO_GROUP);
|
||||
EDBUG_RETURN(0);
|
||||
}
|
||||
|
@ -3766,20 +3765,20 @@ doZoom(void *params)
|
|||
{
|
||||
fprintf(f,
|
||||
_
|
||||
("You have been warned about the dangers of Zoom mode\n"));
|
||||
("You have been warned about the dangers of Zoom mode\n"));
|
||||
fclose(f);
|
||||
}
|
||||
DIALOG_OK(_("Warning !!!"),
|
||||
_
|
||||
("This feature is heavily reliant on a feature of your\n"
|
||||
"X Server called the Vid Mode Extension. This feature exists\n"
|
||||
"in XFree86 Servers, but is not a heavily used part of the\n"
|
||||
"X Server called the Vid Mode Extension. This feature exists\n"
|
||||
"in XFree86 Servers, but is not a heavily used part of the\n"
|
||||
"Server and thus isn't tested much.\n" "\n"
|
||||
"It is possible your X Server does not deal well with being\n"
|
||||
"It is possible your X Server does not deal well with being\n"
|
||||
"asked to switch modes quickly and it may hang, glitch,\n"
|
||||
"display artefacts or perhaps simply refuse to work.\n" "\n"
|
||||
"This is a warning and will only be displayed this one time.\n"
|
||||
"If your Server does not behave well then you will probably\n"
|
||||
"This is a warning and will only be displayed this one time.\n"
|
||||
"If your Server does not behave well then you will probably\n"
|
||||
"have to avoid using this feature.\n"));
|
||||
EDBUG_RETURN(0);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -42,7 +42,7 @@ int debug_level;
|
|||
char *call_stack[1024];
|
||||
|
||||
void
|
||||
Alert(char *fmt,...)
|
||||
Alert(char *fmt, ...)
|
||||
{
|
||||
char text[10240];
|
||||
va_list ap;
|
||||
|
|
36
src/areas.c
36
src/areas.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -171,9 +171,9 @@ SlideWindowsBy(Window * win, int num, int dx, int dy, int speed)
|
|||
int dsec, dusec;
|
||||
double tm;
|
||||
struct _xy
|
||||
{
|
||||
int x, y;
|
||||
}
|
||||
{
|
||||
int x, y;
|
||||
}
|
||||
*xy;
|
||||
|
||||
EDBUG(5, "SlideWindowsBy");
|
||||
|
@ -337,13 +337,13 @@ SetCurrentArea(int ax, int ay)
|
|||
lst[i]->x -
|
||||
(root.w *
|
||||
(ax -
|
||||
desks.desk[desks.current].
|
||||
current_area_x)),
|
||||
desks.desk[desks.
|
||||
current].current_area_x)),
|
||||
lst[i]->y -
|
||||
(root.h *
|
||||
(ay -
|
||||
desks.desk[desks.current].
|
||||
current_area_y)));
|
||||
desks.desk[desks.
|
||||
current].current_area_y)));
|
||||
if (setflip)
|
||||
mode.flipp = 0;
|
||||
lst[i]->area_x = a1;
|
||||
|
@ -374,13 +374,13 @@ SetCurrentArea(int ax, int ay)
|
|||
x -
|
||||
(root.w *
|
||||
(ax -
|
||||
desks.desk[desks.current].
|
||||
current_area_x)),
|
||||
desks.desk[desks.
|
||||
current].current_area_x)),
|
||||
y -
|
||||
(root.h *
|
||||
(ay -
|
||||
desks.desk[desks.current].
|
||||
current_area_y)));
|
||||
desks.desk[desks.
|
||||
current].current_area_y)));
|
||||
}
|
||||
}
|
||||
/* if we're not moving it... move it across */
|
||||
|
@ -399,13 +399,13 @@ SetCurrentArea(int ax, int ay)
|
|||
lst[i]->x -
|
||||
(root.w *
|
||||
(ax -
|
||||
desks.desk[desks.current].
|
||||
current_area_x)),
|
||||
desks.desk[desks.
|
||||
current].current_area_x)),
|
||||
lst[i]->y -
|
||||
(root.h *
|
||||
(ay -
|
||||
desks.desk[desks.current].
|
||||
current_area_y)));
|
||||
desks.desk[desks.
|
||||
current].current_area_y)));
|
||||
if (setflip)
|
||||
mode.flipp = 0;
|
||||
lst[i]->area_x = a1;
|
||||
|
@ -449,12 +449,12 @@ SetCurrentArea(int ax, int ay)
|
|||
if (mode.movemode == 5)
|
||||
DrawEwinShape(lst[i], mode.movemode,
|
||||
x, y,
|
||||
lst[i]->client.w, lst[i]->client.h,
|
||||
lst[i]->client.w, lst[i]->client.h,
|
||||
4);
|
||||
else
|
||||
DrawEwinShape(lst[i], mode.movemode,
|
||||
x, y,
|
||||
lst[i]->client.w, lst[i]->client.h,
|
||||
lst[i]->client.w, lst[i]->client.h,
|
||||
0);
|
||||
if (mode.flipp)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -628,7 +628,7 @@ SnapEwin(EWin * ewin, int dx, int dy, int *new_dx, int *new_dy)
|
|||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
{
|
||||
if (IN_BELOW
|
||||
(ewin->x + dx, lst[i]->x + lst[i]->w - 1,
|
||||
|
@ -661,7 +661,7 @@ SnapEwin(EWin * ewin, int dx, int dy, int *new_dx, int *new_dy)
|
|||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
{
|
||||
if (IN_ABOVE(ewin->x + ewin->w + dx - 1, lst[i]->x,
|
||||
mode.edge_snap_dist) &&
|
||||
|
@ -692,7 +692,7 @@ SnapEwin(EWin * ewin, int dx, int dy, int *new_dx, int *new_dy)
|
|||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
{
|
||||
if (IN_BELOW
|
||||
(ewin->y + dy, lst[i]->y + lst[i]->h - 1,
|
||||
|
@ -725,7 +725,7 @@ SnapEwin(EWin * ewin, int dx, int dy, int *new_dx, int *new_dy)
|
|||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
(!(lst[i]->iconified)) && (!(lst[i]->ignorearrange)))
|
||||
{
|
||||
if (IN_ABOVE(ewin->y + ewin->h + dy - 1, lst[i]->y,
|
||||
mode.edge_snap_dist) &&
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -29,11 +29,11 @@
|
|||
#define ARRANGE_BY_POSITION 2
|
||||
|
||||
typedef struct _rectbox
|
||||
{
|
||||
void *data;
|
||||
int x, y, w, h;
|
||||
int p;
|
||||
}
|
||||
{
|
||||
void *data;
|
||||
int x, y, w, h;
|
||||
int p;
|
||||
}
|
||||
RectBox;
|
||||
|
||||
void ArrangeRects(RectBox * fixed, int fixed_count,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -269,7 +269,7 @@ SlideEwinsTo(EWin ** ewin, int *fx, int *fy, int *tx, int *ty,
|
|||
int num_wins, int speed)
|
||||
{
|
||||
int k, spd, *x = NULL, *y = NULL, min, tmpx, tmpy, tmpw,
|
||||
tmph, i;
|
||||
tmph, i;
|
||||
struct timeval timev1, timev2;
|
||||
int dsec, dusec;
|
||||
double tm;
|
||||
|
@ -1171,12 +1171,12 @@ CalcEwinWinpart(EWin * ewin, int i)
|
|||
if (bottomright == -1)
|
||||
{
|
||||
ox =
|
||||
((ewin->
|
||||
border->part[i].geom.bottomright.x.percent * ewin->w) >> 10) +
|
||||
((ewin->border->
|
||||
part[i].geom.bottomright.x.percent * ewin->w) >> 10) +
|
||||
ewin->border->part[i].geom.bottomright.x.absolute;
|
||||
oy =
|
||||
((ewin->
|
||||
border->part[i].geom.bottomright.y.percent * ewin->h) >> 10) +
|
||||
((ewin->border->
|
||||
part[i].geom.bottomright.y.percent * ewin->h) >> 10) +
|
||||
ewin->border->part[i].geom.bottomright.y.absolute;
|
||||
}
|
||||
else if (bottomright >= 0)
|
||||
|
@ -2586,11 +2586,12 @@ MinShadeSize(EWin * ewin, int *mw, int *mh)
|
|||
leftborderwidth =
|
||||
ewin->border->border.left - ewin->bits[i].x;
|
||||
if ((ewin->bits[i].x + ewin->bits[i].w) -
|
||||
(ewin->w - ewin->border->border.right) > rightborderwidth)
|
||||
(ewin->w - ewin->border->border.right) > rightborderwidth)
|
||||
rightborderwidth =
|
||||
(ewin->bits[i].x + ewin->bits[i].w) - (ewin->w -
|
||||
ewin->border->
|
||||
border.right);
|
||||
ewin->
|
||||
border->border.
|
||||
right);
|
||||
}
|
||||
}
|
||||
ewin->w = rightborderwidth + leftborderwidth;
|
||||
|
@ -2616,8 +2617,9 @@ MinShadeSize(EWin * ewin, int *mw, int *mh)
|
|||
bottomborderwidth)
|
||||
bottomborderwidth =
|
||||
(ewin->bits[i].y + ewin->bits[i].h) - (ewin->h -
|
||||
ewin->border->
|
||||
border.bottom);
|
||||
ewin->
|
||||
border->border.
|
||||
bottom);
|
||||
}
|
||||
}
|
||||
ewin->h = bottomborderwidth + topborderwidth;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -92,7 +92,7 @@ CreateButton(char *name, ImageClass * iclass, ActionClass * aclass,
|
|||
ECreateWindow(desks.desk[desk % ENLIGHTENMENT_CONF_NUM_DESKTOPS].win,
|
||||
-100, -100, 50, 50, 0);
|
||||
XSelectInput(disp, b->win,
|
||||
ExposureMask | KeyPressMask | KeyReleaseMask | ButtonPressMask |
|
||||
ExposureMask | KeyPressMask | KeyReleaseMask | ButtonPressMask |
|
||||
ButtonReleaseMask | EnterWindowMask | LeaveWindowMask |
|
||||
PointerMotionMask);
|
||||
b->x = -1;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
18
src/comms.c
18
src/comms.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -382,8 +382,7 @@ void
|
|||
HandleComms(XEvent * ev)
|
||||
{
|
||||
Client *c;
|
||||
char *s, w[FILEPATH_LEN_MAX], w2[FILEPATH_LEN_MAX], *s1,
|
||||
*s2;
|
||||
char *s, w[FILEPATH_LEN_MAX], w2[FILEPATH_LEN_MAX], *s1, *s2;
|
||||
char sunknown[] = "UNKNOWN";
|
||||
int unknown;
|
||||
|
||||
|
@ -1097,7 +1096,8 @@ HandleComms(XEvent * ev)
|
|||
char *name = NULL, *bgf = NULL, *topf = NULL;
|
||||
int updated = 0, tile, keep_aspect, tkeep_aspect;
|
||||
int xjust, yjust, xperc, yperc, txjust, tyjust, txperc,
|
||||
typerc;
|
||||
|
||||
typerc;
|
||||
|
||||
sscanf(s, "%1000s %1000s", tmp, w);
|
||||
bg =
|
||||
|
@ -1521,9 +1521,9 @@ HandleComms(XEvent * ev)
|
|||
Button *b;
|
||||
|
||||
while (
|
||||
(b =
|
||||
RemoveItem("_DESKTOP_DRAG_CONTROL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_BUTTON)))
|
||||
(b =
|
||||
RemoveItem("_DESKTOP_DRAG_CONTROL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_BUTTON)))
|
||||
DestroyButton(b);
|
||||
InitDesktopControls();
|
||||
ShowDesktopControls();
|
||||
|
@ -1833,7 +1833,7 @@ HandleComms(XEvent * ev)
|
|||
"MWM_MINIMIZE: %5i\n"
|
||||
"MWM_MAXIMIZE: %5i\n"
|
||||
"APP_STATE: %5i\n", ewin->client.win,
|
||||
ewin->win, ewin->x, ewin->y, ewin->w, ewin->h, none,
|
||||
ewin->win, ewin->x, ewin->y, ewin->w, ewin->h, none,
|
||||
0, 0, 0, 0, ewin->desktop, ewin->num_groups,
|
||||
ewin->docked, ewin->sticky, ewin->visible,
|
||||
ewin->iconified, ewin->shaded, ewin->active,
|
||||
|
@ -1927,7 +1927,7 @@ HandleComms(XEvent * ev)
|
|||
{
|
||||
char buf[FILEPATH_LEN_MAX], *ret = NULL, none[] =
|
||||
|
||||
"-NONE-";
|
||||
"-NONE-";
|
||||
EWin **lst;
|
||||
int i, num;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
119
src/config.c
119
src/config.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -245,8 +245,7 @@ Config_Text(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -438,8 +437,7 @@ Config_Text(FILE * ConfigFile)
|
|||
default:
|
||||
Alert(_("Warning: unable to determine what to do with\n"
|
||||
"the following text in the middle of current Text"
|
||||
" definition:\n"
|
||||
"%s\nWill ignore and continue...\n"), s);
|
||||
" definition:\n" "%s\nWill ignore and continue...\n"), s);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -480,8 +478,7 @@ Config_Slideout(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -517,8 +514,7 @@ Config_Slideout(FILE * ConfigFile)
|
|||
default:
|
||||
Alert(_("Warning: unable to determine what to do with\n"
|
||||
"the following text in the middle of current Text "
|
||||
"definition:\n"
|
||||
"%s\nWill ignore and continue...\n"), s);
|
||||
"definition:\n" "%s\nWill ignore and continue...\n"), s);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -562,8 +558,7 @@ Config_Control(FILE * ConfigFile)
|
|||
if (fields != 2)
|
||||
{
|
||||
RecoverUserConfig();
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -796,8 +791,7 @@ Config_Control(FILE * ConfigFile)
|
|||
RecoverUserConfig();
|
||||
Alert(_("Warning: unable to determine what to do with\n"
|
||||
"the following text in the middle of current Control "
|
||||
"definition:\n"
|
||||
"%s\nWill ignore and continue...\n"), s);
|
||||
"definition:\n" "%s\nWill ignore and continue...\n"), s);
|
||||
}
|
||||
}
|
||||
RecoverUserConfig();
|
||||
|
@ -834,8 +828,7 @@ Config_MenuStyle(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -952,8 +945,7 @@ Config_Menu(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -1170,7 +1162,7 @@ BorderPartLoad(FILE * ConfigFile, char type, Border * b)
|
|||
int flags = FLAG_BUTTON;
|
||||
char isregion = 0, keepshade = 1;
|
||||
int wmin = 0, wmax = 0, hmin = 0, hmax = 0, torigin = 0,
|
||||
txp = 0, txa = 0, typ = 0, tya = 0, borigin = 0;
|
||||
txp = 0, txa = 0, typ = 0, tya = 0, borigin = 0;
|
||||
int bxp = 0, bxa = 0, byp = 0, bya = 0;
|
||||
int fields;
|
||||
|
||||
|
@ -1194,8 +1186,7 @@ BorderPartLoad(FILE * ConfigFile, char type, Border * b)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -1323,8 +1314,7 @@ Config_Border(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -1400,7 +1390,8 @@ Config_Button(FILE * ConfigFile)
|
|||
int flags = 0, minw = 1, maxw = 99999, minh = 1;
|
||||
int maxh = 99999, xo = 0, yo = 0, xa = 0;
|
||||
int xr = 0, ya = 0, yr = 0, xsr = 0, xsa = 0, ysr = 0,
|
||||
ysa = 0;
|
||||
|
||||
ysa = 0;
|
||||
char simg = 0;
|
||||
int desk = 0;
|
||||
char sticky = 0;
|
||||
|
@ -1431,8 +1422,7 @@ Config_Button(FILE * ConfigFile)
|
|||
if (fields != 2)
|
||||
{
|
||||
RecoverUserConfig();
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
i1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -1443,7 +1433,7 @@ Config_Button(FILE * ConfigFile)
|
|||
{
|
||||
bt = CreateButton(name, ic, ac, tc, label, ontop, flags,
|
||||
minw, maxw, minh, maxh, xo, yo, xa, xr, ya,
|
||||
yr, xsr, xsa, ysr, ysa, simg, desk, sticky);
|
||||
yr, xsr, xsa, ysr, ysa, simg, desk, sticky);
|
||||
bt->default_show = show;
|
||||
bt->internal = internal;
|
||||
AddItem(bt, bt->name, 0, LIST_TYPE_BUTTON);
|
||||
|
@ -1647,8 +1637,7 @@ Config_Desktop(FILE * ConfigFile)
|
|||
if (fields != 2)
|
||||
{
|
||||
RecoverUserConfig();
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
ii1 = CONFIG_INVALID;
|
||||
}
|
||||
}
|
||||
|
@ -1893,8 +1882,7 @@ Config_ECursor(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (ii1)
|
||||
|
@ -1963,8 +1951,7 @@ Config_Iconbox(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -2061,8 +2048,7 @@ Config_ActionClass(FILE * ConfigFile)
|
|||
if (fields != 2)
|
||||
{
|
||||
RecoverUserConfig();
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -2243,7 +2229,7 @@ Config_ActionClass(FILE * ConfigFile)
|
|||
{
|
||||
action_tooltipstring = Erealloc(action_tooltipstring,
|
||||
(strlen(action_tooltipstring)
|
||||
+ strlen(atword(s, 2)) + 2));
|
||||
+ strlen(atword(s, 2)) + 2));
|
||||
action_tooltipstring = strcat(action_tooltipstring, "\n");
|
||||
action_tooltipstring =
|
||||
strcat(action_tooltipstring, atword(s, 2));
|
||||
|
@ -2281,7 +2267,7 @@ Config_ActionClass(FILE * ConfigFile)
|
|||
RecoverUserConfig();
|
||||
Alert(_
|
||||
("Warning: Configuration appears to have ended before we were\n"
|
||||
"Done loading an Action Class block. Outcome is likely not good.\n"));
|
||||
"Done loading an Action Class block. Outcome is likely not good.\n"));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -2316,8 +2302,7 @@ Config_ImageClass(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -2535,8 +2520,7 @@ Config_ColorModifier(FILE * ConfigFile)
|
|||
if (fields != 2)
|
||||
{
|
||||
RecoverUserConfig();
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -2797,8 +2781,7 @@ Config_ToolTip(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -3068,8 +3051,7 @@ Config_WindowMatch(FILE * ConfigFile)
|
|||
{
|
||||
if (fields != 2)
|
||||
{
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
switch (i1)
|
||||
|
@ -3147,7 +3129,7 @@ Config_WindowMatch(FILE * ConfigFile)
|
|||
}
|
||||
}
|
||||
Alert(_("Warning: Configuration appears to have ended before we were\n"
|
||||
"Done loading an WindowMatch block. Outcome is likely not good.\n"));
|
||||
"Done loading an WindowMatch block. Outcome is likely not good.\n"));
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -3199,9 +3181,8 @@ OpenConfigFileForReading(char *path, char preprocess)
|
|||
"Enlightenment is looking for epp here:\n"
|
||||
"%s\n"
|
||||
"This is a FATAL ERROR.\n"
|
||||
"This is probably due to either the program not existing or\n"
|
||||
"it not being able to be executed by you.\n"),
|
||||
epp_path);
|
||||
"This is probably due to either the program not existing or\n"
|
||||
"it not being able to be executed by you.\n"), epp_path);
|
||||
doExit(_("error"));
|
||||
}
|
||||
else
|
||||
|
@ -3296,7 +3277,8 @@ LoadConfigFile(char *f)
|
|||
{
|
||||
FILE *ConfigFile;
|
||||
char s[FILEPATH_LEN_MAX], s2[FILEPATH_LEN_MAX], *file,
|
||||
*ppfile;
|
||||
|
||||
*ppfile;
|
||||
int i;
|
||||
char notheme = 0;
|
||||
|
||||
|
@ -3392,8 +3374,7 @@ LoadOpenConfigFile(FILE * ConfigFile)
|
|||
if (fields != 2)
|
||||
{
|
||||
RecoverUserConfig();
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"),
|
||||
s);
|
||||
Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
|
||||
}
|
||||
}
|
||||
if (i2 == CONFIG_OPEN)
|
||||
|
@ -3427,7 +3408,7 @@ LoadOpenConfigFile(FILE * ConfigFile)
|
|||
"Enlightenment's\n"
|
||||
"it may be that you haven't upgraded "
|
||||
"Enlightenment for\n"
|
||||
"a while and this theme takes advantages of new\n"
|
||||
"a while and this theme takes advantages of new\n"
|
||||
"features in Enlightenment in new versions.\n"),
|
||||
e_cfg_ver, min_e_cfg_ver);
|
||||
RESET_ALERT;
|
||||
|
@ -3449,8 +3430,8 @@ LoadOpenConfigFile(FILE * ConfigFile)
|
|||
"be compatible.\n"
|
||||
"\n"
|
||||
"If you just upgraded to a new version of E\n"
|
||||
"Restarting with Defaults will remove your current\n"
|
||||
"user preferences and start cleanly with system\n"
|
||||
"Restarting with Defaults will remove your current\n"
|
||||
"user preferences and start cleanly with system\n"
|
||||
"defaults. You can then modify your "
|
||||
"configuration to\n"
|
||||
"your liking again safely.\n"),
|
||||
|
@ -3598,7 +3579,8 @@ FindFile(char *file)
|
|||
#ifndef __EMX__
|
||||
if (locale)
|
||||
{
|
||||
Esnprintf(s, sizeof(s), "%s/config/%s.%s", ENLIGHTENMENT_ROOT, file, locale);
|
||||
Esnprintf(s, sizeof(s), "%s/config/%s.%s", ENLIGHTENMENT_ROOT, file,
|
||||
locale);
|
||||
if (isfile(s))
|
||||
EDBUG_RETURN(duplicate(s));
|
||||
}
|
||||
|
@ -3663,7 +3645,8 @@ FindNoThemeFile(char *file)
|
|||
#ifndef __EMX__
|
||||
if (locale)
|
||||
{
|
||||
Esnprintf(s, sizeof(s), "%s/config/%s.%s", ENLIGHTENMENT_ROOT, file, locale);
|
||||
Esnprintf(s, sizeof(s), "%s/config/%s.%s", ENLIGHTENMENT_ROOT, file,
|
||||
locale);
|
||||
if (isfile(s))
|
||||
EDBUG_RETURN(duplicate(s));
|
||||
}
|
||||
|
@ -3738,7 +3721,7 @@ LoadEConfig(char *themelocation)
|
|||
"permissions or lack of disk space. It also could be that the\n"
|
||||
"config directory has been inadvertently deleted since\n"
|
||||
"installation.\n"
|
||||
"This is a serious problem and should be rectified immediately\n"
|
||||
"This is a serious problem and should be rectified immediately\n"
|
||||
"Please contact your system administrator or package "
|
||||
"maintainer.\n"
|
||||
"If you are the administrator of your own system please\n"
|
||||
|
@ -3752,8 +3735,7 @@ LoadEConfig(char *themelocation)
|
|||
{
|
||||
Progressbar *p = NULL;
|
||||
int i;
|
||||
char *config_files[] =
|
||||
{
|
||||
char *config_files[] = {
|
||||
"init.cfg",
|
||||
"control.cfg",
|
||||
"textclasses.cfg",
|
||||
|
@ -3787,9 +3769,7 @@ LoadEConfig(char *themelocation)
|
|||
CreateStartupDisplay(1);
|
||||
if ((i > 0) && (!p) && (!init_win_ext))
|
||||
{
|
||||
p =
|
||||
CreateProgressbar(_("Enlightenment Starting..."), 400,
|
||||
16);
|
||||
p = CreateProgressbar(_("Enlightenment Starting..."), 400, 16);
|
||||
if (p)
|
||||
ShowProgressbar(p);
|
||||
}
|
||||
|
@ -4218,15 +4198,14 @@ RecoverUserConfig(void)
|
|||
{
|
||||
ASSIGN_ALERT(_("Recover system config?"),
|
||||
_("Yes, Attempt recovery"),
|
||||
_("Restart and try again"),
|
||||
_("Quit and give up"));
|
||||
_("Restart and try again"), _("Quit and give up"));
|
||||
Alert(_
|
||||
("Enlightenment has encountered parsing errors in your autosaved\n"
|
||||
"configuration.\n" "\n"
|
||||
"This may be due to filing system errors, Minor bugs or"
|
||||
" unforeseen\n" "system shutdowns.\n" "\n"
|
||||
"Do you wish Enlightenment to recover its original system\n"
|
||||
"configuration and try again?\n"));
|
||||
("Enlightenment has encountered parsing errors in your autosaved\n"
|
||||
"configuration.\n" "\n"
|
||||
"This may be due to filing system errors, Minor bugs or"
|
||||
" unforeseen\n" "system shutdowns.\n" "\n"
|
||||
"Do you wish Enlightenment to recover its original system\n"
|
||||
"configuration and try again?\n"));
|
||||
RESET_ALERT;
|
||||
mode.autosave = 0;
|
||||
MapUnmap(1);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -28,10 +28,10 @@ GetUniqueBGString(Background * bg)
|
|||
char s[256];
|
||||
const char *chmap =
|
||||
#ifndef __EMX__
|
||||
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
|
||||
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
|
||||
|
||||
#else
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz€<EFBFBD>‚ƒ„…†‡ˆŠ‹Œ<EFBFBD>Ž<EFBFBD><EFBFBD>‘’“”•–—˜™<EFBFBD>-_";
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz€<EFBFBD>‚ƒ„…†‡ˆŠ‹Œ<EFBFBD>Ž<EFBFBD><EFBFBD>‘’“”•–—˜™<EFBFBD>-_";
|
||||
|
||||
/* cyrillic symbols from 866 page correctly handled instead of eng. capitals */
|
||||
#endif
|
||||
|
@ -1310,17 +1310,17 @@ InitDesktopControls()
|
|||
else if (desks.dragdir == 2)
|
||||
{
|
||||
b = CreateButton("_DESKTOP_DESKRAY_DRAG_CONTROL", ic4, ac,
|
||||
NULL, NULL, 1, FLAG_FIXED_HORIZ, 1, 99999, 1,
|
||||
NULL, NULL, 1, FLAG_FIXED_HORIZ, 1, 99999, 1,
|
||||
99999, 0, 0, desks.desk[i].x, 0,
|
||||
desks.desk[i].y, 0, 0, 0, 0, 0, 1, 0, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
b = CreateButton("_DESKTOP_DESKRAY_DRAG_CONTROL", ic4, ac,
|
||||
NULL, NULL, 1, FLAG_FIXED_HORIZ, 1, 99999, 1,
|
||||
NULL, NULL, 1, FLAG_FIXED_HORIZ, 1, 99999, 1,
|
||||
99999, 0, 0, desks.desk[i].x, 0,
|
||||
desks.desk[i].y + root.h -
|
||||
desks.dragbar_width, 0, 0, 0, 0, 0, 1, 0, 1);
|
||||
desks.dragbar_width, 0, 0, 0, 0, 0, 1, 0, 1);
|
||||
}
|
||||
AddItem(b, b->name, 2, LIST_TYPE_BUTTON);
|
||||
desks.desk[i].tag = b;
|
||||
|
|
61
src/dialog.c
61
src/dialog.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -280,7 +280,7 @@ DialogQuit(int val, void *data)
|
|||
}
|
||||
|
||||
void
|
||||
DialogAlert(char *fmt,...)
|
||||
DialogAlert(char *fmt, ...)
|
||||
{
|
||||
char text[10240];
|
||||
va_list ap;
|
||||
|
@ -293,7 +293,7 @@ DialogAlert(char *fmt,...)
|
|||
}
|
||||
|
||||
void
|
||||
DialogAlertOK(char *fmt,...)
|
||||
DialogAlertOK(char *fmt, ...)
|
||||
{
|
||||
char text[10240];
|
||||
va_list ap;
|
||||
|
@ -307,7 +307,7 @@ DialogAlertOK(char *fmt,...)
|
|||
}
|
||||
|
||||
void
|
||||
DialogSetParamText(Dialog * d, char *fmt,...)
|
||||
DialogSetParamText(Dialog * d, char *fmt, ...)
|
||||
{
|
||||
char text[10240];
|
||||
va_list ap;
|
||||
|
@ -1081,15 +1081,15 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
ImlibImage *im;
|
||||
|
||||
im =
|
||||
ELoadImage(di->item.slider.ic_border->norm.normal->
|
||||
im_file);
|
||||
ELoadImage(di->item.slider.ic_border->norm.
|
||||
normal->im_file);
|
||||
if (im)
|
||||
{
|
||||
di->item.slider.border_orig_w = im->rgb_width;
|
||||
di->item.slider.border_orig_h = im->rgb_height;
|
||||
Imlib_destroy_image(id, im);
|
||||
di->item.slider.border_win = ECreateWindow(d->win, -20,
|
||||
-20, 2, 2, 0);
|
||||
-20, 2, 2, 0);
|
||||
EMapWindow(disp, di->item.slider.border_win);
|
||||
}
|
||||
}
|
||||
|
@ -1237,7 +1237,7 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
if ((cols > 0) && (rows > 0))
|
||||
{
|
||||
int i, *col_size, *row_size = NULL, r = 0,
|
||||
c = 0, x = 0, y = 0;
|
||||
c = 0, x = 0, y = 0;
|
||||
|
||||
col_size = Emalloc(sizeof(int) * cols);
|
||||
row_size = Erealloc(row_size, sizeof(int));
|
||||
|
@ -1353,26 +1353,28 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
dii->w, dii->h);
|
||||
if (dii->type == DITEM_CHECKBUTTON)
|
||||
EMoveResizeWindow(disp,
|
||||
dii->item.check_button.check_win,
|
||||
dii->item.check_button.check_win,
|
||||
dii->x, dii->y +
|
||||
((dii->h -
|
||||
dii->item.check_button.
|
||||
check_orig_h) / 2),
|
||||
dii->item.check_button.
|
||||
check_orig_w,
|
||||
dii->item.check_button.
|
||||
check_orig_h);
|
||||
dii->item.
|
||||
check_button.check_orig_h) /
|
||||
2),
|
||||
dii->item.
|
||||
check_button.check_orig_w,
|
||||
dii->item.
|
||||
check_button.check_orig_h);
|
||||
if (dii->type == DITEM_RADIOBUTTON)
|
||||
EMoveResizeWindow(disp,
|
||||
dii->item.radio_button.radio_win,
|
||||
dii->item.radio_button.radio_win,
|
||||
dii->x, dii->y +
|
||||
((dii->h -
|
||||
dii->item.radio_button.
|
||||
radio_orig_h) / 2),
|
||||
dii->item.radio_button.
|
||||
radio_orig_w,
|
||||
dii->item.radio_button.
|
||||
radio_orig_h);
|
||||
dii->item.
|
||||
radio_button.radio_orig_h) /
|
||||
2),
|
||||
dii->item.
|
||||
radio_button.radio_orig_w,
|
||||
dii->item.
|
||||
radio_button.radio_orig_h);
|
||||
if (dii->type == DITEM_AREA)
|
||||
{
|
||||
dii->item.area.w = dii->w -
|
||||
|
@ -1412,7 +1414,7 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
dii->item.slider.base_h);
|
||||
if (dii->item.slider.border_win)
|
||||
EMoveResizeWindow(disp,
|
||||
dii->item.slider.border_win,
|
||||
dii->item.slider.border_win,
|
||||
dii->x +
|
||||
dii->item.slider.border_x,
|
||||
dii->y +
|
||||
|
@ -1426,7 +1428,7 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
dii->y +
|
||||
dii->item.slider.numeric_y,
|
||||
dii->item.slider.numeric_w,
|
||||
dii->item.slider.numeric_h);
|
||||
dii->item.slider.numeric_h);
|
||||
}
|
||||
}
|
||||
x += sw;
|
||||
|
@ -1638,11 +1640,11 @@ DialogDrawItems(Dialog * d, DItem * di, int x, int y, int w, int h)
|
|||
if (di->item.check_button.onoff)
|
||||
IclassApply(di->iclass, di->item.check_button.check_win,
|
||||
di->item.check_button.check_orig_w,
|
||||
di->item.check_button.check_orig_h, 1, 0, state, 0);
|
||||
di->item.check_button.check_orig_h, 1, 0, state, 0);
|
||||
else
|
||||
IclassApply(di->iclass, di->item.check_button.check_win,
|
||||
di->item.check_button.check_orig_w,
|
||||
di->item.check_button.check_orig_h, 0, 0, state, 0);
|
||||
di->item.check_button.check_orig_h, 0, 0, state, 0);
|
||||
XClearArea(disp, d->win, di->x, di->y, di->w, di->h, False);
|
||||
TextDraw(di->tclass, d->win, 0, 0, STATE_NORMAL,
|
||||
di->item.check_button.text,
|
||||
|
@ -1679,11 +1681,11 @@ DialogDrawItems(Dialog * d, DItem * di, int x, int y, int w, int h)
|
|||
if (di->item.radio_button.onoff)
|
||||
IclassApply(di->iclass, di->item.radio_button.radio_win,
|
||||
di->item.radio_button.radio_orig_w,
|
||||
di->item.radio_button.radio_orig_h, 1, 0, state, 0);
|
||||
di->item.radio_button.radio_orig_h, 1, 0, state, 0);
|
||||
else
|
||||
IclassApply(di->iclass, di->item.radio_button.radio_win,
|
||||
di->item.radio_button.radio_orig_w,
|
||||
di->item.radio_button.radio_orig_w, 0, 0, state, 0);
|
||||
di->item.radio_button.radio_orig_w, 0, 0, state, 0);
|
||||
XClearArea(disp, d->win, di->x, di->y, di->w, di->h, False);
|
||||
TextDraw(di->tclass, d->win, 0, 0, STATE_NORMAL,
|
||||
di->item.radio_button.text,
|
||||
|
@ -1882,8 +1884,7 @@ DialogItemAreaSetSize(DItem * di, int w, int h)
|
|||
di->item.area.h = h;
|
||||
}
|
||||
|
||||
Window
|
||||
DialogItemAreaGetWindow(DItem * di)
|
||||
Window DialogItemAreaGetWindow(DItem * di)
|
||||
{
|
||||
return di->item.area.area_win;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
14
src/draw.c
14
src/draw.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -98,7 +98,7 @@ HandleDrawQueue()
|
|||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if ((lst[i]->d == dq->d) && (dq->d->item) &&
|
||||
/*(dq->d->item == dq->di) && */ (lst[i]->di == dq->di))
|
||||
/*(dq->d->item == dq->di) && */ (lst[i]->di == dq->di))
|
||||
{
|
||||
if (dq->x < lst[i]->x)
|
||||
{
|
||||
|
@ -200,7 +200,7 @@ HandleDrawQueue()
|
|||
else if (lst[i]->iclass)
|
||||
{
|
||||
IclassApply(lst[i]->iclass, lst[i]->win, lst[i]->w, lst[i]->h,
|
||||
lst[i]->active, lst[i]->sticky, lst[i]->state, 0);
|
||||
lst[i]->active, lst[i]->sticky, lst[i]->state, 0);
|
||||
/* printf("I %x\n", lst[i]->win); */
|
||||
}
|
||||
else if (lst[i]->pager)
|
||||
|
@ -582,7 +582,7 @@ EBlendPixImg(EWin * ewin, PixImg * s1, PixImg * s2, PixImg * dst, int x, int y,
|
|||
13))) +
|
||||
(p1 & p2 &
|
||||
((0x1 << 11) | (0x1 << 5) | (0x1) |
|
||||
(0x1 << 27) | (0x1 << 21) | (0x1 << 16)));
|
||||
(0x1 << 27) | (0x1 << 21) | (0x1 << 16)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -604,7 +604,7 @@ EBlendPixImg(EWin * ewin, PixImg * s1, PixImg * s2, PixImg * dst, int x, int y,
|
|||
13))) +
|
||||
(p1 & p2 &
|
||||
((0x1 << 11) | (0x1 << 5) | (0x1) |
|
||||
(0x1 << 27) | (0x1 << 21) | (0x1 << 16)));
|
||||
(0x1 << 27) | (0x1 << 21) | (0x1 << 16)));
|
||||
}
|
||||
{
|
||||
unsigned short *pptr1, *pptr2, *pptr3;
|
||||
|
@ -663,7 +663,7 @@ EBlendPixImg(EWin * ewin, PixImg * s1, PixImg * s2, PixImg * dst, int x, int y,
|
|||
13))) +
|
||||
(p1 & p2 &
|
||||
((0x1 << 10) | (0x1 << 5) | (0x1) |
|
||||
(0x1 << 26) | (0x1 << 20) | (0x1 << 16)));
|
||||
(0x1 << 26) | (0x1 << 20) | (0x1 << 16)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -685,7 +685,7 @@ EBlendPixImg(EWin * ewin, PixImg * s1, PixImg * s2, PixImg * dst, int x, int y,
|
|||
13))) +
|
||||
(p1 & p2 &
|
||||
((0x1 << 10) | (0x1 << 5) | (0x1) |
|
||||
(0x1 << 26) | (0x1 << 20) | (0x1 << 16)));
|
||||
(0x1 << 26) | (0x1 << 20) | (0x1 << 16)));
|
||||
}
|
||||
{
|
||||
unsigned short *pptr1, *pptr2, *pptr3;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -29,8 +29,7 @@
|
|||
char throw_move_events_away = 0;
|
||||
void DeskAccountTimeout(int val, void *data);
|
||||
|
||||
HandleStruct HArray[] =
|
||||
{
|
||||
HandleStruct HArray[] = {
|
||||
{DefaultFunc},
|
||||
{DefaultFunc},
|
||||
{HKeyPress},
|
||||
|
@ -347,8 +346,7 @@ WaitEvent()
|
|||
/* XEvent ev; */
|
||||
fd_set fdset;
|
||||
struct timeval tval;
|
||||
static struct timeval tval_last =
|
||||
{0, 0};
|
||||
static struct timeval tval_last = { 0, 0 };
|
||||
double time1, time2;
|
||||
Qentry *qe;
|
||||
int count, pcount;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -43,11 +43,11 @@
|
|||
|
||||
static ToolTip *ttip = NULL;
|
||||
struct _mdata
|
||||
{
|
||||
Menu *m;
|
||||
MenuItem *mi;
|
||||
EWin *ewin;
|
||||
};
|
||||
{
|
||||
Menu *m;
|
||||
MenuItem *mi;
|
||||
EWin *ewin;
|
||||
};
|
||||
|
||||
static void ToolTipTimeout(int val, void *data);
|
||||
static void SubmenuShowTimeout(int val, void *dat);
|
||||
|
@ -480,7 +480,7 @@ HandleMotion(XEvent * ev)
|
|||
if ((ndx != dx) &&
|
||||
(((gwins[i]->x == 0) &&
|
||||
(!(IN_RANGE
|
||||
(gwins[i]->reqx, gwins[i]->x, screen_snap_dist))))
|
||||
(gwins[i]->reqx, gwins[i]->x, screen_snap_dist))))
|
||||
|| ((gwins[i]->x == (root.w - gwins[i]->w))
|
||||
&&
|
||||
(!(IN_RANGE
|
||||
|
@ -494,8 +494,7 @@ HandleMotion(XEvent * ev)
|
|||
(gwins
|
||||
[i]->reqx,
|
||||
gwins[i]->x,
|
||||
mode.
|
||||
edge_snap_dist)))))))
|
||||
mode.edge_snap_dist)))))))
|
||||
{
|
||||
jumpx = 1;
|
||||
ndx = gwins[i]->reqx - gwins[i]->x + dx;
|
||||
|
@ -504,7 +503,7 @@ HandleMotion(XEvent * ev)
|
|||
if ((ndy != dy) &&
|
||||
(((gwins[i]->y == 0) &&
|
||||
(!(IN_RANGE
|
||||
(gwins[i]->reqy, gwins[i]->y, screen_snap_dist))))
|
||||
(gwins[i]->reqy, gwins[i]->y, screen_snap_dist))))
|
||||
|| ((gwins[i]->y == (root.h - gwins[i]->h))
|
||||
&&
|
||||
(!(IN_RANGE
|
||||
|
@ -518,8 +517,7 @@ HandleMotion(XEvent * ev)
|
|||
(gwins
|
||||
[i]->reqy,
|
||||
gwins[i]->y,
|
||||
mode.
|
||||
edge_snap_dist)))))))
|
||||
mode.edge_snap_dist)))))))
|
||||
{
|
||||
jumpy = 1;
|
||||
ndy = gwins[i]->reqy - gwins[i]->y + dy;
|
||||
|
@ -982,8 +980,8 @@ HandleMotion(XEvent * ev)
|
|||
{
|
||||
di->item.slider.wanted_val += dy;
|
||||
di->item.slider.val = di->item.slider.lower +
|
||||
((((di->
|
||||
item.slider.base_h - di->item.slider.knob_h -
|
||||
((((di->item.
|
||||
slider.base_h - di->item.slider.knob_h -
|
||||
di->item.slider.wanted_val) *
|
||||
(di->item.slider.upper -
|
||||
di->item.slider.lower)) /
|
||||
|
@ -1920,8 +1918,7 @@ HandleMouseDown(XEvent * ev)
|
|||
if ((ewin) && (!ewin->pager))
|
||||
{
|
||||
Window dw;
|
||||
int wx, wy, ww, wh, ax, ay, cx, cy,
|
||||
px, py;
|
||||
int wx, wy, ww, wh, ax, ay, cx, cy, px, py;
|
||||
|
||||
PagerHideHi(p);
|
||||
pwin_px = ewin->x;
|
||||
|
@ -2394,15 +2391,15 @@ HandleMouseUp(XEvent * ev)
|
|||
((ew->desktop == desks.current) || (ew->sticky)))
|
||||
{
|
||||
if (
|
||||
(ev->xbutton.x_root >=
|
||||
(ew->x + ew->border->border.left))
|
||||
&& (ev->xbutton.x_root <
|
||||
(ew->x + ew->w - ew->border->border.right))
|
||||
&& (ev->xbutton.y_root >=
|
||||
(ew->y + ew->border->border.top))
|
||||
&& (ev->xbutton.y_root <
|
||||
(ew->y + ew->h -
|
||||
ew->border->border.bottom)))
|
||||
(ev->xbutton.x_root >=
|
||||
(ew->x + ew->border->border.left))
|
||||
&& (ev->xbutton.x_root <
|
||||
(ew->x + ew->w - ew->border->border.right))
|
||||
&& (ev->xbutton.y_root >=
|
||||
(ew->y + ew->border->border.top))
|
||||
&& (ev->xbutton.y_root <
|
||||
(ew->y + ew->h -
|
||||
ew->border->border.bottom)))
|
||||
{
|
||||
ewin = ew;
|
||||
i = desks.desk[desks.current].num;
|
||||
|
@ -2413,8 +2410,7 @@ HandleMouseUp(XEvent * ev)
|
|||
if ((ewin) && (ewin->pager))
|
||||
{
|
||||
Pager *pp;
|
||||
int w, h, x, y, ax, ay, cx, cy, px,
|
||||
py;
|
||||
int w, h, x, y, ax, ay, cx, cy, px, py;
|
||||
int wx, wy, base_x = 0, base_y = 0;
|
||||
Window dw;
|
||||
|
||||
|
@ -2501,20 +2497,21 @@ HandleMouseUp(XEvent * ev)
|
|||
if (ewin->ibox)
|
||||
{
|
||||
if (ewin->ibox->animate)
|
||||
IB_Animate(1, gwins[i], ewin->ibox->ewin);
|
||||
IB_Animate(1, gwins[i],
|
||||
ewin->ibox->ewin);
|
||||
UpdateAppIcon(gwins[i],
|
||||
ewin->ibox->icon_mode);
|
||||
}
|
||||
HideEwin(gwins[i]);
|
||||
MoveEwin(gwins[i], gwin_px[i] +
|
||||
((desks.desk
|
||||
[gwins[i]->desktop].
|
||||
current_area_x) -
|
||||
[gwins[i]->
|
||||
desktop].current_area_x) -
|
||||
p->hi_ewin->area_x) * root.w,
|
||||
gwin_py[i] +
|
||||
((desks.
|
||||
desk[gwins[i]->desktop].
|
||||
current_area_y) -
|
||||
((desks.desk
|
||||
[gwins[i]->
|
||||
desktop].current_area_y) -
|
||||
p->hi_ewin->area_y) * root.h);
|
||||
if (was_shaded != gwins[i]->shaded)
|
||||
InstantShadeEwin(gwins[i]);
|
||||
|
@ -2526,7 +2523,7 @@ HandleMouseUp(XEvent * ev)
|
|||
else
|
||||
{
|
||||
int ndesk, nx, ny, base_x = 0, base_y =
|
||||
0, ax, ay;
|
||||
0, ax, ay;
|
||||
|
||||
ndesk = desks.current;
|
||||
nx = (int)ev->xbutton.x_root -
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -54,8 +54,7 @@ Etmp(char *s)
|
|||
n_calls = (unsigned long)time(NULL) + (unsigned long)getpid();
|
||||
Esnprintf(s, 1024, "%s/TMP_%Xl", UserEDir(), n_calls);
|
||||
n_calls++;
|
||||
EDBUG_RETURN_
|
||||
}
|
||||
EDBUG_RETURN_}
|
||||
|
||||
void
|
||||
md(char *s)
|
||||
|
@ -263,8 +262,7 @@ cp(char *s, char *ss)
|
|||
EDBUG_RETURN_;
|
||||
}
|
||||
|
||||
time_t
|
||||
moddate(char *s)
|
||||
time_t moddate(char *s)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
10
src/focus.c
10
src/focus.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -75,8 +75,8 @@ GetNextFocusEwin(void)
|
|||
if (((ewin->sticky) || (ewin->desktop == desks.current)) &&
|
||||
((ewin->area_x == ax) && (ewin->area_y == ay)) &&
|
||||
(!ewin->skipfocus) && (!ewin->shaded) &&
|
||||
(!ewin->menu) && (!ewin->pager) && (!ewin->ibox) && (!ewin->iconified) /*&& (ewin->client.mwm_decor_title) &&
|
||||
* (ewin->client.mwm_decor_border) */
|
||||
(!ewin->menu) && (!ewin->pager) && (!ewin->ibox) && (!ewin->iconified) /*&& (ewin->client.mwm_decor_title) &&
|
||||
* (ewin->client.mwm_decor_border) */
|
||||
)
|
||||
{
|
||||
num++;
|
||||
|
@ -146,8 +146,8 @@ GetPrevFocusEwin(void)
|
|||
if (((ewin->sticky) || (ewin->desktop == desks.current)) &&
|
||||
((ewin->area_x == ax) && (ewin->area_y == ay)) &&
|
||||
(!ewin->skipfocus) && (!ewin->shaded) &&
|
||||
(!ewin->menu) && (!ewin->pager) && (!ewin->ibox) && (!ewin->iconified) /*&& (ewin->client.mwm_decor_title) &&
|
||||
* (ewin->client.mwm_decor_border) */
|
||||
(!ewin->menu) && (!ewin->pager) && (!ewin->ibox) && (!ewin->iconified) /*&& (ewin->client.mwm_decor_title) &&
|
||||
* (ewin->client.mwm_decor_border) */
|
||||
)
|
||||
{
|
||||
num++;
|
||||
|
|
101
src/fx.c
101
src/fx.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -27,15 +27,15 @@
|
|||
#endif
|
||||
|
||||
typedef struct _fxhandler
|
||||
{
|
||||
char *name;
|
||||
void (*init_func) (char *name);
|
||||
void (*desk_func) (void);
|
||||
void (*quit_func) (void);
|
||||
void (*pause_func) (void);
|
||||
char in_use;
|
||||
char paused;
|
||||
}
|
||||
{
|
||||
char *name;
|
||||
void (*init_func) (char *name);
|
||||
void (*desk_func) (void);
|
||||
void (*quit_func) (void);
|
||||
void (*pause_func) (void);
|
||||
char in_use;
|
||||
char paused;
|
||||
}
|
||||
FXHandler;
|
||||
|
||||
void FX_Ripple_Init(char *name);
|
||||
|
@ -56,13 +56,12 @@ void FX_ImageSpinner_Quit(void);
|
|||
void FX_ImageSpinner_Pause(void);
|
||||
|
||||
static int num_fx_handlers = 4;
|
||||
static FXHandler fx_handlers[] =
|
||||
{
|
||||
static FXHandler fx_handlers[] = {
|
||||
{"ripples",
|
||||
FX_Ripple_Init, FX_Ripple_Desk, FX_Ripple_Quit, FX_Ripple_Pause,
|
||||
0, 0},
|
||||
{"raindrops",
|
||||
FX_Raindrops_Init, FX_Raindrops_Desk, FX_Raindrops_Quit, FX_Raindrops_Pause,
|
||||
FX_Raindrops_Init, FX_Raindrops_Desk, FX_Raindrops_Quit, FX_Raindrops_Pause,
|
||||
0, 0},
|
||||
{"waves",
|
||||
FX_Waves_Init, FX_Waves_Desk, FX_Waves_Quit, FX_Waves_Pause,
|
||||
|
@ -255,12 +254,12 @@ FX_ripple_timeout(int val, void *data)
|
|||
_("\n"
|
||||
"You have just started the Ripples Effect.\n"
|
||||
"\n"
|
||||
"If you look closely on your desktop background, and if it\n"
|
||||
"doesn't have a solid colour (i.e. has a background texture or\n"
|
||||
"image), you will see a pool of water at the bottom of your\n"
|
||||
"screen that reflects everything above it and \"ripples\".\n"
|
||||
"If you look closely on your desktop background, and if it\n"
|
||||
"doesn't have a solid colour (i.e. has a background texture or\n"
|
||||
"image), you will see a pool of water at the bottom of your\n"
|
||||
"screen that reflects everything above it and \"ripples\".\n"
|
||||
"\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"it off.\n"));
|
||||
before = 1;
|
||||
}
|
||||
|
@ -358,11 +357,11 @@ static PixImg *fx_raindrops_draw = NULL;
|
|||
void FX_raindrops_timeout(int val, void *data);
|
||||
|
||||
typedef struct _drop_context
|
||||
{
|
||||
int x, y;
|
||||
int count;
|
||||
PixImg *buf;
|
||||
}
|
||||
{
|
||||
int x, y;
|
||||
int count;
|
||||
PixImg *buf;
|
||||
}
|
||||
DropContext;
|
||||
|
||||
static DropContext fx_raindrops[4];
|
||||
|
@ -386,37 +385,35 @@ FX_raindrops_timeout(int val, void *data)
|
|||
{
|
||||
DIALOG_OK(_("Unable to display raindrops"),
|
||||
_("\n"
|
||||
"Enlightenment is unable to display raindrops on this\n"
|
||||
"display because Shared memory is not available on this\n"
|
||||
"Enlightenment is unable to display raindrops on this\n"
|
||||
"display because Shared memory is not available on this\n"
|
||||
"X-Server.\n"
|
||||
"\n"
|
||||
"This may be due to Enlightenment being a remote client\n"
|
||||
"running over the network, a MIT-SHM incapable X-server,\n"
|
||||
"This may be due to Enlightenment being a remote client\n"
|
||||
"running over the network, a MIT-SHM incapable X-server,\n"
|
||||
"having run out of SHM ID's on the system or Shared\n"
|
||||
"Memory support being turned off in Imlib\n"
|
||||
"\n"
|
||||
"You may correct this by either running `imlib_config'\n"
|
||||
"or copying the system imrc (/usr/etc/imrc) to ~/.imrc\n"
|
||||
"and editing it, enabling shared memory.\n"
|
||||
"\n"));
|
||||
"You may correct this by either running `imlib_config'\n"
|
||||
"or copying the system imrc (/usr/etc/imrc) to ~/.imrc\n"
|
||||
"and editing it, enabling shared memory.\n" "\n"));
|
||||
return;
|
||||
}
|
||||
if (!id->x.shmp)
|
||||
{
|
||||
DIALOG_OK(_("Unable to display raindrops"),
|
||||
_("\n"
|
||||
"Enlightenment is unable to display raindrops on this\n"
|
||||
"display because shared pixmaps are not available on this\n"
|
||||
"Enlightenment is unable to display raindrops on this\n"
|
||||
"display because shared pixmaps are not available on this\n"
|
||||
"X-Server.\n"
|
||||
"\n"
|
||||
"This may be due to either the X-Server not implementing\n"
|
||||
"shared pixmaps, or shared pixmaps being disabled in\n"
|
||||
"This may be due to either the X-Server not implementing\n"
|
||||
"shared pixmaps, or shared pixmaps being disabled in\n"
|
||||
"Imlib's configuration.\n"
|
||||
"\n"
|
||||
"You may correct this by either running `imlib_config'\n"
|
||||
"or copying the system imrc (/usr/etc/imrc) to ~/.imrc\n"
|
||||
"and editing it, enabling shared pixmaps.\n"
|
||||
"\n"));
|
||||
"You may correct this by either running `imlib_config'\n"
|
||||
"or copying the system imrc (/usr/etc/imrc) to ~/.imrc\n"
|
||||
"and editing it, enabling shared pixmaps.\n" "\n"));
|
||||
return;
|
||||
}
|
||||
if (!before)
|
||||
|
@ -424,12 +421,12 @@ FX_raindrops_timeout(int val, void *data)
|
|||
_("\n"
|
||||
"You have just started the Raindrops Effect.\n"
|
||||
"\n"
|
||||
"If you look closely on your desktop background, and if it\n"
|
||||
"doesn't have a solid colour (i.e. has a background texture or\n"
|
||||
"image), you will see \"raindrops\" hit the background and\n"
|
||||
"make little splashes. This Effect can be VERY CPU intensive.\n"
|
||||
"If you look closely on your desktop background, and if it\n"
|
||||
"doesn't have a solid colour (i.e. has a background texture or\n"
|
||||
"image), you will see \"raindrops\" hit the background and\n"
|
||||
"make little splashes. This Effect can be VERY CPU intensive.\n"
|
||||
"\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"it off.\n"));
|
||||
before = 1;
|
||||
if (first)
|
||||
|
@ -515,7 +512,7 @@ FX_raindrops_timeout(int val, void *data)
|
|||
fx_raindrops[j].y + fx_raindrop_size))
|
||||
||
|
||||
((fx_raindrops
|
||||
[i].x + fx_raindrop_size >= fx_raindrops[j].x)
|
||||
[i].x + fx_raindrop_size >= fx_raindrops[j].x)
|
||||
&& (fx_raindrops[i].x + fx_raindrop_size <
|
||||
fx_raindrops[j].x + fx_raindrop_size)
|
||||
&& (fx_raindrops[i].y >= fx_raindrops[j].y)
|
||||
|
@ -530,7 +527,7 @@ FX_raindrops_timeout(int val, void *data)
|
|||
fx_raindrops[j].y + fx_raindrop_size))
|
||||
||
|
||||
((fx_raindrops
|
||||
[i].x + fx_raindrop_size >= fx_raindrops[j].x)
|
||||
[i].x + fx_raindrop_size >= fx_raindrops[j].x)
|
||||
&& (fx_raindrops[i].x + fx_raindrop_size <
|
||||
fx_raindrops[j].x + fx_raindrop_size)
|
||||
&& (fx_raindrops[i].y + fx_raindrop_size >=
|
||||
|
@ -719,12 +716,12 @@ FX_Wave_timeout(int val, void *data)
|
|||
_("\n"
|
||||
"You have just started the Waves Effect.\n"
|
||||
"\n"
|
||||
"If you look closely on your desktop background, and if it\n"
|
||||
"doesn't have a solid colour (i.e. has a background texture or\n"
|
||||
"image), you will see a pool of water at the bottom of your\n"
|
||||
"screen that reflects everything above it and \"waves\".\n"
|
||||
"If you look closely on your desktop background, and if it\n"
|
||||
"doesn't have a solid colour (i.e. has a background texture or\n"
|
||||
"image), you will see a pool of water at the bottom of your\n"
|
||||
"screen that reflects everything above it and \"waves\".\n"
|
||||
"\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"it off.\n"));
|
||||
before = 1;
|
||||
}
|
||||
|
@ -885,7 +882,7 @@ FX_imagespinner_timeout(int val, void *data)
|
|||
_("\n"
|
||||
"You have just started the imagespinners Effect.\n"
|
||||
"\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"To disable this effect just select this option again to toggle\n"
|
||||
"it off.\n"));
|
||||
before = 1;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
17
src/gnome.c
17
src/gnome.c
|
@ -1,6 +1,6 @@
|
|||
|
||||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -128,12 +128,12 @@
|
|||
|
||||
/* Preferences for behavior for app */
|
||||
/* ONLY the client sets this */
|
||||
#define WIN_HINTS_SKIP_FOCUS (1<<0) /* "alt-tab" skips this win */
|
||||
#define WIN_HINTS_SKIP_WINLIST (1<<1) /* not in win list */
|
||||
#define WIN_HINTS_SKIP_TASKBAR (1<<2) /* not on taskbar */
|
||||
#define WIN_HINTS_GROUP_TRANSIENT (1<<3) /* ??????? */
|
||||
#define WIN_HINTS_FOCUS_ON_CLICK (1<<4) /* app only accepts focus when clicked */
|
||||
#define WIN_HINTS_DO_NOT_COVER (1<<5) /* attempt to not cover this window */
|
||||
#define WIN_HINTS_SKIP_FOCUS (1<<0) /* "alt-tab" skips this win */
|
||||
#define WIN_HINTS_SKIP_WINLIST (1<<1) /* not in win list */
|
||||
#define WIN_HINTS_SKIP_TASKBAR (1<<2) /* not on taskbar */
|
||||
#define WIN_HINTS_GROUP_TRANSIENT (1<<3) /* ??????? */
|
||||
#define WIN_HINTS_FOCUS_ON_CLICK (1<<4) /* app only accepts focus when clicked */
|
||||
#define WIN_HINTS_DO_NOT_COVER (1<<5) /* attempt to not cover this window */
|
||||
#define XA_WIN_HINTS "_WIN_HINTS"
|
||||
/* WIN_HINTS = CARD32 */
|
||||
|
||||
|
@ -720,8 +720,7 @@ GNOME_SetWMNameVer(void)
|
|||
void
|
||||
GNOME_DelHints(EWin * ewin)
|
||||
{
|
||||
static Atom atom_get[7] =
|
||||
{0, 0, 0, 0, 0, 0, 0};
|
||||
static Atom atom_get[7] = { 0, 0, 0, 0, 0, 0, 0 };
|
||||
|
||||
EDBUG(6, "GNOME_DelHints");
|
||||
if (!atom_get[0])
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
10
src/groups.c
10
src/groups.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -253,7 +253,7 @@ RemoveEwinFromGroup(EWin * ewin, Group * g)
|
|||
root.h)
|
||||
y = root.h - ewin->border->border.top - 1;
|
||||
else if ((ewin->y + ewin->h -
|
||||
ewin->border->border.bottom - 1) < 0)
|
||||
ewin->border->border.bottom - 1) < 0)
|
||||
y =
|
||||
0 - ewin->h +
|
||||
ewin->border->border.bottom + 1;
|
||||
|
@ -602,9 +602,9 @@ ChooseGroupDialog(EWin * ewin, char *message, char group_select, int action)
|
|||
{
|
||||
DIALOG_OK(_("Window Group Error"),
|
||||
_
|
||||
("\n This window currently does not belong to any groups. \n"
|
||||
" You can only destroy groups or remove windows from groups \n"
|
||||
" through a window that actually belongs to at least one group.\n\n"));
|
||||
("\n This window currently does not belong to any groups. \n"
|
||||
" You can only destroy groups or remove windows from groups \n"
|
||||
" through a window that actually belongs to at least one group.\n\n"));
|
||||
return;
|
||||
}
|
||||
if ((num_groups == 0) && (group_select == GROUP_SELECT_ALL_EXCEPT_EWIN))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -59,10 +59,10 @@ HandleSigIll(int num)
|
|||
DialogAlert(_("Enlightenment performed an Illegal Instruction.\n"
|
||||
"\n"
|
||||
"This most likely is due to you having installed an run a\n"
|
||||
"binary of Enlightenment that was compiled for a make or model\n"
|
||||
"of CPU not 100%% identical or compatible with yours. Please\n"
|
||||
"binary of Enlightenment that was compiled for a make or model\n"
|
||||
"of CPU not 100%% identical or compatible with yours. Please\n"
|
||||
"either obtain the correct package for your system, or\n"
|
||||
"re-compile Enlightenment and possibly any support libraries\n"
|
||||
"re-compile Enlightenment and possibly any support libraries\n"
|
||||
"that you got in binary format to run Enlightenment.\n"));
|
||||
doExit("error");
|
||||
EDBUG_RETURN_;
|
||||
|
@ -86,13 +86,13 @@ HandleSigFpe(int num)
|
|||
UngrabX();
|
||||
DialogAlert(_("Enlightenment caused a Floating Point Exception.\n"
|
||||
"\n"
|
||||
"This means that Enlightenment or support library routines it calls\n"
|
||||
"have performed an illegal mathematical operation (most likely\n"
|
||||
"dividing a number by zero). This is most likely a bug. It is\n"
|
||||
"recommended to restart now. If you wish to help fix this please\n"
|
||||
"This means that Enlightenment or support library routines it calls\n"
|
||||
"have performed an illegal mathematical operation (most likely\n"
|
||||
"dividing a number by zero). This is most likely a bug. It is\n"
|
||||
"recommended to restart now. If you wish to help fix this please\n"
|
||||
"compile Enlightenment with debugging symbols in and run\n"
|
||||
"Enlightenment under gdb so you can backtrace for where it died and\n"
|
||||
"send in a useful bug report with backtrace information and variable\n"
|
||||
"Enlightenment under gdb so you can backtrace for where it died and\n"
|
||||
"send in a useful bug report with backtrace information and variable\n"
|
||||
"dumps etc.\n"));
|
||||
doExit("error");
|
||||
EDBUG_RETURN_;
|
||||
|
@ -111,12 +111,12 @@ HandleSigSegv(int num)
|
|||
UngrabX();
|
||||
DialogAlert(_("Enlightenment caused Segment Violation (Segfault)\n"
|
||||
"\n"
|
||||
"This means that Enlightenment or support library routines it calls\n"
|
||||
"have accessed areas of your system's memory that they are not\n"
|
||||
"allowed access to. This is most likely a bug. It is recommended to\n"
|
||||
"This means that Enlightenment or support library routines it calls\n"
|
||||
"have accessed areas of your system's memory that they are not\n"
|
||||
"allowed access to. This is most likely a bug. It is recommended to\n"
|
||||
"restart now. If you wish to help fix this please compile\n"
|
||||
"Enlightenment with debugging symbols in and run Enlightenment\n"
|
||||
"under gdb so you can backtrace for where it died and send in a\n"
|
||||
"Enlightenment with debugging symbols in and run Enlightenment\n"
|
||||
"under gdb so you can backtrace for where it died and send in a\n"
|
||||
"useful bug report with backtrace information and variable\n"
|
||||
"dumps etc.\n"));
|
||||
abort();
|
||||
|
@ -195,7 +195,7 @@ HandleSigBus(int num)
|
|||
UngrabX();
|
||||
DialogAlert(_("Enlightenment caused Bus Error.\n"
|
||||
"\n"
|
||||
"It is suggested you check your hardware and OS installation.\n"
|
||||
"It is suggested you check your hardware and OS installation.\n"
|
||||
"It is highly unusual to cause Bus Errors on operational\n"
|
||||
"hardware.\n"));
|
||||
EDBUG_RETURN_;
|
||||
|
@ -213,15 +213,14 @@ EHandleXError(Display * d, XErrorEvent * ev)
|
|||
if ((!no_overwrite) && (mode.xselect))
|
||||
{
|
||||
ASSIGN_ALERT(_("Another Window Manager is already running"),
|
||||
_("OK (edit file)"),
|
||||
"", _("Cancel (do NOT edit)"));
|
||||
_("OK (edit file)"), "", _("Cancel (do NOT edit)"));
|
||||
Alert(_("Another Window Manager is already running.\n"
|
||||
"\n"
|
||||
"You will have to quit your current Window Manager first before\n"
|
||||
"You will have to quit your current Window Manager first before\n"
|
||||
"you can successfully run Enlightenment.\n"
|
||||
"\n"
|
||||
"If you haven't edited your user start-up files, Enlightenment\n"
|
||||
"can do that now for you, so when you log in again after\n"
|
||||
"If you haven't edited your user start-up files, Enlightenment\n"
|
||||
"can do that now for you, so when you log in again after\n"
|
||||
"quitting your current window manager, you will have\n"
|
||||
"Enlightenment running.\n"
|
||||
"\n"
|
||||
|
@ -230,14 +229,13 @@ EHandleXError(Display * d, XErrorEvent * ev)
|
|||
"\n"
|
||||
"WARNING WARNING WARNING WARNING!\n"
|
||||
"\n"
|
||||
"It is possible that this MAY not properly edit your files.\n"));
|
||||
"It is possible that this MAY not properly edit your files.\n"));
|
||||
ASSIGN_ALERT(_("Are you sure?"),
|
||||
_("YES (edit file)"),
|
||||
"", _("NO (do not edit)"));
|
||||
_("YES (edit file)"), "", _("NO (do not edit)"));
|
||||
Alert(_
|
||||
("Are you absolutely sure you want to have Enlightenment\n"
|
||||
"edit your start-up files for you?\n" "\n"
|
||||
"If your start-up files are highly customised this may not\n"
|
||||
"If your start-up files are highly customised this may not\n"
|
||||
"work.\n" "\n" "Are you ABSOLUTELY sure?\n"));
|
||||
RESET_ALERT;
|
||||
AddE();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -32,7 +32,7 @@ IB_Animate(char iconify, EWin * from, EWin * to)
|
|||
{
|
||||
double t1, t2, t, i, spd, ii;
|
||||
int x, y, x1, y1, x2, y2, x3, y3, x4, y4, w, h, fx, fy,
|
||||
fw, fh, dx, dy, dw, dh;
|
||||
fw, fh, dx, dy, dw, dh;
|
||||
GC gc;
|
||||
XGCValues gcv;
|
||||
|
||||
|
@ -2118,9 +2118,9 @@ RedrawIconbox(Iconbox * ib)
|
|||
EMoveResizeWindow(disp, ib->icon_win,
|
||||
0, 0, ib->w - ib->scroll_thickness, ib->h);
|
||||
if (
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_VERTICAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_VERTICAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
{
|
||||
EMoveResizeWindow(disp, ib->cover_win,
|
||||
0, 0, ib->w - ib->scroll_thickness, ib->h);
|
||||
|
@ -2140,9 +2140,9 @@ RedrawIconbox(Iconbox * ib)
|
|||
ib->scroll_thickness, 0,
|
||||
ib->w - ib->scroll_thickness, ib->h);
|
||||
if (
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_VERTICAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_VERTICAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
{
|
||||
EMoveResizeWindow(disp, ib->cover_win,
|
||||
ib->scroll_thickness, 0,
|
||||
|
@ -2250,9 +2250,9 @@ RedrawIconbox(Iconbox * ib)
|
|||
EMoveResizeWindow(disp, ib->icon_win,
|
||||
0, 0, ib->w, ib->h - ib->scroll_thickness);
|
||||
if (
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_HORIZONTAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_HORIZONTAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
{
|
||||
EMoveResizeWindow(disp, ib->cover_win,
|
||||
0, 0, ib->w, ib->h - ib->scroll_thickness);
|
||||
|
@ -2272,9 +2272,9 @@ RedrawIconbox(Iconbox * ib)
|
|||
0, ib->scroll_thickness,
|
||||
ib->w, ib->h - ib->scroll_thickness);
|
||||
if (
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_HORIZONTAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
(ic =
|
||||
FindItem("ICONBOX_COVER_HORIZONTAL", 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS)) && (!(ib->cover_hide)))
|
||||
{
|
||||
EMoveResizeWindow(disp, ib->cover_win,
|
||||
0, ib->scroll_thickness,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
829
src/ipc.c
829
src/ipc.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -116,486 +116,429 @@ void IPC_Group(char *params, Client * c);
|
|||
* --Mandrake
|
||||
*/
|
||||
|
||||
IPCStruct IPCArray[] =
|
||||
{
|
||||
IPCStruct IPCArray[] = {
|
||||
{
|
||||
IPC_Help,
|
||||
"help",
|
||||
"gives you this help screen",
|
||||
"Additional parameters will retrieve help on many topics - "
|
||||
"\"help <command>\".\nuse \"help all\" for a list of commands."
|
||||
},
|
||||
IPC_Help,
|
||||
"help",
|
||||
"gives you this help screen",
|
||||
"Additional parameters will retrieve help on many topics - "
|
||||
"\"help <command>\".\nuse \"help all\" for a list of commands."},
|
||||
{
|
||||
IPC_Version,
|
||||
"version",
|
||||
"displays the current version of Enlightenment running",
|
||||
NULL
|
||||
},
|
||||
IPC_Version,
|
||||
"version",
|
||||
"displays the current version of Enlightenment running",
|
||||
NULL},
|
||||
{
|
||||
IPC_Nop,
|
||||
"nop",
|
||||
"IPC No-operation - returns nop",
|
||||
NULL
|
||||
},
|
||||
IPC_Nop,
|
||||
"nop",
|
||||
"IPC No-operation - returns nop",
|
||||
NULL},
|
||||
{
|
||||
IPC_Copyright,
|
||||
"copyright",
|
||||
"displays copyright information for Enlightenment",
|
||||
NULL
|
||||
},
|
||||
IPC_Copyright,
|
||||
"copyright",
|
||||
"displays copyright information for Enlightenment",
|
||||
NULL},
|
||||
{
|
||||
IPC_AutoSave,
|
||||
"autosave",
|
||||
"toggle the Automatic Saving Feature",
|
||||
"Use \"autosave ?\" to list the current status\n"
|
||||
"use \"autosave on\" or \"autosave off\" to toggle the status"
|
||||
},
|
||||
IPC_AutoSave,
|
||||
"autosave",
|
||||
"toggle the Automatic Saving Feature",
|
||||
"Use \"autosave ?\" to list the current status\n"
|
||||
"use \"autosave on\" or \"autosave off\" to toggle the status"},
|
||||
{
|
||||
IPC_DefaultTheme,
|
||||
"default_theme",
|
||||
"toggle the default theme",
|
||||
"Use \"default_theme ?\" to get the current default theme\n"
|
||||
"use \"default_theme /path/to/theme\"\n"
|
||||
"you can retrieve a list of available themes from the "
|
||||
"\"list_themes\" command"
|
||||
},
|
||||
IPC_DefaultTheme,
|
||||
"default_theme",
|
||||
"toggle the default theme",
|
||||
"Use \"default_theme ?\" to get the current default theme\n"
|
||||
"use \"default_theme /path/to/theme\"\n"
|
||||
"you can retrieve a list of available themes from the "
|
||||
"\"list_themes\" command"},
|
||||
{
|
||||
IPC_Restart,
|
||||
"restart",
|
||||
"Restart Enlightenment",
|
||||
NULL
|
||||
},
|
||||
IPC_Restart,
|
||||
"restart",
|
||||
"Restart Enlightenment",
|
||||
NULL},
|
||||
{
|
||||
IPC_RestartWM,
|
||||
"restart_wm",
|
||||
"Restart another window manager",
|
||||
"Use \"restart_wm <wmname>\" to start another window manager.\n"
|
||||
"Example: \"restart_wm fvwm\""
|
||||
},
|
||||
IPC_RestartWM,
|
||||
"restart_wm",
|
||||
"Restart another window manager",
|
||||
"Use \"restart_wm <wmname>\" to start another window manager.\n"
|
||||
"Example: \"restart_wm fvwm\""},
|
||||
{
|
||||
IPC_RestartTheme,
|
||||
"restart_theme",
|
||||
"Restart with another theme",
|
||||
"Use \"restart_theme <themename>\" to restart enlightenment "
|
||||
"with another theme\nExample: \"restart_theme icE\""
|
||||
},
|
||||
IPC_RestartTheme,
|
||||
"restart_theme",
|
||||
"Restart with another theme",
|
||||
"Use \"restart_theme <themename>\" to restart enlightenment "
|
||||
"with another theme\nExample: \"restart_theme icE\""},
|
||||
{
|
||||
IPC_Exit,
|
||||
"exit",
|
||||
"Exit Enlightenment",
|
||||
NULL
|
||||
},
|
||||
IPC_Exit,
|
||||
"exit",
|
||||
"Exit Enlightenment",
|
||||
NULL},
|
||||
{
|
||||
IPC_ForceSave,
|
||||
"save_config",
|
||||
"Force Enlightenment to save settings now",
|
||||
NULL
|
||||
},
|
||||
IPC_ForceSave,
|
||||
"save_config",
|
||||
"Force Enlightenment to save settings now",
|
||||
NULL},
|
||||
{
|
||||
IPC_SMFile,
|
||||
"sm_file",
|
||||
"Change the default prefix used for session saves",
|
||||
"Average users are encouraged not to touch this setting.\n"
|
||||
"Use \"sm_file ?\" to retrieve the current session management "
|
||||
"file prefix\nUse \"sm_file /path/to/prefix/filenameprefix\" "
|
||||
"to change."
|
||||
},
|
||||
IPC_SMFile,
|
||||
"sm_file",
|
||||
"Change the default prefix used for session saves",
|
||||
"Average users are encouraged not to touch this setting.\n"
|
||||
"Use \"sm_file ?\" to retrieve the current session management "
|
||||
"file prefix\nUse \"sm_file /path/to/prefix/filenameprefix\" "
|
||||
"to change."},
|
||||
{
|
||||
IPC_ListThemes,
|
||||
"list_themes",
|
||||
"List currently available themes",
|
||||
NULL
|
||||
},
|
||||
IPC_ListThemes,
|
||||
"list_themes",
|
||||
"List currently available themes",
|
||||
NULL},
|
||||
{
|
||||
IPC_GotoDesktop,
|
||||
"goto_desktop",
|
||||
"Change currently active destkop",
|
||||
"Use \"goto_desktop num\" to go to a specific desktop.\n"
|
||||
"Use \"goto_desktop next\" and \"goto_desktop prev\" to go to "
|
||||
"the next and\n previous desktop\n"
|
||||
"Use \"goto_desktop ?\" to find out what desktop you are "
|
||||
"currently on"
|
||||
},
|
||||
IPC_GotoDesktop,
|
||||
"goto_desktop",
|
||||
"Change currently active destkop",
|
||||
"Use \"goto_desktop num\" to go to a specific desktop.\n"
|
||||
"Use \"goto_desktop next\" and \"goto_desktop prev\" to go to "
|
||||
"the next and\n previous desktop\n"
|
||||
"Use \"goto_desktop ?\" to find out what desktop you are " "currently on"},
|
||||
{
|
||||
IPC_GotoArea,
|
||||
"goto_area",
|
||||
"Change currently active area",
|
||||
"Use \"goto_area <horiz> <vert>\" to go to a specific desktop.\n"
|
||||
"Use \"goto_desktop next <vert/horiz>\" and \"goto_desktop "
|
||||
"prev <vert/horiz>\" to go to the next and\n "
|
||||
"previous areas\nUse \"goto_area ?\" to find out what area "
|
||||
"you are currently on"
|
||||
},
|
||||
IPC_GotoArea,
|
||||
"goto_area",
|
||||
"Change currently active area",
|
||||
"Use \"goto_area <horiz> <vert>\" to go to a specific desktop.\n"
|
||||
"Use \"goto_desktop next <vert/horiz>\" and \"goto_desktop "
|
||||
"prev <vert/horiz>\" to go to the next and\n "
|
||||
"previous areas\nUse \"goto_area ?\" to find out what area "
|
||||
"you are currently on"},
|
||||
{
|
||||
IPC_ShowIcons,
|
||||
"show_icons",
|
||||
"Toggle the display of icons on the desktop",
|
||||
"Use \"show_icons on\" and \"show_icons off\" to change this setting\n"
|
||||
"Use \"show_icons ?\" to retrieve the current setting"
|
||||
},
|
||||
IPC_ShowIcons,
|
||||
"show_icons",
|
||||
"Toggle the display of icons on the desktop",
|
||||
"Use \"show_icons on\" and \"show_icons off\" to change this setting\n"
|
||||
"Use \"show_icons ?\" to retrieve the current setting"},
|
||||
{
|
||||
IPC_FocusMode,
|
||||
"focus_mode",
|
||||
"Change the current focus mode setting",
|
||||
"Use \"focus_mode <mode>\" to change the focus mode.\n"
|
||||
"Use \"focus_mode ?\" to retrieve the current setting\n"
|
||||
"Focus Types:\n"
|
||||
"click: This is the traditional click-to-focus mode.\n"
|
||||
"clicknograb: This is a similar focus mode, but without the "
|
||||
"grabbing of the click\n "
|
||||
"(you cannot click anywhere in a window to focus it)\n"
|
||||
"pointer: The focus will follow the mouse pointer\n"
|
||||
"sloppy: in sloppy-focus, the focus follows the mouse, "
|
||||
"but when over\n "
|
||||
"the desktop background the last window does not lose the focus"
|
||||
},
|
||||
IPC_FocusMode,
|
||||
"focus_mode",
|
||||
"Change the current focus mode setting",
|
||||
"Use \"focus_mode <mode>\" to change the focus mode.\n"
|
||||
"Use \"focus_mode ?\" to retrieve the current setting\n"
|
||||
"Focus Types:\n"
|
||||
"click: This is the traditional click-to-focus mode.\n"
|
||||
"clicknograb: This is a similar focus mode, but without the "
|
||||
"grabbing of the click\n "
|
||||
"(you cannot click anywhere in a window to focus it)\n"
|
||||
"pointer: The focus will follow the mouse pointer\n"
|
||||
"sloppy: in sloppy-focus, the focus follows the mouse, "
|
||||
"but when over\n "
|
||||
"the desktop background the last window does not lose the focus"},
|
||||
{
|
||||
IPC_AdvancedFocus,
|
||||
"advanced_focus",
|
||||
"Toggle Advanced Focus Settings",
|
||||
"use \"advanced_focus <option> <on/off/?>\" to change.\n"
|
||||
"the options you may set are:\n"
|
||||
"new_window_focus : all new windows get the keyboard focus\n"
|
||||
"new_popup_window_focus : all new transient windows get focus\n"
|
||||
"new_popup_of_owner_focus : transient windows from apps that have\n"
|
||||
" focus already may receive focus\n"
|
||||
"raise_on_keyboard_focus_switch: Raise windows when switching focus\n"
|
||||
" with the keyboard\n"
|
||||
"raise_after_keyboard_focus_switch: Raise windows after switching "
|
||||
"focus\n"
|
||||
" with the keyboard\n"
|
||||
"pointer_to_keyboard_focus_window: Send the pointer to the focused\n"
|
||||
" window when changing focus with the keyboard\n"
|
||||
"pointer_after_keyboard_focus_window: Send the pointer to the "
|
||||
"focused\n"
|
||||
" window after changing focus with the keyboard\n"
|
||||
"transients_follow_leader: popup windows appear together with the\n"
|
||||
" window that created them.\n"
|
||||
"switch_to_popup_location: switch to where a popup window appears\n"
|
||||
"focus_list: display and use focus list (requires XKB)\n"
|
||||
"manual_placement: place all new windows by hand"
|
||||
},
|
||||
IPC_AdvancedFocus,
|
||||
"advanced_focus",
|
||||
"Toggle Advanced Focus Settings",
|
||||
"use \"advanced_focus <option> <on/off/?>\" to change.\n"
|
||||
"the options you may set are:\n"
|
||||
"new_window_focus : all new windows get the keyboard focus\n"
|
||||
"new_popup_window_focus : all new transient windows get focus\n"
|
||||
"new_popup_of_owner_focus : transient windows from apps that have\n"
|
||||
" focus already may receive focus\n"
|
||||
"raise_on_keyboard_focus_switch: Raise windows when switching focus\n"
|
||||
" with the keyboard\n"
|
||||
"raise_after_keyboard_focus_switch: Raise windows after switching "
|
||||
"focus\n"
|
||||
" with the keyboard\n"
|
||||
"pointer_to_keyboard_focus_window: Send the pointer to the focused\n"
|
||||
" window when changing focus with the keyboard\n"
|
||||
"pointer_after_keyboard_focus_window: Send the pointer to the "
|
||||
"focused\n"
|
||||
" window after changing focus with the keyboard\n"
|
||||
"transients_follow_leader: popup windows appear together with the\n"
|
||||
" window that created them.\n"
|
||||
"switch_to_popup_location: switch to where a popup window appears\n"
|
||||
"focus_list: display and use focus list (requires XKB)\n"
|
||||
"manual_placement: place all new windows by hand"},
|
||||
{
|
||||
IPC_NumDesks,
|
||||
"num_desks",
|
||||
"Change the number of available desktops",
|
||||
"Use \"num_desks <num>\" to change the available number of desktops.\n"
|
||||
"Use \"num_desks ?\" to retrieve the current setting"
|
||||
},
|
||||
IPC_NumDesks,
|
||||
"num_desks",
|
||||
"Change the number of available desktops",
|
||||
"Use \"num_desks <num>\" to change the available number of desktops.\n"
|
||||
"Use \"num_desks ?\" to retrieve the current setting"},
|
||||
{
|
||||
IPC_NumAreas,
|
||||
"num_areas",
|
||||
"Change the size of the virtual desktop",
|
||||
"Use \"num_areas <width> <height>\" to change the size of the "
|
||||
"virtual desktop.\nExample: \"num_areas 2 2\" makes 2x2 "
|
||||
"virtual destkops\nUse \"num_areas ?\" to retrieve the "
|
||||
"current setting"
|
||||
},
|
||||
IPC_NumAreas,
|
||||
"num_areas",
|
||||
"Change the size of the virtual desktop",
|
||||
"Use \"num_areas <width> <height>\" to change the size of the "
|
||||
"virtual desktop.\nExample: \"num_areas 2 2\" makes 2x2 "
|
||||
"virtual destkops\nUse \"num_areas ?\" to retrieve the " "current setting"},
|
||||
{
|
||||
IPC_WinOps,
|
||||
"win_op",
|
||||
"Change a property of a specific window",
|
||||
"Use \"win_op <windowid> <property> <value>\" to change the "
|
||||
"property of a window\nYou can use the \"window_list\" "
|
||||
"command to retrieve a list of available windows\n"
|
||||
"You can use ? after most of these commands to receive the current\n"
|
||||
"status of that flag\n"
|
||||
"available win_op commands are:\n win_op <windowid> close\n "
|
||||
"win_op <windowid> annihilate\n win_op <windowid> iconify\n "
|
||||
"win_op <windowid> shade\n win_op <windowid> stick\n "
|
||||
"win_op <windowid> toggle_<width/height/size> "
|
||||
"<conservative/available>\n (or none for absolute)\n "
|
||||
"win_op <windowid> border <BORDERNAME>\n win_op <windowid> "
|
||||
"desk <desktochangeto/next/prev>\n win_op <windowid> "
|
||||
"area <x> <y>\n win_op <windowid> <raise/lower>\n "
|
||||
"win_op <windowid> <move/resize> <x> <y>\n "
|
||||
"(you can use ? and ?? to retreive client and frame locations)\n "
|
||||
"win_op <windowid> focus\n "
|
||||
"win_op <windowid> title <title>\n "
|
||||
"win_op <windowid> raise\n "
|
||||
"win_op <windowid> lower\n "
|
||||
"win_op <windowid> layer <0-100,4=normal>\n "
|
||||
"<windowid> may be substituted with \"current\" to use the "
|
||||
"current window"
|
||||
},
|
||||
IPC_WinOps,
|
||||
"win_op",
|
||||
"Change a property of a specific window",
|
||||
"Use \"win_op <windowid> <property> <value>\" to change the "
|
||||
"property of a window\nYou can use the \"window_list\" "
|
||||
"command to retrieve a list of available windows\n"
|
||||
"You can use ? after most of these commands to receive the current\n"
|
||||
"status of that flag\n"
|
||||
"available win_op commands are:\n win_op <windowid> close\n "
|
||||
"win_op <windowid> annihilate\n win_op <windowid> iconify\n "
|
||||
"win_op <windowid> shade\n win_op <windowid> stick\n "
|
||||
"win_op <windowid> toggle_<width/height/size> "
|
||||
"<conservative/available>\n (or none for absolute)\n "
|
||||
"win_op <windowid> border <BORDERNAME>\n win_op <windowid> "
|
||||
"desk <desktochangeto/next/prev>\n win_op <windowid> "
|
||||
"area <x> <y>\n win_op <windowid> <raise/lower>\n "
|
||||
"win_op <windowid> <move/resize> <x> <y>\n "
|
||||
"(you can use ? and ?? to retreive client and frame locations)\n "
|
||||
"win_op <windowid> focus\n "
|
||||
"win_op <windowid> title <title>\n "
|
||||
"win_op <windowid> raise\n "
|
||||
"win_op <windowid> lower\n "
|
||||
"win_op <windowid> layer <0-100,4=normal>\n "
|
||||
"<windowid> may be substituted with \"current\" to use the "
|
||||
"current window"},
|
||||
{
|
||||
IPC_WinList,
|
||||
"window_list",
|
||||
"Get a list of currently open windows",
|
||||
"the list will be returned in the following "
|
||||
"format - \"window_id : title\"\n"
|
||||
"you can get an extended list using \"window_list extended\"\n"
|
||||
"returns the following format:\n\"window_id : title :: "
|
||||
"desktop : area_x area_y : x_coordinate y_coordinate\""
|
||||
},
|
||||
IPC_WinList,
|
||||
"window_list",
|
||||
"Get a list of currently open windows",
|
||||
"the list will be returned in the following "
|
||||
"format - \"window_id : title\"\n"
|
||||
"you can get an extended list using \"window_list extended\"\n"
|
||||
"returns the following format:\n\"window_id : title :: "
|
||||
"desktop : area_x area_y : x_coordinate y_coordinate\""},
|
||||
{
|
||||
IPC_ButtonShow,
|
||||
"button_show",
|
||||
"Show or Hide buttons on desktop",
|
||||
"use \"button_show <button/buttons/all_buttons_except/all> "
|
||||
"<BUTTON_STRING>\"\nexamples: \"button_show buttons all\" "
|
||||
"(removes all buttons and the dragbar)\n\"button_show\" "
|
||||
"(removes all buttons)\n \"button_show buttons CONFIG*\" "
|
||||
"(removes all buttons with CONFIG in the start)"
|
||||
},
|
||||
IPC_ButtonShow,
|
||||
"button_show",
|
||||
"Show or Hide buttons on desktop",
|
||||
"use \"button_show <button/buttons/all_buttons_except/all> "
|
||||
"<BUTTON_STRING>\"\nexamples: \"button_show buttons all\" "
|
||||
"(removes all buttons and the dragbar)\n\"button_show\" "
|
||||
"(removes all buttons)\n \"button_show buttons CONFIG*\" "
|
||||
"(removes all buttons with CONFIG in the start)"},
|
||||
{
|
||||
IPC_ActiveNetwork,
|
||||
"active_network",
|
||||
"Enable or disable networking",
|
||||
"use \"active_network <on/off>\" to toggle\n"
|
||||
"use \"active_network ?\" to test status"
|
||||
},
|
||||
IPC_ActiveNetwork,
|
||||
"active_network",
|
||||
"Enable or disable networking",
|
||||
"use \"active_network <on/off>\" to toggle\n"
|
||||
"use \"active_network ?\" to test status"},
|
||||
{
|
||||
IPC_FX,
|
||||
"fx",
|
||||
"Toggle various effects on/off",
|
||||
"Use \"fx <effect> <mode>\" to set the mode of a particular effect\n"
|
||||
"Use \"fx <effect> ?\" to get the current mode\n"
|
||||
"the following effects are available\n"
|
||||
"ripples <on/off> (ripples that act as a water effect on the screen)\n"
|
||||
"deskslide <on/off> (slide in desktops on desktop change)\n"
|
||||
"mapslide <on/off> (slide in new windows)\n"
|
||||
"raindrops <on/off> (raindrops will appear across your desktop)\n"
|
||||
"menu_animate <on/off> (toggles the animation of menus "
|
||||
"as they appear)\n"
|
||||
"animate_win_shading <on/off> (toggles the animation of "
|
||||
"window shading)\n"
|
||||
"window_shade_speed <#> (number of pixels/sec to shade a window)\n"
|
||||
"dragbar <on/off/left/right/top/bottom> (changes "
|
||||
"location of dragbar)\n"
|
||||
"tooltips <on/off/#> (changes state of tooltips and "
|
||||
"seconds till popup)\n"
|
||||
"autoraise <on/off/#> (changes state of autoraise and "
|
||||
"seconds till raise)\n"
|
||||
"edge_resistance <#/?/off> (changes the amount (in 1/100 seconds)\n"
|
||||
" of time to push for resistance to give)\n"
|
||||
"edge_snap_resistance <#/?> (changes the number of pixels that "
|
||||
"a window will\n resist moving against another window\n"
|
||||
"audio <on/off> (changes state of audio)\n"
|
||||
"- seconds for tooltips and autoraise can have less than one second\n"
|
||||
" (i.e. 0.5) or greater (1.3, 3.5, etc)"
|
||||
},
|
||||
IPC_FX,
|
||||
"fx",
|
||||
"Toggle various effects on/off",
|
||||
"Use \"fx <effect> <mode>\" to set the mode of a particular effect\n"
|
||||
"Use \"fx <effect> ?\" to get the current mode\n"
|
||||
"the following effects are available\n"
|
||||
"ripples <on/off> (ripples that act as a water effect on the screen)\n"
|
||||
"deskslide <on/off> (slide in desktops on desktop change)\n"
|
||||
"mapslide <on/off> (slide in new windows)\n"
|
||||
"raindrops <on/off> (raindrops will appear across your desktop)\n"
|
||||
"menu_animate <on/off> (toggles the animation of menus "
|
||||
"as they appear)\n"
|
||||
"animate_win_shading <on/off> (toggles the animation of "
|
||||
"window shading)\n"
|
||||
"window_shade_speed <#> (number of pixels/sec to shade a window)\n"
|
||||
"dragbar <on/off/left/right/top/bottom> (changes "
|
||||
"location of dragbar)\n"
|
||||
"tooltips <on/off/#> (changes state of tooltips and "
|
||||
"seconds till popup)\n"
|
||||
"autoraise <on/off/#> (changes state of autoraise and "
|
||||
"seconds till raise)\n"
|
||||
"edge_resistance <#/?/off> (changes the amount (in 1/100 seconds)\n"
|
||||
" of time to push for resistance to give)\n"
|
||||
"edge_snap_resistance <#/?> (changes the number of pixels that "
|
||||
"a window will\n resist moving against another window\n"
|
||||
"audio <on/off> (changes state of audio)\n"
|
||||
"- seconds for tooltips and autoraise can have less than one second\n"
|
||||
" (i.e. 0.5) or greater (1.3, 3.5, etc)"},
|
||||
{
|
||||
IPC_DockPosition,
|
||||
"dock",
|
||||
"Change Data about the Dock Position and Direction",
|
||||
"use \"dock direction <up/down/left/right/?>\" to set or "
|
||||
"test direction\n"
|
||||
"use \"dock start_pos ?\" to test the starting x y coords\n"
|
||||
"use \"dock start_pos x y\" to set the starting x y coords"
|
||||
},
|
||||
IPC_DockPosition,
|
||||
"dock",
|
||||
"Change Data about the Dock Position and Direction",
|
||||
"use \"dock direction <up/down/left/right/?>\" to set or "
|
||||
"test direction\n"
|
||||
"use \"dock start_pos ?\" to test the starting x y coords\n"
|
||||
"use \"dock start_pos x y\" to set the starting x y coords"},
|
||||
{
|
||||
IPC_MoveMode,
|
||||
"move_mode",
|
||||
"Toggle the Window move mode",
|
||||
"use \"move_mode <opaque/lined/box/shaded/semi-solid/translucent>\" "
|
||||
"to set\nuse \"move_mode ?\" to get the current mode"
|
||||
},
|
||||
IPC_MoveMode,
|
||||
"move_mode",
|
||||
"Toggle the Window move mode",
|
||||
"use \"move_mode <opaque/lined/box/shaded/semi-solid/translucent>\" "
|
||||
"to set\nuse \"move_mode ?\" to get the current mode"},
|
||||
{
|
||||
IPC_ResizeMode,
|
||||
"resize_mode",
|
||||
"Toggle the Window resize mode",
|
||||
"use \"resize_mode <opaque/lined/box/shaded/semi-solid>\" "
|
||||
"to set\nuse \"resize_mode ?\" to get the current mode"
|
||||
},
|
||||
IPC_ResizeMode,
|
||||
"resize_mode",
|
||||
"Toggle the Window resize mode",
|
||||
"use \"resize_mode <opaque/lined/box/shaded/semi-solid>\" "
|
||||
"to set\nuse \"resize_mode ?\" to get the current mode"},
|
||||
{
|
||||
IPC_Pager,
|
||||
"pager",
|
||||
"Toggle the status of the Pager and various pager settings",
|
||||
"use \"pager <on/off>\" to set the current mode\nuse \"pager ?\" "
|
||||
"to get the current mode\n"
|
||||
"use \"pager <#> <on/off/?>\" to toggle or test any desktop's pager\n"
|
||||
"use \"pager hiq <on/off>\" to toggle high quality pager\n"
|
||||
"use \"pager snap <on/off>\" to toggle snapshotting in the pager\n"
|
||||
"use \"pager zoom <on/off>\" to toggle zooming in the pager\n"
|
||||
"use \"pager title <on/off>\" to toggle title display in the pager\n"
|
||||
"use \"pager scanrate <#>\" to toggle number of line update "
|
||||
"per second"
|
||||
},
|
||||
IPC_Pager,
|
||||
"pager",
|
||||
"Toggle the status of the Pager and various pager settings",
|
||||
"use \"pager <on/off>\" to set the current mode\nuse \"pager ?\" "
|
||||
"to get the current mode\n"
|
||||
"use \"pager <#> <on/off/?>\" to toggle or test any desktop's pager\n"
|
||||
"use \"pager hiq <on/off>\" to toggle high quality pager\n"
|
||||
"use \"pager snap <on/off>\" to toggle snapshotting in the pager\n"
|
||||
"use \"pager zoom <on/off>\" to toggle zooming in the pager\n"
|
||||
"use \"pager title <on/off>\" to toggle title display in the pager\n"
|
||||
"use \"pager scanrate <#>\" to toggle number of line update " "per second"},
|
||||
{
|
||||
IPC_InternalList,
|
||||
"internal_list",
|
||||
"Retrieve a list of internal items",
|
||||
"use \"internal_list <pagers/menus/dialogs/internal_ewin>\"\n"
|
||||
"to retrieve a list of various internal window types.\n"
|
||||
"(note that listing internal_ewin doesn't retrieve "
|
||||
"dialogs currently)\n"
|
||||
},
|
||||
IPC_InternalList,
|
||||
"internal_list",
|
||||
"Retrieve a list of internal items",
|
||||
"use \"internal_list <pagers/menus/dialogs/internal_ewin>\"\n"
|
||||
"to retrieve a list of various internal window types.\n"
|
||||
"(note that listing internal_ewin doesn't retrieve "
|
||||
"dialogs currently)\n"},
|
||||
{
|
||||
IPC_SetFocus,
|
||||
"set_focus",
|
||||
"Set/Retrieve focused window",
|
||||
"use \"set_focus <win_id>\" to focus a new window\n"
|
||||
"use \"set_focus ?\" to retrieve the currently focused window"
|
||||
},
|
||||
IPC_SetFocus,
|
||||
"set_focus",
|
||||
"Set/Retrieve focused window",
|
||||
"use \"set_focus <win_id>\" to focus a new window\n"
|
||||
"use \"set_focus ?\" to retrieve the currently focused window"},
|
||||
{
|
||||
IPC_DialogOK,
|
||||
"dialog_ok",
|
||||
"Pop up a dialog box with an OK button",
|
||||
"use \"dialog_ok <message>\" to pop up a dialog box."
|
||||
},
|
||||
IPC_DialogOK,
|
||||
"dialog_ok",
|
||||
"Pop up a dialog box with an OK button",
|
||||
"use \"dialog_ok <message>\" to pop up a dialog box."},
|
||||
{
|
||||
IPC_ListClassMembers,
|
||||
"list_class",
|
||||
"List all members of a class",
|
||||
"use \"list_class <classname>\" to get back a list of class members\n"
|
||||
"available classes are:\n"
|
||||
"sounds\n"
|
||||
"actions\n"
|
||||
"backgrounds\n" "borders\n" "text\n" "images\n" "cursors\n" "buttons"
|
||||
},
|
||||
IPC_ListClassMembers,
|
||||
"list_class",
|
||||
"List all members of a class",
|
||||
"use \"list_class <classname>\" to get back a list of class members\n"
|
||||
"available classes are:\n"
|
||||
"sounds\n"
|
||||
"actions\n"
|
||||
"backgrounds\n" "borders\n" "text\n" "images\n" "cursors\n" "buttons"},
|
||||
{
|
||||
IPC_PlaySoundClass,
|
||||
"play_sound",
|
||||
"Plays a soundclass via E",
|
||||
"use \"play_sound <soundclass>\" to play a sound.\n"
|
||||
"use \"list_class sounds\" to get a list of available sounds"
|
||||
},
|
||||
IPC_PlaySoundClass,
|
||||
"play_sound",
|
||||
"Plays a soundclass via E",
|
||||
"use \"play_sound <soundclass>\" to play a sound.\n"
|
||||
"use \"list_class sounds\" to get a list of available sounds"},
|
||||
{
|
||||
IPC_SoundClass,
|
||||
"soundclass",
|
||||
"Create/Delete soundclasses",
|
||||
"use \"soundclass create <classname> <filename>\" to create\n"
|
||||
"use \"soundclass delete <classname>\" to delete"
|
||||
},
|
||||
IPC_SoundClass,
|
||||
"soundclass",
|
||||
"Create/Delete soundclasses",
|
||||
"use \"soundclass create <classname> <filename>\" to create\n"
|
||||
"use \"soundclass delete <classname>\" to delete"},
|
||||
{
|
||||
IPC_ImageClass,
|
||||
"imageclass",
|
||||
"Create/delete/modify/apply an ImageClass",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_ImageClass,
|
||||
"imageclass",
|
||||
"Create/delete/modify/apply an ImageClass",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_ActionClass,
|
||||
"actionclass",
|
||||
"Create/Delete/Modify an ActionClass",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_ActionClass,
|
||||
"actionclass",
|
||||
"Create/Delete/Modify an ActionClass",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_ColorModifierClass,
|
||||
"colormod",
|
||||
"Create/Delete/Modify a ColorModifierClass",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_ColorModifierClass,
|
||||
"colormod",
|
||||
"Create/Delete/Modify a ColorModifierClass",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_TextClass,
|
||||
"textclass",
|
||||
"Create/Delete/Modify/apply a TextClass",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_TextClass,
|
||||
"textclass",
|
||||
"Create/Delete/Modify/apply a TextClass",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_Background,
|
||||
"background",
|
||||
"Create/Delete/Modify a Background",
|
||||
"use \"background\" to list all defined backgrounds.\n"
|
||||
"use \"background <name>\" to delete a background.\n"
|
||||
"use \"background <name> ?\" to show current values.\n"
|
||||
"use \"background <name> <type> <value> to create / modify.\n"
|
||||
"(get available types from \"background <name> ?\"."
|
||||
},
|
||||
IPC_Background,
|
||||
"background",
|
||||
"Create/Delete/Modify a Background",
|
||||
"use \"background\" to list all defined backgrounds.\n"
|
||||
"use \"background <name>\" to delete a background.\n"
|
||||
"use \"background <name> ?\" to show current values.\n"
|
||||
"use \"background <name> <type> <value> to create / modify.\n"
|
||||
"(get available types from \"background <name> ?\"."},
|
||||
{
|
||||
IPC_Border,
|
||||
"border",
|
||||
"Create/Delete/Modify a Border",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_Border,
|
||||
"border",
|
||||
"Create/Delete/Modify a Border",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_Cursor,
|
||||
"cursor",
|
||||
"Create/Delete/Modify a Cursor",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_Cursor,
|
||||
"cursor",
|
||||
"Create/Delete/Modify a Cursor",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_Button,
|
||||
"button",
|
||||
"Create/Delete/Modify a Button",
|
||||
"This doesn't do anything yet."
|
||||
},
|
||||
IPC_Button,
|
||||
"button",
|
||||
"Create/Delete/Modify a Button",
|
||||
"This doesn't do anything yet."},
|
||||
{
|
||||
IPC_GeneralInfo,
|
||||
"general_info",
|
||||
"Retrieve some general information",
|
||||
"use \"general_info <info>\" to retrieve information\n"
|
||||
"available info is: screen_size"
|
||||
},
|
||||
IPC_GeneralInfo,
|
||||
"general_info",
|
||||
"Retrieve some general information",
|
||||
"use \"general_info <info>\" to retrieve information\n"
|
||||
"available info is: screen_size"},
|
||||
{
|
||||
IPC_Modules,
|
||||
"module",
|
||||
"Load/Unload/List Modules",
|
||||
NULL
|
||||
},
|
||||
IPC_Modules,
|
||||
"module",
|
||||
"Load/Unload/List Modules",
|
||||
NULL},
|
||||
{
|
||||
IPC_ReloadMenus,
|
||||
"reload_menus",
|
||||
"Reload menus.cfg without restarting (Asmodean_)",
|
||||
NULL
|
||||
},
|
||||
IPC_ReloadMenus,
|
||||
"reload_menus",
|
||||
"Reload menus.cfg without restarting (Asmodean_)",
|
||||
NULL},
|
||||
{
|
||||
IPC_GroupInfo,
|
||||
"group_info",
|
||||
"Retrieve some info on groups",
|
||||
"use \"group_info [group_index]\""
|
||||
},
|
||||
IPC_GroupInfo,
|
||||
"group_info",
|
||||
"Retrieve some info on groups",
|
||||
"use \"group_info [group_index]\""},
|
||||
{
|
||||
IPC_GroupOps,
|
||||
"group_op",
|
||||
"Group operations",
|
||||
"use \"group_op <windowid> <property> [<value>]\" to perform "
|
||||
"group operations on a window.\n"
|
||||
"Available group_op commands are:\n"
|
||||
" group_op <windowid> start\n"
|
||||
" group_op <windowid> add [<group_index>]\n"
|
||||
" group_op <windowid> remove [<group_index>]\n"
|
||||
" group_op <windowid> break [<group_index>]\n"
|
||||
" group_op <windowid> showhide\n"
|
||||
},
|
||||
IPC_GroupOps,
|
||||
"group_op",
|
||||
"Group operations",
|
||||
"use \"group_op <windowid> <property> [<value>]\" to perform "
|
||||
"group operations on a window.\n"
|
||||
"Available group_op commands are:\n"
|
||||
" group_op <windowid> start\n"
|
||||
" group_op <windowid> add [<group_index>]\n"
|
||||
" group_op <windowid> remove [<group_index>]\n"
|
||||
" group_op <windowid> break [<group_index>]\n"
|
||||
" group_op <windowid> showhide\n"},
|
||||
{
|
||||
IPC_Group,
|
||||
"group",
|
||||
"Group commands",
|
||||
"use \"group <groupid> <property> <value>\" to set group properties.\n"
|
||||
"Available group commands are:\n"
|
||||
" group <groupid> num_members <on/off/?>\n"
|
||||
" group <groupid> iconify <on/off/?>\n"
|
||||
" group <groupid> kill <on/off/?>\n"
|
||||
" group <groupid> move <on/off/?>\n"
|
||||
" group <groupid> raise <on/off/?>\n"
|
||||
" group <groupid> set_border <on/off/?>\n"
|
||||
" group <groupid> stick <on/off/?>\n"
|
||||
" group <groupid> shade <on/off/?>\n"
|
||||
" group <groupid> mirror <on/off/?>\n"
|
||||
},
|
||||
IPC_Group,
|
||||
"group",
|
||||
"Group commands",
|
||||
"use \"group <groupid> <property> <value>\" to set group properties.\n"
|
||||
"Available group commands are:\n"
|
||||
" group <groupid> num_members <on/off/?>\n"
|
||||
" group <groupid> iconify <on/off/?>\n"
|
||||
" group <groupid> kill <on/off/?>\n"
|
||||
" group <groupid> move <on/off/?>\n"
|
||||
" group <groupid> raise <on/off/?>\n"
|
||||
" group <groupid> set_border <on/off/?>\n"
|
||||
" group <groupid> stick <on/off/?>\n"
|
||||
" group <groupid> shade <on/off/?>\n"
|
||||
" group <groupid> mirror <on/off/?>\n"},
|
||||
{
|
||||
IPC_KDE,
|
||||
"kde",
|
||||
"Turns on and off KDE support",
|
||||
"use \"kde on\" and \"kde off\" to enable/disable support"
|
||||
},
|
||||
IPC_KDE,
|
||||
"kde",
|
||||
"Turns on and off KDE support",
|
||||
"use \"kde on\" and \"kde off\" to enable/disable support"},
|
||||
{
|
||||
IPC_MemDebug,
|
||||
"dump_mem_debug",
|
||||
"Dumps memory debugging information out to e.mem.out",
|
||||
"Use this command to have E dump its current memory debugging table\n"
|
||||
"to the e.mem.out file. NOTE: please read comments at the top of\n"
|
||||
"memory.c to see how to enable this. This will let you hunt memory\n"
|
||||
"leaks, over-allocations of memory, and other memory-related problems\n"
|
||||
"very easily with all pointers allocated stamped with a time, call\n"
|
||||
"tree that led to that allocation, file and line, and the chunk size.\n"
|
||||
},
|
||||
IPC_MemDebug,
|
||||
"dump_mem_debug",
|
||||
"Dumps memory debugging information out to e.mem.out",
|
||||
"Use this command to have E dump its current memory debugging table\n"
|
||||
"to the e.mem.out file. NOTE: please read comments at the top of\n"
|
||||
"memory.c to see how to enable this. This will let you hunt memory\n"
|
||||
"leaks, over-allocations of memory, and other memory-related problems\n"
|
||||
"very easily with all pointers allocated stamped with a time, call\n"
|
||||
"tree that led to that allocation, file and line, and the chunk size.\n"},
|
||||
{
|
||||
IPC_Remember,
|
||||
"remember",
|
||||
"Remembers parameters for client window ID x",
|
||||
"usage:\n"
|
||||
" remember <windowid> <parameter>\n"
|
||||
" where parameter is one of: all, none, border, desktop, size,\n"
|
||||
" location, layer, sticky, icon, shade, group, dialog, command\n"
|
||||
},
|
||||
IPC_Remember,
|
||||
"remember",
|
||||
"Remembers parameters for client window ID x",
|
||||
"usage:\n"
|
||||
" remember <windowid> <parameter>\n"
|
||||
" where parameter is one of: all, none, border, desktop, size,\n"
|
||||
" location, layer, sticky, icon, shade, group, dialog, command\n"},
|
||||
{
|
||||
IPC_CurrentTheme,
|
||||
"current_theme",
|
||||
"Returns the name of the currently used theme",
|
||||
NULL
|
||||
}
|
||||
IPC_CurrentTheme,
|
||||
"current_theme",
|
||||
"Returns the name of the currently used theme",
|
||||
NULL}
|
||||
};
|
||||
|
||||
/* the functions */
|
||||
|
@ -1062,13 +1005,13 @@ IPC_Background(char *params, Client * c)
|
|||
" bg.solid\t %i %i %i \n"
|
||||
" bg.file\t %s \ttop.file\t %s \n"
|
||||
" bg.tile\t %i \n"
|
||||
" bg.keep_aspect\t %i \ttop.keep_aspect\t %i \n"
|
||||
" bg.keep_aspect\t %i \ttop.keep_aspect\t %i \n"
|
||||
" bg.xjust\t %i \ttop.xjust\t %i \n"
|
||||
" bg.yjust\t %i \ttop.yjust\t %i \n"
|
||||
" bg.xperc\t %i \ttop.xperc\t %i \n"
|
||||
" bg.yperc\t %i \ttop.yperc\t %i \n",
|
||||
bg->name, bg->ref_count,
|
||||
bg->bg.solid.r, bg->bg.solid.g, bg->bg.solid.b,
|
||||
bg->bg.solid.r, bg->bg.solid.g, bg->bg.solid.b,
|
||||
bg->bg.file, bg->top.file,
|
||||
bg->bg.tile,
|
||||
bg->bg.keep_aspect, bg->top.keep_aspect,
|
||||
|
@ -1178,7 +1121,7 @@ IPC_Background(char *params, Client * c)
|
|||
else
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
"Error: unknown background value type '%s'.",
|
||||
"Error: unknown background value type '%s'.",
|
||||
type);
|
||||
}
|
||||
}
|
||||
|
@ -1559,7 +1502,7 @@ IPC_ColorModifierClass(char *params, Client * c)
|
|||
|
||||
cm = (ColorModifierClass *) FindItem(param1, 0,
|
||||
LIST_FINDBY_NAME,
|
||||
LIST_TYPE_COLORMODIFIER);
|
||||
LIST_TYPE_COLORMODIFIER);
|
||||
if (cm)
|
||||
FreeCMClass(cm);
|
||||
}
|
||||
|
@ -1572,7 +1515,7 @@ IPC_ColorModifierClass(char *params, Client * c)
|
|||
|
||||
cm = (ColorModifierClass *) FindItem(param1, 0,
|
||||
LIST_FINDBY_NAME,
|
||||
LIST_TYPE_COLORMODIFIER);
|
||||
LIST_TYPE_COLORMODIFIER);
|
||||
if (cm)
|
||||
Esnprintf(buf, sizeof(buf), "%u references remain.",
|
||||
cm->ref_count);
|
||||
|
@ -1749,8 +1692,8 @@ IPC_ImageClass(char *params, Client * c)
|
|||
if (iclass->norm.normal->real_file)
|
||||
im =
|
||||
Imlib_load_image(id,
|
||||
iclass->norm.normal->
|
||||
real_file);
|
||||
iclass->norm.
|
||||
normal->real_file);
|
||||
if (im)
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
|
@ -3426,7 +3369,7 @@ IPC_FX(char *params, Client * c)
|
|||
if (!strcmp(word2, "?"))
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
"edge_snap_distance: %d", mode.edge_snap_dist);
|
||||
"edge_snap_distance: %d", mode.edge_snap_dist);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3625,7 +3568,8 @@ IPC_WinList(char *params, Client * c)
|
|||
lst[i]->client.title = none;
|
||||
if (params)
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf), "%8x : %s :: %d : %d %d : %d %d\n",
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
"%8x : %s :: %d : %d %d : %d %d\n",
|
||||
lst[i]->client.win, lst[i]->client.title,
|
||||
lst[i]->desktop, lst[i]->area_x, lst[i]->area_y,
|
||||
lst[i]->x, lst[i]->y);
|
||||
|
@ -4152,7 +4096,7 @@ IPC_WinOps(char *params, Client * c)
|
|||
if (!strcmp(param1, "?"))
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
"window size: %d %d", ewin->client.w,
|
||||
"window size: %d %d", ewin->client.w,
|
||||
ewin->client.h);
|
||||
}
|
||||
else if (!strcmp(param1, "??"))
|
||||
|
@ -4807,12 +4751,12 @@ IPC_Copyright(char *params, Client * c)
|
|||
|
||||
params = NULL;
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
"Copyright (C) 1999 Carsten Haitzler and Geoff Harrison,\n"
|
||||
"Copyright (C) 2000 Carsten Haitzler and Geoff Harrison,\n"
|
||||
"with various contributors (Isaac Richards, Sung-Hyun Nam, "
|
||||
"Kimball Thurston,\n"
|
||||
"Michael Kellen, Frederic Devernay, Felix Bellaby, "
|
||||
"Michael Jennings,\n"
|
||||
"Christian Kreibich, Peter Kjellerstedt, Troy Pesola, Owen Taylor, "
|
||||
"Christian Kreibich, Peter Kjellerstedt, Troy Pesola, Owen Taylor, "
|
||||
"Stalyn,\n"
|
||||
"Knut Neumann, Nathan Heagy, Simon Forman, "
|
||||
"Brent Nelson,\n"
|
||||
|
@ -4870,11 +4814,6 @@ IPC_Version(char *params, Client * c)
|
|||
_("Enlightenment Version : %s\n"
|
||||
"code is current to : %s\n"),
|
||||
ENLIGHTENMENT_VERSION, E_CHECKOUT_DATE);
|
||||
/* Esnprintf(buf, sizeof(buf),
|
||||
* "Enlightenment Version : %s\n"
|
||||
* "Release Date : Wednesday March 17, 1999\n",
|
||||
* ENLIGHTENMENT_VERSION);
|
||||
*/
|
||||
|
||||
if (buf)
|
||||
CommsSend(c, buf);
|
||||
|
|
12
src/kde.c
12
src/kde.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
#include "E.h"
|
||||
|
||||
/* This code is copyright 1999 The Enlightenment Development Team */
|
||||
/* This code is copyright 2000 The Enlightenment Development Team */
|
||||
/* based on code by Matthias Ettrich from KWM (http://www.kde.org)
|
||||
* and code by Alfredo Kojima in Window Maker (http://www.windowmaker.org)
|
||||
* both of which are copyright under the GPL (http://www.fsf.org)
|
||||
|
@ -88,12 +88,12 @@ static Atom KDE_WIN_TITLE = 0;
|
|||
|
||||
/* the modules I have to communicate to */
|
||||
typedef struct KModuleList
|
||||
{
|
||||
{
|
||||
|
||||
Window win;
|
||||
struct KModuleList *next;
|
||||
Window win;
|
||||
struct KModuleList *next;
|
||||
|
||||
}
|
||||
}
|
||||
KModuleList;
|
||||
|
||||
static KModuleList *KModules = NULL;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -173,7 +173,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
else if ((!strcmp("-v", argv[j])) ||
|
||||
(!strcmp("-version", argv[j])) ||
|
||||
(!strcmp("--version", argv[j])) || (!strcmp("-v", argv[j])))
|
||||
(!strcmp("--version", argv[j])) || (!strcmp("-v", argv[j])))
|
||||
{
|
||||
printf(_
|
||||
("Enlightenment Version: %s\nLast updated on: %s\n"),
|
||||
|
|
43
src/memory.c
43
src/memory.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -71,10 +71,10 @@ end: \
|
|||
}
|
||||
|
||||
static struct _symtab
|
||||
{
|
||||
void *val;
|
||||
char *symbol;
|
||||
}
|
||||
{
|
||||
void *val;
|
||||
char *symbol;
|
||||
}
|
||||
*sym = NULL;
|
||||
|
||||
static int sym_count = 0;
|
||||
|
@ -194,19 +194,18 @@ __Emalloc(int size, const char *file, int line)
|
|||
UngrabX();
|
||||
ASSIGN_ALERT(_("Cannot allocate enough memory"),
|
||||
_("Ignore this"),
|
||||
_("Restart Enlightenment"),
|
||||
_("Quit Enlightenment"));
|
||||
_("Restart Enlightenment"), _("Quit Enlightenment"));
|
||||
Alert(_("WARNING!!!!!!\n"
|
||||
"\n"
|
||||
"Allocation for %i bytes (%3.0f kB or %3.1f MB) did not succeed.\n"
|
||||
"Allocation for %i bytes (%3.0f kB or %3.1f MB) did not succeed.\n"
|
||||
"\n"
|
||||
"Either this is a bug where ridiculous amounts of memory\n"
|
||||
"are being allocated, or your system has run out of both\n"
|
||||
"real and virtual memory and is unable to satisfy the request.\n"
|
||||
"real and virtual memory and is unable to satisfy the request.\n"
|
||||
"\n"
|
||||
"If you have a low memory system it is suggested to either\n"
|
||||
"purchase more memory, increase SWAP space, or reconfigure\n"
|
||||
"Enlightenment to use less resources by turning features off.\n"
|
||||
"Enlightenment to use less resources by turning features off.\n"
|
||||
"\n"
|
||||
"The malloc requested was at %s, line %d\n "),
|
||||
size, (float)size / 1024, (float)size / (1024 * 1024), file,
|
||||
|
@ -274,9 +273,9 @@ __Erealloc(void *ptr, int size, const char *file, int line)
|
|||
if (disp)
|
||||
UngrabX();
|
||||
ASSIGN_ALERT(_
|
||||
("Error in reallocating memory that hasn't been allocated"),
|
||||
("Error in reallocating memory that hasn't been allocated"),
|
||||
_("Ignore this"), _("Restart Enlightenment"),
|
||||
_("Quit Enlightenment"));
|
||||
_("Quit Enlightenment"));
|
||||
Alert(_
|
||||
("WARNING!!!!!!\n" "\n"
|
||||
"Re-allocation for %i bytes (%3.0f kB or %3.1f MB)\n"
|
||||
|
@ -284,7 +283,7 @@ __Erealloc(void *ptr, int size, const char *file, int line)
|
|||
"memory chunk that has not been allocated or has already been\n"
|
||||
"freed.\n" "\n" "This is definitely a bug. Please report it.\n"
|
||||
"\n" "The error occurred at %s, line %d.\n"), size,
|
||||
(float)size / 1024, (float)size / (1024 * 1024), ptr, file, line);
|
||||
(float)size / 1024, (float)size / (1024 * 1024), ptr, file, line);
|
||||
RESET_ALERT;
|
||||
EDBUG_RETURN(NULL);
|
||||
}
|
||||
|
@ -296,19 +295,18 @@ __Erealloc(void *ptr, int size, const char *file, int line)
|
|||
UngrabX();
|
||||
ASSIGN_ALERT(_("Cannot allocate enough memory"),
|
||||
_("Ignore this"),
|
||||
_("Restart Enlightenment"),
|
||||
_("Quit Enlightenment"));
|
||||
_("Restart Enlightenment"), _("Quit Enlightenment"));
|
||||
Alert(_("WARNING!!!!!!\n"
|
||||
"\n"
|
||||
"Re-allocation for %i bytes (%3.0f kB or %3.1f MB) did not succeed.\n"
|
||||
"Re-allocation for %i bytes (%3.0f kB or %3.1f MB) did not succeed.\n"
|
||||
"\n"
|
||||
"Either this is a bug where ridiculous amounts of memory\n"
|
||||
"are being allocated, or your system has run out of both\n"
|
||||
"real and virtual memory and is unable to satisfy the request.\n"
|
||||
"real and virtual memory and is unable to satisfy the request.\n"
|
||||
"\n"
|
||||
"If you have a low memory system it is suggested to either\n"
|
||||
"purchase more memory, increase SWAP space, or reconfigure\n"
|
||||
"Enlightenment to use less resources by turning features off.\n"
|
||||
"Enlightenment to use less resources by turning features off.\n"
|
||||
"\n"
|
||||
"The realloc requested was at %s, line %d\n "),
|
||||
size, (float)size / 1024, (float)size / (1024 * 1024), file,
|
||||
|
@ -378,11 +376,11 @@ __Efree(void *ptr, const char *file, int line)
|
|||
ASSIGN_ALERT(_
|
||||
("Error in freeing memory that hasn't been allocated"),
|
||||
_("Ignore this"), _("Restart Enlightenment"),
|
||||
_("Quit Enlightenment"));
|
||||
_("Quit Enlightenment"));
|
||||
Alert(_
|
||||
("WARNING!!!!!!\n" "\n"
|
||||
"freeing for pointer %x is attempting to free memory for a\n"
|
||||
"memory chunk that has not been allocated, or has already been\n"
|
||||
"memory chunk that has not been allocated, or has already been\n"
|
||||
"freed.\n" "\n" "This is definitely a bug. Please report it.\n"
|
||||
"\n" "The error occurred at %s, line %d.\n"), ptr, file, line);
|
||||
RESET_ALERT;
|
||||
|
@ -395,14 +393,13 @@ __Efree(void *ptr, const char *file, int line)
|
|||
UngrabX();
|
||||
ASSIGN_ALERT(_("Error in attempting to free NULL pointer"),
|
||||
_("Ignore this (safe)"),
|
||||
_("Restart Enlightenment"),
|
||||
_("Quit Enlightenment"));
|
||||
_("Restart Enlightenment"), _("Quit Enlightenment"));
|
||||
Alert(_("WARNING!!!!!!\n"
|
||||
"\n"
|
||||
"Enlightenment attempted to free a NULL pointer.\n"
|
||||
"\n"
|
||||
"This is definitely a bug. Please report it.\n"
|
||||
"It is safe to ignore this error and continue running Enlightenment.\n"
|
||||
"It is safe to ignore this error and continue running Enlightenment.\n"
|
||||
"\n"
|
||||
"The pointer value was %x.\n"
|
||||
"The error occurred at %s, line %d.\n"), ptr, file, line);
|
||||
|
|
23
src/menus.c
23
src/menus.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -674,7 +674,8 @@ void
|
|||
RealizeMenu(Menu * m)
|
||||
{
|
||||
int i, maxh = 0, maxw = 0, maxx1, maxx2, w, h, x, y, r,
|
||||
mmw, mmh;
|
||||
|
||||
mmw, mmh;
|
||||
unsigned int iw, ih;
|
||||
ImlibImage *im;
|
||||
XSetWindowAttributes att;
|
||||
|
@ -1006,10 +1007,10 @@ CreateMenuFromDirectory(char *name, MenuStyle * ms, char *dir)
|
|||
struct stat st;
|
||||
const char *chmap =
|
||||
#ifndef __EMX__
|
||||
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
|
||||
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
|
||||
|
||||
#else
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz€<EFBFBD>‚ƒ„…†‡ˆŠ‹Œ<EFBFBD>Ž<EFBFBD><EFBFBD>‘’“”•–—˜™<EFBFBD>-_";
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz€<EFBFBD>‚ƒ„…†‡ˆŠ‹Œ<EFBFBD>Ž<EFBFBD><EFBFBD>‘’“”•–—˜™<EFBFBD>-_";
|
||||
|
||||
#endif
|
||||
FILE *f;
|
||||
|
@ -1090,9 +1091,8 @@ CreateMenuFromDirectory(char *name, MenuStyle * ms, char *dir)
|
|||
ImlibColor icl;
|
||||
char tile = 1, keep_asp = 0;
|
||||
int width, height, scalex = 0,
|
||||
scaley = 0;
|
||||
int scr_asp, im_asp, w2,
|
||||
h2;
|
||||
scaley = 0;
|
||||
int scr_asp, im_asp, w2, h2;
|
||||
int maxw = 48, maxh = 48;
|
||||
int justx = 512, justy = 512;
|
||||
|
||||
|
@ -1309,7 +1309,7 @@ CreateMenuFromDirectory(char *name, MenuStyle * ms, char *dir)
|
|||
chmap[(cc >> 6) & 0x3f],
|
||||
chmap[(cc >> 12) & 0x3f],
|
||||
chmap[(cc >> 18) & 0x3f],
|
||||
chmap[(cc >> 24) & 0x3f], chmap[(cc >> 28) & 0x3f]);
|
||||
chmap[(cc >> 24) & 0x3f], chmap[(cc >> 28) & 0x3f]);
|
||||
bg =
|
||||
(Background *) FindItem(s3, 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_BACKGROUND);
|
||||
|
@ -1324,7 +1324,7 @@ CreateMenuFromDirectory(char *name, MenuStyle * ms, char *dir)
|
|||
ImlibColor icl;
|
||||
char tile = 1, keep_asp = 0;
|
||||
int width, height, scalex = 0,
|
||||
scaley = 0;
|
||||
scaley = 0;
|
||||
int scr_asp, im_asp, w2, h2;
|
||||
int maxw = 48, maxh = 48;
|
||||
|
||||
|
@ -1686,7 +1686,7 @@ CreateMenuFromGnome(char *name, MenuStyle * ms, char *dir)
|
|||
if (f)
|
||||
{
|
||||
char *iname = NULL, *exec = NULL, *texec =
|
||||
NULL, *tmp;
|
||||
NULL, *tmp;
|
||||
char *en_name = NULL;
|
||||
|
||||
while (fgets(s, sizeof(s), f))
|
||||
|
@ -1698,7 +1698,8 @@ CreateMenuFromGnome(char *name, MenuStyle * ms, char *dir)
|
|||
else if (name_buf[0] &&
|
||||
!strncmp(s, name_buf, strlen(name_buf)))
|
||||
iname = duplicate(&(s[strlen(name_buf)]));
|
||||
else if (!strncmp(s, "TryExec=", strlen("TryExec=")))
|
||||
else
|
||||
if (!strncmp(s, "TryExec=", strlen("TryExec=")))
|
||||
texec = duplicate(&(s[strlen("TryExec=")]));
|
||||
else if (!strncmp(s, "Exec=", strlen("Exec=")))
|
||||
exec = duplicate(&(s[strlen("Exec=")]));
|
||||
|
|
45
src/misc.c
45
src/misc.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -37,16 +37,15 @@ BlumFlimFrub(void)
|
|||
char s[1024];
|
||||
char *bins[3] =
|
||||
#ifndef __EMX__
|
||||
{"dox", "eesh", "epp"};
|
||||
{ "dox", "eesh", "epp" };
|
||||
|
||||
#else
|
||||
{"dox.exe", "eesh.exe", "epp.exe"};
|
||||
{ "dox.exe", "eesh.exe", "epp.exe" };
|
||||
|
||||
#endif
|
||||
char *docs[4] =
|
||||
{"E-docs/MAIN", "E-docs/Edoc_bg.png", "E-docs/E_logo.png"};
|
||||
char *thms[1] =
|
||||
{"themes/DEFAULT/epplets/epplets.cfg"};
|
||||
{ "E-docs/MAIN", "E-docs/Edoc_bg.png", "E-docs/E_logo.png" };
|
||||
char *thms[1] = { "themes/DEFAULT/epplets/epplets.cfg" };
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
|
@ -63,12 +62,12 @@ BlumFlimFrub(void)
|
|||
"Enlightenment's utility executable cannot be found at:\n"
|
||||
"\n"
|
||||
"%s\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure it is installed\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure it is installed\n"
|
||||
"correctly.\n"
|
||||
"\n"
|
||||
"The reason this could be missing is due to badly created\n"
|
||||
"packages, someone manually deleting that program or perhaps\n"
|
||||
"The reason this could be missing is due to badly created\n"
|
||||
"packages, someone manually deleting that program or perhaps\n"
|
||||
"an error in installing Enlightenment.\n"), s);
|
||||
EExit(NULL);
|
||||
}
|
||||
|
@ -76,11 +75,11 @@ BlumFlimFrub(void)
|
|||
{
|
||||
Alert(_("!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
|
||||
"\n"
|
||||
"Enlightenment's dox executable is not able to be executed:\n"
|
||||
"Enlightenment's dox executable is not able to be executed:\n"
|
||||
"\n"
|
||||
"%s\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure dox is installed\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure dox is installed\n"
|
||||
"correctly.\n"), s);
|
||||
EExit(NULL);
|
||||
}
|
||||
|
@ -100,12 +99,12 @@ BlumFlimFrub(void)
|
|||
"\n"
|
||||
"Enlightenment's documentation is not present or correctly installed\n"
|
||||
"\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure it is installed\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure it is installed\n"
|
||||
"correctly.\n"
|
||||
"\n"
|
||||
"The reason this could be missing is due to badly created\n"
|
||||
"packages, someone manually deleting those files or perhaps\n"
|
||||
"The reason this could be missing is due to badly created\n"
|
||||
"packages, someone manually deleting those files or perhaps\n"
|
||||
"an error in installing Enlightenment.\n"));
|
||||
EExit(NULL);
|
||||
}
|
||||
|
@ -125,9 +124,9 @@ BlumFlimFrub(void)
|
|||
"Enlightenment's DEFAULT installed theme is missing or inadequately\n"
|
||||
"configured to be a useful DEFAULT theme.\n"
|
||||
"\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure it is installed\n"
|
||||
"correctly. The DEFAULT theme Enlightenment comes with normally\n"
|
||||
"This is a fatal error and Enlightenment will cease to run.\n"
|
||||
"Please rectify this situation and ensure it is installed\n"
|
||||
"correctly. The DEFAULT theme Enlightenment comes with normally\n"
|
||||
"is BrushedMetal-Tigert and this theme is adequate for a DEFAULT\n"
|
||||
"theme.\n"));
|
||||
EExit(NULL);
|
||||
|
@ -432,8 +431,7 @@ SanitiseThemeDir(char *dir)
|
|||
Esnprintf(s, sizeof(s), "%s/%s", dir, "colormodifiers.cfg");
|
||||
if (!isfile(s))
|
||||
{
|
||||
badreason =
|
||||
_("Theme does not contain a colormodifiers.cfg file\n");
|
||||
badreason = _("Theme does not contain a colormodifiers.cfg file\n");
|
||||
return 0;
|
||||
}
|
||||
Esnprintf(s, sizeof(s), "%s/%s", dir, "cursors.cfg");
|
||||
|
@ -489,8 +487,7 @@ SanitiseThemeDir(char *dir)
|
|||
Esnprintf(s, sizeof(s), "%s/%s", dir, "windowmatches.cfg");
|
||||
if (!isfile(s))
|
||||
{
|
||||
badreason =
|
||||
_("Theme does not contain a windowmatches.cfg file\n");
|
||||
badreason = _("Theme does not contain a windowmatches.cfg file\n");
|
||||
return 0;
|
||||
}
|
||||
Esnprintf(s, sizeof(s), "%s/%s", dir, "menus.cfg");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -35,12 +35,12 @@
|
|||
|
||||
/* This is the Modules List that we maintain */
|
||||
typedef struct _ModuleMember
|
||||
{
|
||||
{
|
||||
|
||||
char *ModuleName;
|
||||
void *handle;
|
||||
char *ModuleName;
|
||||
void *handle;
|
||||
|
||||
}
|
||||
}
|
||||
ModuleMember;
|
||||
|
||||
int ListLength = 0;
|
||||
|
|
24
src/mwm.c
24
src/mwm.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -55,13 +55,13 @@
|
|||
|
||||
/* Motif window hints */
|
||||
typedef struct _mwmhints
|
||||
{
|
||||
CARD32 flags;
|
||||
CARD32 functions;
|
||||
CARD32 decorations;
|
||||
INT32 inputMode;
|
||||
CARD32 status;
|
||||
}
|
||||
{
|
||||
CARD32 flags;
|
||||
CARD32 functions;
|
||||
CARD32 decorations;
|
||||
INT32 inputMode;
|
||||
CARD32 status;
|
||||
}
|
||||
MWMHints;
|
||||
|
||||
void
|
||||
|
@ -172,10 +172,10 @@ MWM_SetInfo()
|
|||
{
|
||||
Atom a1;
|
||||
struct _mwminfo
|
||||
{
|
||||
long flags;
|
||||
Window win;
|
||||
}
|
||||
{
|
||||
long flags;
|
||||
Window win;
|
||||
}
|
||||
mwminfo;
|
||||
|
||||
EDBUG(6, "MWM_SetInfo");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -30,11 +30,11 @@
|
|||
*/
|
||||
|
||||
typedef struct conn_data_tag
|
||||
{
|
||||
int read_sock;
|
||||
int write_sock;
|
||||
ghttp_request *req;
|
||||
}
|
||||
{
|
||||
int read_sock;
|
||||
int write_sock;
|
||||
ghttp_request *req;
|
||||
}
|
||||
conn_data;
|
||||
|
||||
#endif
|
||||
|
@ -126,8 +126,7 @@ GetNetText(char *URL)
|
|||
|
||||
}
|
||||
|
||||
time_t
|
||||
GetNetFileDate(char *URL)
|
||||
time_t GetNetFileDate(char *URL)
|
||||
{
|
||||
|
||||
#ifdef AUTOUPGRADE
|
||||
|
|
32
src/pager.c
32
src/pager.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -450,8 +450,7 @@ PagerUpdateTimeout(int val, void *data)
|
|||
double cur_time, in;
|
||||
static int calls = 0;
|
||||
int y, y2, phase, ax, ay, cx, cy, ww, hh, xx, yy;
|
||||
static int offsets[8] =
|
||||
{0, 4, 2, 6, 1, 5, 3, 7};
|
||||
static int offsets[8] = { 0, 4, 2, 6, 1, 5, 3, 7 };
|
||||
|
||||
p = (Pager *) data;
|
||||
Esnprintf(s, sizeof(s), "__.%x", p->win);
|
||||
|
@ -528,11 +527,11 @@ CreatePager(void)
|
|||
(_("Warning!"),
|
||||
_("\n"
|
||||
"You seem to have an X Server capable of Shared Memory\n"
|
||||
"but it is incapable of doing ZPixmap Shared pixmaps\n"
|
||||
"(The server does not claim to be able to do them).\n"
|
||||
"but it is incapable of doing ZPixmap Shared pixmaps\n"
|
||||
"(The server does not claim to be able to do them).\n"
|
||||
"\n"
|
||||
"The pager in Enlightenment will run slowly in snapshot\n"
|
||||
"mode if you continue to use that mode of the pager\n"
|
||||
"mode if you continue to use that mode of the pager\n"
|
||||
"under these conditions.\n"
|
||||
"\n"
|
||||
"It is suggested you change the settings on your pager to\n"
|
||||
|
@ -548,8 +547,7 @@ CreatePager(void)
|
|||
"\n"
|
||||
"Please enable Shared Pixmaps in your Imlib configuration\n"
|
||||
"then restart Enlightenment to gain better performance for\n"
|
||||
"the pagers when snapshot mode is enabled.\n"
|
||||
"\n"));
|
||||
"the pagers when snapshot mode is enabled.\n" "\n"));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -558,15 +556,15 @@ CreatePager(void)
|
|||
DIALOG_OK
|
||||
(_("Warning!"),
|
||||
_("\n"
|
||||
"You seem to be running Enlightenment over a network Connection\n"
|
||||
"or on an X Server that does not support Shared Memory, or you\n"
|
||||
"You seem to be running Enlightenment over a network Connection\n"
|
||||
"or on an X Server that does not support Shared Memory, or you\n"
|
||||
"have disabled MIT-SHM Shared memory in your Imlib configuration.\n"
|
||||
"This means the Enlightenment Pager will perform slowly and use\n"
|
||||
"more system resources than it would when Shared Memory is\n"
|
||||
"This means the Enlightenment Pager will perform slowly and use\n"
|
||||
"more system resources than it would when Shared Memory is\n"
|
||||
"available.\n"
|
||||
"\n"
|
||||
"To improve performance please either enable MIT-SHM Shared Memory\n"
|
||||
"in your Imlib config, if you disabled it, or disable Pager\n"
|
||||
"in your Imlib config, if you disabled it, or disable Pager\n"
|
||||
"snapshots.\n" "\n"));
|
||||
}
|
||||
did_dialog = 1;
|
||||
|
@ -1278,14 +1276,10 @@ PagerShowMenu(Pager * p, int x, int y)
|
|||
mi = CreateMenuItem(_("Close"), NULL, ACTION_KILL, s, NULL);
|
||||
AddItemToMenu(pw_menu, mi);
|
||||
|
||||
mi =
|
||||
CreateMenuItem(_("Annihilate"), NULL, ACTION_KILL_NASTY, s,
|
||||
NULL);
|
||||
mi = CreateMenuItem(_("Annihilate"), NULL, ACTION_KILL_NASTY, s, NULL);
|
||||
AddItemToMenu(pw_menu, mi);
|
||||
|
||||
mi =
|
||||
CreateMenuItem(_("Stick / Unstick"), NULL, ACTION_STICK, s,
|
||||
NULL);
|
||||
mi = CreateMenuItem(_("Stick / Unstick"), NULL, ACTION_STICK, s, NULL);
|
||||
AddItemToMenu(pw_menu, mi);
|
||||
|
||||
AddItem(pw_menu, pw_menu->name, 0, LIST_TYPE_MENU);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -37,8 +37,7 @@ static Window sc_window = 0;
|
|||
static Atom sc_atom = 0;
|
||||
static ImlibData *imd = NULL;
|
||||
|
||||
Window
|
||||
SC_GetDestWin(void)
|
||||
Window SC_GetDestWin(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -47,10 +47,10 @@ Emkstemp(char *template)
|
|||
{
|
||||
static const char letters[]
|
||||
#ifndef __EMX__
|
||||
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
|
||||
#else
|
||||
= "abcdefghijklmnopqrstuvwxyz€<EFBFBD>‚ƒ„…†‡ˆŠ‹Œ<EFBFBD>Ž<EFBFBD><EFBFBD>Ž‘’“”•–—˜™0123456789";
|
||||
= "abcdefghijklmnopqrstuvwxyz€<EFBFBD>‚ƒ„…†‡ˆŠ‹Œ<EFBFBD>Ž<EFBFBD><EFBFBD>Ž‘’“”•–—˜™0123456789";
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -140,16 +140,15 @@ static char *userthemepath;
|
|||
/* The saved window details */
|
||||
static int num_match = 0;
|
||||
typedef struct _match
|
||||
{
|
||||
char *session_id;
|
||||
char *name;
|
||||
char *class;
|
||||
char *role;
|
||||
char *command;
|
||||
char used;
|
||||
int x, y, w, h, desktop, iconified, shaded, sticky,
|
||||
layer;
|
||||
}
|
||||
{
|
||||
char *session_id;
|
||||
char *name;
|
||||
char *class;
|
||||
char *role;
|
||||
char *command;
|
||||
char used;
|
||||
int x, y, w, h, desktop, iconified, shaded, sticky, layer;
|
||||
}
|
||||
Match;
|
||||
|
||||
Match *matches = NULL;
|
||||
|
@ -559,7 +558,7 @@ doSMExit(void *params)
|
|||
if (themepath[0] != 0)
|
||||
{
|
||||
Esnprintf(sss, sizeof(sss),
|
||||
"exec %s -single -ext_init_win %i -theme %s -display %s",
|
||||
"exec %s -single -ext_init_win %i -theme %s -display %s",
|
||||
command, w, themename, dstr);
|
||||
execl(DEFAULT_SH_PATH, DEFAULT_SH_PATH, "-c", sss, NULL);
|
||||
}
|
||||
|
@ -581,7 +580,7 @@ doSMExit(void *params)
|
|||
disp = NULL;
|
||||
sscanf(params, "%*s %1000s", s);
|
||||
Esnprintf(sss, sizeof(sss),
|
||||
"exec %s -single -ext_init_win %i -theme %s -display %s",
|
||||
"exec %s -single -ext_init_win %i -theme %s -display %s",
|
||||
command, w, s, dstr);
|
||||
execl(DEFAULT_SH_PATH, DEFAULT_SH_PATH, "-c", sss, NULL);
|
||||
}
|
||||
|
@ -683,18 +682,14 @@ set_save_props(SmcConn smc_conn, int master_flag)
|
|||
char priority = 10;
|
||||
char style;
|
||||
int n = 0;
|
||||
SmPropValue programVal =
|
||||
{0, NULL};
|
||||
SmPropValue userIDVal =
|
||||
{0, NULL};
|
||||
SmPropValue discardVal[] =
|
||||
{
|
||||
SmPropValue programVal = { 0, NULL };
|
||||
SmPropValue userIDVal = { 0, NULL };
|
||||
SmPropValue discardVal[] = {
|
||||
{0, NULL},
|
||||
{0, NULL},
|
||||
{0, NULL}
|
||||
};
|
||||
SmPropValue restartVal[] =
|
||||
{
|
||||
SmPropValue restartVal[] = {
|
||||
{0, NULL},
|
||||
{0, NULL},
|
||||
{0, NULL},
|
||||
|
@ -706,10 +701,8 @@ set_save_props(SmcConn smc_conn, int master_flag)
|
|||
{0, NULL},
|
||||
{0, NULL}
|
||||
};
|
||||
SmPropValue styleVal =
|
||||
{0, NULL};
|
||||
SmPropValue priorityVal =
|
||||
{0, NULL};
|
||||
SmPropValue styleVal = { 0, NULL };
|
||||
SmPropValue priorityVal = { 0, NULL };
|
||||
SmProp programProp;
|
||||
SmProp userIDProp;
|
||||
SmProp discardProp;
|
||||
|
@ -1026,13 +1019,12 @@ ProcessICEMSGS(void)
|
|||
DialogAlert(_("ERROR!\n"
|
||||
"\n"
|
||||
"Lost the Session Manager that was there?\n"
|
||||
"Here here session manager... come here... want a bone?\n"
|
||||
"Here here session manager... come here... want a bone?\n"
|
||||
"Oh come now! Stop sulking! Bugger. Oh well. "
|
||||
"Will continue without\n"
|
||||
"a session manager.\n"
|
||||
"\n"
|
||||
"I'll survive somehow.\n"
|
||||
"\n" "\n" "... I hope.\n"));
|
||||
"I'll survive somehow.\n" "\n" "\n" "... I hope.\n"));
|
||||
SmcCloseConnection(sm_conn, 0, NULL);
|
||||
sm_conn = NULL;
|
||||
sm_fd = -1;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -141,8 +141,7 @@ SettingsPager(void)
|
|||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Make miniature snapshots of the screen"));
|
||||
_("Make miniature snapshots of the screen"));
|
||||
DialogItemCheckButtonSetState(di, tmp_pager_snap);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_pager_snap);
|
||||
|
||||
|
@ -152,7 +151,7 @@ SettingsPager(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Smooth high quality snapshots in snapshot mode"));
|
||||
("Smooth high quality snapshots in snapshot mode"));
|
||||
DialogItemCheckButtonSetState(di, tmp_pager_hiq);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_pager_hiq);
|
||||
|
||||
|
@ -162,7 +161,7 @@ SettingsPager(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Zoom in on pager windows when mouse is over them"));
|
||||
("Zoom in on pager windows when mouse is over them"));
|
||||
DialogItemCheckButtonSetState(di, tmp_pager_zoom);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_pager_zoom);
|
||||
|
||||
|
@ -172,7 +171,7 @@ SettingsPager(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Pop up window title when mouse is over the window"));
|
||||
("Pop up window title when mouse is over the window"));
|
||||
DialogItemCheckButtonSetState(di, tmp_pager_title);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_pager_title);
|
||||
|
||||
|
@ -181,8 +180,7 @@ SettingsPager(void)
|
|||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Continuously scan screen to update pager"));
|
||||
_("Continuously scan screen to update pager"));
|
||||
DialogItemCheckButtonSetState(di, tmp_pager_do_scan);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_pager_do_scan);
|
||||
|
||||
|
@ -211,8 +209,7 @@ SettingsPager(void)
|
|||
DialogItemSetFill(di, 0, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemSetAlign(di, 0, 0);
|
||||
DialogItemTextSetText(di,
|
||||
_("Mouse button to select and drag windows:"));
|
||||
DialogItemTextSetText(di, _("Mouse button to select and drag windows:"));
|
||||
|
||||
radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
|
@ -438,9 +435,7 @@ SettingsFocus(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Clicking in a window always raises it"));
|
||||
DialogItemCheckButtonSetText(di, _("Clicking in a window always raises it"));
|
||||
DialogItemCheckButtonSetState(di, tmp_clickalways);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_clickalways);
|
||||
|
||||
|
@ -454,8 +449,7 @@ SettingsFocus(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_("All new windows first get the focus"));
|
||||
DialogItemCheckButtonSetText(di, _("All new windows first get the focus"));
|
||||
DialogItemCheckButtonSetState(di, tmp_new_focus);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_new_focus);
|
||||
|
||||
|
@ -463,9 +457,7 @@ SettingsFocus(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Only new dialog windows get the focus"));
|
||||
DialogItemCheckButtonSetText(di, _("Only new dialog windows get the focus"));
|
||||
DialogItemCheckButtonSetState(di, tmp_popup_focus);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_popup_focus);
|
||||
|
||||
|
@ -475,7 +467,7 @@ SettingsFocus(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Only new dialogs whose owner is focused get the focus"));
|
||||
("Only new dialogs whose owner is focused get the focus"));
|
||||
DialogItemCheckButtonSetState(di, tmp_owner_popup_focus);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_owner_popup_focus);
|
||||
|
||||
|
@ -493,7 +485,7 @@ SettingsFocus(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Send mouse pointer to window on focus switch"));
|
||||
("Send mouse pointer to window on focus switch"));
|
||||
DialogItemCheckButtonSetState(di, tmp_warp_focus);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_warp_focus);
|
||||
|
||||
|
@ -516,8 +508,7 @@ SettingsFocus(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_("Raise windows after focus switch"));
|
||||
DialogItemCheckButtonSetText(di, _("Raise windows after focus switch"));
|
||||
DialogItemCheckButtonSetState(di, tmp_raise_after_focus);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_raise_after_focus);
|
||||
|
||||
|
@ -527,7 +518,7 @@ SettingsFocus(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Send mouse pointer to window after focus switch"));
|
||||
("Send mouse pointer to window after focus switch"));
|
||||
DialogItemCheckButtonSetState(di, tmp_warp_after_focus);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_warp_after_focus);
|
||||
#endif /* WITH_TARTY_WARP */
|
||||
|
@ -1180,7 +1171,7 @@ SettingsPlacement(void)
|
|||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Dialog windows appear together with their owner"));
|
||||
("Dialog windows appear together with their owner"));
|
||||
DialogItemCheckButtonSetState(di, tmp_with_leader);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_with_leader);
|
||||
|
||||
|
@ -1189,8 +1180,7 @@ SettingsPlacement(void)
|
|||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 2);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Switch to desktop where dialog appears"));
|
||||
_("Switch to desktop where dialog appears"));
|
||||
DialogItemCheckButtonSetState(di, tmp_switch_popup);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_switch_popup);
|
||||
|
||||
|
@ -1245,8 +1235,8 @@ SettingsAutoRaise(void)
|
|||
DItem *table, *di;
|
||||
|
||||
if (
|
||||
(d =
|
||||
FindItem("CONFIGURE_AUTORAISE", 0, LIST_FINDBY_NAME, LIST_TYPE_DIALOG)))
|
||||
(d =
|
||||
FindItem("CONFIGURE_AUTORAISE", 0, LIST_FINDBY_NAME, LIST_TYPE_DIALOG)))
|
||||
{
|
||||
AUDIO_PLAY("SOUND_SETTINGS_ACTIVE");
|
||||
ShowDialog(d);
|
||||
|
@ -1343,8 +1333,8 @@ SettingsTooltips(void)
|
|||
DItem *table, *di;
|
||||
|
||||
if (
|
||||
(d =
|
||||
FindItem("CONFIGURE_TOOLTIPS", 0, LIST_FINDBY_NAME, LIST_TYPE_DIALOG)))
|
||||
(d =
|
||||
FindItem("CONFIGURE_TOOLTIPS", 0, LIST_FINDBY_NAME, LIST_TYPE_DIALOG)))
|
||||
{
|
||||
AUDIO_PLAY("SOUND_SETTINGS_ACTIVE");
|
||||
ShowDialog(d);
|
||||
|
@ -1706,8 +1696,7 @@ SettingsSpecialFX(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 3);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_("Slide desktops around when changing"));
|
||||
DialogItemCheckButtonSetText(di, _("Slide desktops around when changing"));
|
||||
DialogItemCheckButtonSetState(di, tmp_desktop_slide);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_desktop_slide);
|
||||
|
||||
|
@ -1722,9 +1711,7 @@ SettingsSpecialFX(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 3);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Slide windows around when cleaning up"));
|
||||
DialogItemCheckButtonSetText(di, _("Slide windows around when cleaning up"));
|
||||
DialogItemCheckButtonSetState(di, tmp_cleanup_slide);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_cleanup_slide);
|
||||
|
||||
|
@ -1739,8 +1726,7 @@ SettingsSpecialFX(void)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 3);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_("Slide windows in when they appear"));
|
||||
DialogItemCheckButtonSetText(di, _("Slide windows in when they appear"));
|
||||
DialogItemCheckButtonSetState(di, tmp_map_slide);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_map_slide);
|
||||
|
||||
|
@ -1787,8 +1773,7 @@ SettingsSpecialFX(void)
|
|||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 4);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Use saveunders to reduce window exposures"));
|
||||
_("Use saveunders to reduce window exposures"));
|
||||
DialogItemCheckButtonSetState(di, tmp_saveunders);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_saveunders);
|
||||
|
||||
|
@ -1797,8 +1782,7 @@ SettingsSpecialFX(void)
|
|||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemSetColSpan(di, 4);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Animate shading and unshading of windows"));
|
||||
_("Animate shading and unshading of windows"));
|
||||
DialogItemCheckButtonSetState(di, tmp_animate_shading);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_animate_shading);
|
||||
|
||||
|
@ -2605,7 +2589,7 @@ CB_BGAreaEvent(int val, void *data)
|
|||
stmp = duplicate(_("-NONE-"));
|
||||
Esnprintf(s, sizeof(s),
|
||||
_
|
||||
("Background definition information:\nName: %s\nFile: %s\n"),
|
||||
("Background definition information:\nName: %s\nFile: %s\n"),
|
||||
tmp_bg->name, stmp);
|
||||
Efree(stmp);
|
||||
DialogItemTextSetText(bg_filename, s);
|
||||
|
@ -3428,7 +3412,7 @@ SettingsIconbox(char *name)
|
|||
Iconbox *ib;
|
||||
|
||||
if (
|
||||
(d =
|
||||
(d =
|
||||
FindItem("CONFIGURE_ICONBOX", 0, LIST_FINDBY_NAME, LIST_TYPE_DIALOG)))
|
||||
{
|
||||
AUDIO_PLAY("SOUND_SETTINGS_ACTIVE");
|
||||
|
@ -3493,8 +3477,7 @@ SettingsIconbox(char *name)
|
|||
di = DialogAddItem(table, DITEM_CHECKBUTTON);
|
||||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_("Hide border around inner Iconbox"));
|
||||
DialogItemCheckButtonSetText(di, _("Hide border around inner Iconbox"));
|
||||
DialogItemCheckButtonSetState(di, tmp_ib_cover_hide);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_ib_cover_hide);
|
||||
|
||||
|
@ -3522,8 +3505,7 @@ SettingsIconbox(char *name)
|
|||
di = DialogAddItem(table, DITEM_CHECKBUTTON);
|
||||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_("Automatically resize to fit Icons"));
|
||||
DialogItemCheckButtonSetText(di, _("Automatically resize to fit Icons"));
|
||||
DialogItemCheckButtonSetState(di, tmp_ib_auto_resize);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_ib_auto_resize);
|
||||
|
||||
|
@ -3531,8 +3513,7 @@ SettingsIconbox(char *name)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Animate when iconifying to this Iconbox"));
|
||||
_("Animate when iconifying to this Iconbox"));
|
||||
DialogItemCheckButtonSetState(di, tmp_ib_animate);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_ib_animate);
|
||||
|
||||
|
@ -3542,7 +3523,7 @@ SettingsIconbox(char *name)
|
|||
DialogItemSetAlign(di, 0, 0);
|
||||
DialogItemTextSetText(di,
|
||||
_
|
||||
("Alignment of anchoring when automatically resizing:"));
|
||||
("Alignment of anchoring when automatically resizing:"));
|
||||
|
||||
di = DialogAddItem(table, DITEM_SLIDER);
|
||||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
|
@ -3564,14 +3545,14 @@ SettingsIconbox(char *name)
|
|||
DialogItemSetAlign(di, 0, 0);
|
||||
DialogItemTextSetText(di,
|
||||
_
|
||||
("Icon image display policy (if one operation fails, try the next):"));
|
||||
("Icon image display policy (if one operation fails, try the next):"));
|
||||
|
||||
radio4 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
|
||||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemRadioButtonSetText(di,
|
||||
_
|
||||
("Snapshot Windows, Use application icon, Use Enlightenment Icon"));
|
||||
("Snapshot Windows, Use application icon, Use Enlightenment Icon"));
|
||||
DialogItemRadioButtonSetFirst(di, radio4);
|
||||
DialogItemRadioButtonGroupSetVal(di, 0);
|
||||
|
||||
|
@ -3580,7 +3561,7 @@ SettingsIconbox(char *name)
|
|||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemRadioButtonSetText(di,
|
||||
_
|
||||
("Use application icon, Use Enlightenment Icon, Snapshot Window"));
|
||||
("Use application icon, Use Enlightenment Icon, Snapshot Window"));
|
||||
DialogItemRadioButtonSetFirst(di, radio4);
|
||||
DialogItemRadioButtonGroupSetVal(di, 1);
|
||||
|
||||
|
@ -3588,8 +3569,7 @@ SettingsIconbox(char *name)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemRadioButtonSetText(di,
|
||||
_
|
||||
("Use Enlightenment Icon, Snapshot Window"));
|
||||
_("Use Enlightenment Icon, Snapshot Window"));
|
||||
DialogItemRadioButtonSetFirst(di, radio4);
|
||||
DialogItemRadioButtonGroupSetVal(di, 2);
|
||||
DialogItemRadioButtonGroupSetValPtr(radio4, &tmp_ib_mode);
|
||||
|
@ -3834,7 +3814,7 @@ SettingsGroups(EWin * ewin)
|
|||
{
|
||||
DIALOG_OK(_("Window Group Error"),
|
||||
_
|
||||
("\n This window currently does not belong to any groups. \n\n"));
|
||||
("\n This window currently does not belong to any groups. \n\n"));
|
||||
return;
|
||||
}
|
||||
if ((d = FindItem("CONFIGURE_GROUP", 0, LIST_FINDBY_NAME, LIST_TYPE_DIALOG)))
|
||||
|
|
31
src/setup.c
31
src/setup.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -222,10 +222,10 @@ SetupX()
|
|||
("Enlightenment cannot connect to the display nominated by\n"
|
||||
"your shell's DISPLAY environment variable. You may set this\n"
|
||||
"variable to indicate which display name Enlightenment is to\n"
|
||||
"connect to. It may be that you do not have an Xserver already\n"
|
||||
"connect to. It may be that you do not have an Xserver already\n"
|
||||
"running to serve that Display connection, or that you do not\n"
|
||||
"have permission to connect to that display. Please make sure\n"
|
||||
"all is correct before trying again. Run an Xserver by running\n"
|
||||
"all is correct before trying again. Run an Xserver by running\n"
|
||||
"xdm or startx first, or contact your local system\n"
|
||||
"administrator, or Xserver vendor, or read the X, xdm and\n"
|
||||
"startx manual pages before proceeding.\n"));
|
||||
|
@ -330,8 +330,7 @@ SetupX()
|
|||
Alert(_("FATAL ERROR:\n"
|
||||
"\n"
|
||||
"Enlightenment is unable to initialise Imlib.\n"
|
||||
"\n"
|
||||
"This is unusual. Unable to continue.\n" "Exiting.\n"));
|
||||
"\n" "This is unusual. Unable to continue.\n" "Exiting.\n"));
|
||||
RESET_ALERT;
|
||||
EExit((void *)1);
|
||||
}
|
||||
|
@ -343,8 +342,7 @@ SetupX()
|
|||
Alert(_("FATAL ERROR:\n"
|
||||
"\n"
|
||||
"Enlightenment is unable to initialise Fnlib.\n"
|
||||
"\n"
|
||||
"This is unusual. Unable to continue.\n" "Exiting.\n"));
|
||||
"\n" "This is unusual. Unable to continue.\n" "Exiting.\n"));
|
||||
RESET_ALERT;
|
||||
EExit((void *)1);
|
||||
}
|
||||
|
@ -402,15 +400,13 @@ SetupX()
|
|||
if (ProtocolVersion(disp) != 11)
|
||||
{
|
||||
ASSIGN_ALERT(_("X server version error"),
|
||||
_("Ignore this error"),
|
||||
"", _("Quit Enlightenment"));
|
||||
_("Ignore this error"), "", _("Quit Enlightenment"));
|
||||
Alert(_("WARNING:\n"
|
||||
"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
|
||||
"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
|
||||
"This may mean Enlightenment will either not function, or\n"
|
||||
"function incorrectly. If it is later than X11, then your\n"
|
||||
"server is one the author of Enlightenment neither have\n"
|
||||
"access to, nor have heard of.\n"),
|
||||
ProtocolVersion(disp));
|
||||
"access to, nor have heard of.\n"), ProtocolVersion(disp));
|
||||
RESET_ALERT;
|
||||
}
|
||||
/* now we'll set the locale */
|
||||
|
@ -437,8 +433,7 @@ SetupX()
|
|||
XModifierKeymap *mod;
|
||||
KeyCode nl, sl;
|
||||
int i;
|
||||
int masks[8] =
|
||||
{
|
||||
int masks[8] = {
|
||||
ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask,
|
||||
Mod4Mask, Mod5Mask
|
||||
};
|
||||
|
@ -622,8 +617,7 @@ ChkDir(char *d)
|
|||
if (!isdir(d))
|
||||
{
|
||||
Alert(_("The directory %s is apparently not a directory\n"
|
||||
"This is a fatal condition.\n"
|
||||
"Please remove this file\n"), d);
|
||||
"This is a fatal condition.\n" "Please remove this file\n"), d);
|
||||
EExit((void *)1);
|
||||
}
|
||||
if (!canexec(d))
|
||||
|
@ -741,8 +735,7 @@ SetupEnv()
|
|||
return;
|
||||
}
|
||||
|
||||
Window
|
||||
MakeExtInitWin(void)
|
||||
Window MakeExtInitWin(void)
|
||||
{
|
||||
Display *d2;
|
||||
Window win;
|
||||
|
@ -811,7 +804,7 @@ MakeExtInitWin(void)
|
|||
attr.background_pixel = 0;
|
||||
attr.save_under = True;
|
||||
win = XCreateWindow(d2, root.win, 0, 0, root.w, root.h, 0, root.depth,
|
||||
InputOutput, root.vis, CWOverrideRedirect | CWSaveUnder |
|
||||
InputOutput, root.vis, CWOverrideRedirect | CWSaveUnder |
|
||||
CWBackingStore | CWColormap | CWBackPixel |
|
||||
CWBorderPixel, &attr);
|
||||
pmap = ECreatePixmap(d2, win, root.w, root.h, root.depth);
|
||||
|
|
14
src/size.c
14
src/size.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -64,7 +64,7 @@ MaxHeight(EWin * ewin, char *resize_type)
|
|||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(!(lst[i]->ignorearrange)) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
@ -107,7 +107,7 @@ MaxHeight(EWin * ewin, char *resize_type)
|
|||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(lst[i]->never_use_area) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
@ -185,7 +185,7 @@ MaxWidth(EWin * ewin, char *resize_type)
|
|||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(!(lst[i]->ignorearrange)) &&
|
||||
SPANS_COMMON(ewin->y, ewin->h, lst[i]->y, lst[i]->h))
|
||||
SPANS_COMMON(ewin->y, ewin->h, lst[i]->y, lst[i]->h))
|
||||
{
|
||||
if (((lst[i]->x + lst[i]->w) <= x) &&
|
||||
((lst[i]->x + lst[i]->w) >= x1))
|
||||
|
@ -228,7 +228,7 @@ MaxWidth(EWin * ewin, char *resize_type)
|
|||
(((ewin->desktop == lst[i]->desktop) &&
|
||||
(lst[i]->fixedpos)) ||
|
||||
(lst[i]->sticky)) &&
|
||||
SPANS_COMMON(ewin->y, ewin->h, lst[i]->y, lst[i]->h))
|
||||
SPANS_COMMON(ewin->y, ewin->h, lst[i]->y, lst[i]->h))
|
||||
{
|
||||
if (((lst[i]->x + lst[i]->w) <= x) &&
|
||||
((lst[i]->x + lst[i]->w) >= x1))
|
||||
|
@ -312,7 +312,7 @@ MaxSize(EWin * ewin, char *resize_type)
|
|||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(!(lst[i]->ignorearrange)) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
@ -381,7 +381,7 @@ MaxSize(EWin * ewin, char *resize_type)
|
|||
(((ewin->desktop == lst[i]->desktop) &&
|
||||
(lst[i]->fixedpos)) ||
|
||||
(lst[i]->sticky)) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -470,8 +470,7 @@ SnapshotEwinDialog(EWin * ewin)
|
|||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Restart application on login"));
|
||||
_("Restart application on login"));
|
||||
DialogItemCheckButtonSetState(di, tmp_snap_cmd);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_snap_cmd);
|
||||
}
|
||||
|
@ -493,9 +492,7 @@ SnapshotEwinDialog(EWin * ewin)
|
|||
DialogItemSetColSpan(di, 4);
|
||||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||
DialogItemSetFill(di, 1, 0);
|
||||
DialogItemCheckButtonSetText(di,
|
||||
_
|
||||
("Remember this window's group(s)"));
|
||||
DialogItemCheckButtonSetText(di, _("Remember this window's group(s)"));
|
||||
DialogItemCheckButtonSetState(di, tmp_snap_group);
|
||||
DialogItemCheckButtonSetPtr(di, &tmp_snap_group);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -84,12 +84,11 @@ Evsnprintf(char *str, size_t count, const char *fmt, va_list args)
|
|||
|
||||
#ifdef HAVE_STDARGS
|
||||
int
|
||||
Esnprintf(char *str, size_t count, const char *fmt,...)
|
||||
Esnprintf(char *str, size_t count, const char *fmt, ...)
|
||||
#else
|
||||
int
|
||||
Esnprintf(va_alist)
|
||||
va_dcl
|
||||
|
||||
#endif
|
||||
{
|
||||
#ifndef HAVE_STDARGS
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -259,8 +259,7 @@ SoundInit()
|
|||
sound_fd = fd;
|
||||
else
|
||||
{
|
||||
ASSIGN_ALERT(_("Error initialising sound"),
|
||||
_("OK"), " ", " ");
|
||||
ASSIGN_ALERT(_("Error initialising sound"), _("OK"), " ", " ");
|
||||
Alert(_
|
||||
("Audio was enabled for Enlightenment but there was an error\n"
|
||||
"communicating with the audio server (Esound). Audio will\n"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -31,8 +31,7 @@ AddEToFile(char *file)
|
|||
char *s1, *s2;
|
||||
char hase = 0;
|
||||
char foundwm = 0;
|
||||
char *wms[] =
|
||||
{
|
||||
char *wms[] = {
|
||||
"wmaker", "afterstep", "fvwm", "fvwm2", "twm", "mwm", "vtwm", "ctwm",
|
||||
"gwm",
|
||||
"mlvwm", "kwm", "olwm", "wm2", "wmx", "olvwm", "9wm", "blackbox", "awm",
|
||||
|
@ -78,7 +77,7 @@ AddEToFile(char *file)
|
|||
{
|
||||
fprintf(f2, "#%s", s);
|
||||
fprintf(f2,
|
||||
"\n# Enlightenment inserted Execution string here\n");
|
||||
"\n# Enlightenment inserted Execution string here\n");
|
||||
fprintf(f2, "exec %s/enlightenment\n\n",
|
||||
ENLIGHTENMENT_BIN);
|
||||
foundwm = 1;
|
||||
|
@ -236,8 +235,7 @@ CreateStartupDisplay(char start)
|
|||
}
|
||||
else
|
||||
{
|
||||
int k, spd, x, y, xOffset, yOffset, ty, fy, min,
|
||||
speed;
|
||||
int k, spd, x, y, xOffset, yOffset, ty, fy, min, speed;
|
||||
|
||||
/* we have this many so that we save on lines o code - eAndroid */
|
||||
struct timeval timev1, timev2;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
10
src/text.c
10
src/text.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -370,7 +370,7 @@ TextDraw(TextClass * tclass, Window win, int active, int sticky, int state,
|
|||
strncat(new_line, lines[i], (len - nuke_count) / 2);
|
||||
strcat(new_line, "...");
|
||||
strcat(new_line,
|
||||
lines[i] + ((len - nuke_count) / 2) + nuke_count);
|
||||
lines[i] + ((len - nuke_count) / 2) + nuke_count);
|
||||
Efont_extents(ts->efont, new_line, &ascent, &descent,
|
||||
&wid, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
@ -477,7 +477,7 @@ TextDraw(TextClass * tclass, Window win, int active, int sticky, int state,
|
|||
strncat(new_line, lines[i], (len - nuke_count) / 2);
|
||||
strcat(new_line, "...");
|
||||
strcat(new_line,
|
||||
lines[i] + ((len - nuke_count) / 2) + nuke_count);
|
||||
lines[i] + ((len - nuke_count) / 2) + nuke_count);
|
||||
XmbTextExtents(ts->xfontset, new_line, strlen(new_line),
|
||||
&ret1, &ret2);
|
||||
}
|
||||
|
@ -582,7 +582,7 @@ TextDraw(TextClass * tclass, Window win, int active, int sticky, int state,
|
|||
strncat(new_line, lines[i], (len - nuke_count) / 2);
|
||||
strcat(new_line, "...");
|
||||
strcat(new_line,
|
||||
lines[i] + ((len - nuke_count) / 2) + nuke_count);
|
||||
lines[i] + ((len - nuke_count) / 2) + nuke_count);
|
||||
wid = XTextWidth(ts->xfont, new_line, strlen(new_line));
|
||||
}
|
||||
Efree(lines[i]);
|
||||
|
@ -684,7 +684,7 @@ TextDraw(TextClass * tclass, Window win, int active, int sticky, int state,
|
|||
strncat(new_line, lines[i], (len - nuke_count) / 4);
|
||||
strcat(new_line, ". . . ");
|
||||
strcat(new_line,
|
||||
lines[i] + ((len - nuke_count) / 4) + nuke_count);
|
||||
lines[i] + ((len - nuke_count) / 4) + nuke_count);
|
||||
wid =
|
||||
XTextWidth16(ts->xfont, (XChar2b *) new_line,
|
||||
strlen(new_line) / 2);
|
||||
|
|
11
src/theme.c
11
src/theme.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -31,7 +31,7 @@ char *
|
|||
append_merge_dir(char *dir, char ***list, int *count)
|
||||
{
|
||||
char s[FILEPATH_LEN_MAX], ss[FILEPATH_LEN_MAX], **str = NULL,
|
||||
*def = NULL;
|
||||
*def = NULL;
|
||||
char already, *tmp, *tmp2, ok;
|
||||
int i, j, num;
|
||||
|
||||
|
@ -109,7 +109,7 @@ ListThemes(int *number)
|
|||
{
|
||||
char s[FILEPATH_LEN_MAX], **list = NULL, *def = NULL, *def2 =
|
||||
|
||||
NULL;
|
||||
NULL;
|
||||
int count = 0;
|
||||
|
||||
Esnprintf(s, sizeof(s), "%s/themes", UserEDir());
|
||||
|
@ -249,7 +249,7 @@ ExtractTheme(char *theme)
|
|||
{
|
||||
/*gzipped tarball */
|
||||
Esnprintf(s, sizeof(s),
|
||||
"gzip -d -c < %s | (cd %s ; tar -xf -)", theme, th);
|
||||
"gzip -d -c < %s | (cd %s ; tar -xf -)", theme, th);
|
||||
}
|
||||
else if ((buf[257] == 'u') && (buf[258] == 's')
|
||||
&& (buf[259] == 't') && (buf[260] == 'a')
|
||||
|
@ -350,7 +350,6 @@ BadThemeDialog(void)
|
|||
"Is a badly formed theme package and is thus not being used.\n"
|
||||
"Enlightenment has fallen back to using the DEFAULT theme.\n"
|
||||
"\n"
|
||||
"The reason this theme is bad is:\n"
|
||||
"%s"), badtheme, badreason);
|
||||
"The reason this theme is bad is:\n" "%s"), badtheme, badreason);
|
||||
DIALOG_OK(_("Bad Theme"), s);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
206
src/tooltips.c
206
src/tooltips.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -135,13 +135,12 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
int i, w = 0, h = 0, ix, iy, iw, ih, dx, dy, xx, yy;
|
||||
int ww, hh, adx, ady, dist;
|
||||
int headline_h = 0, headline_w = 0, icons_width =
|
||||
0, labels_width = 0, double_w = 0, temp_w, temp_h;
|
||||
0, labels_width = 0, double_w = 0, temp_w, temp_h;
|
||||
ImlibImage *im;
|
||||
char pq;
|
||||
int *heights = NULL;
|
||||
ImageClass *ic = NULL;
|
||||
int cols[10] =
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||
int cols[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
|
||||
EDBUG(5, "ShowToolTip");
|
||||
if (!tt)
|
||||
|
@ -664,7 +663,7 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ac->list[i]->event == EVENT_DOUBLE_DOWN)
|
||||
{
|
||||
TextDraw(tt->tclass, tt->win, 0, 0, STATE_NORMAL, "2x",
|
||||
xx + iw - double_w, y, double_w, heights[i], 17,
|
||||
xx + iw - double_w, y, double_w, heights[i], 17,
|
||||
0);
|
||||
}
|
||||
if (ac->list[i]->anybutton)
|
||||
|
@ -680,10 +679,10 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->im),
|
||||
ic->norm.normal->im),
|
||||
x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
|
@ -700,14 +699,15 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->rgb_height);
|
||||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -720,14 +720,15 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->rgb_height);
|
||||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -740,14 +741,15 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->rgb_height);
|
||||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -760,14 +762,15 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->rgb_height);
|
||||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -780,14 +783,15 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->rgb_height);
|
||||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -806,17 +810,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -829,17 +834,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -852,17 +858,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -875,17 +882,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -898,17 +906,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -921,17 +930,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -944,17 +954,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -967,17 +978,18 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
if (ic->norm.normal->im)
|
||||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
|
18
src/ttfont.c
18
src/ttfont.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -25,18 +25,16 @@
|
|||
typedef struct _efont_color_tab EfontColorTable;
|
||||
|
||||
struct _efont_color_tab
|
||||
{
|
||||
Colormap cmap;
|
||||
{
|
||||
Colormap cmap;
|
||||
|
||||
XColor list[256];
|
||||
unsigned char match[8][8][8];
|
||||
};
|
||||
XColor list[256];
|
||||
unsigned char match[8][8][8];
|
||||
};
|
||||
|
||||
/*static EfontColorTable *color_tab = NULL; */
|
||||
static unsigned char alpha_lut[5] =
|
||||
{0, 64, 128, 192, 255};
|
||||
static unsigned char bounded_palette[9] =
|
||||
{0, 1, 2, 3, 4, 4, 4, 4, 4};
|
||||
static unsigned char alpha_lut[5] = { 0, 64, 128, 192, 255 };
|
||||
static unsigned char bounded_palette[9] = { 0, 1, 2, 3, 4, 4, 4, 4, 4 };
|
||||
|
||||
static TT_Raster_Map *
|
||||
create_font_raster(int width, int height)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -163,8 +163,7 @@ CheckForNewMOTD(int val, void *data)
|
|||
|
||||
if (MOTD)
|
||||
{
|
||||
DIALOG_OK(_("Enlightenment's message of the day"),
|
||||
MOTD);
|
||||
DIALOG_OK(_("Enlightenment's message of the day"), MOTD);
|
||||
Efree(MOTD);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -143,7 +143,7 @@ MatchEwinDesktop(EWin * ewin, WindowMatch * b)
|
|||
|
||||
void *
|
||||
MatchEwinByFunction(EWin * ewin,
|
||||
void * (*FunctionToTest) (EWin *, WindowMatch *))
|
||||
void *(*FunctionToTest) (EWin *, WindowMatch *))
|
||||
{
|
||||
WindowMatch **lst;
|
||||
int i, num;
|
||||
|
|
17
src/x.c
17
src/x.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -40,8 +40,7 @@ EFreePixmap(Display * display, Pixmap pixmap)
|
|||
XFreePixmap(display, pixmap);
|
||||
}
|
||||
|
||||
Window
|
||||
ECreateWindow(Window parent, int x, int y, int w, int h, int saveunder)
|
||||
Window ECreateWindow(Window parent, int x, int y, int w, int h, int saveunder)
|
||||
{
|
||||
EXID *xid;
|
||||
Window win;
|
||||
|
@ -587,8 +586,7 @@ DelXID(Window win)
|
|||
}
|
||||
}
|
||||
|
||||
Window
|
||||
ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
||||
Window ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
||||
{
|
||||
Window win;
|
||||
XSetWindowAttributes attr;
|
||||
|
@ -604,8 +602,7 @@ ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
|||
* create a window which will accept the keyboard focus when no other
|
||||
* windows have it
|
||||
*/
|
||||
Window
|
||||
ECreateFocusWindow(Window parent, int x, int y, int w, int h)
|
||||
Window ECreateFocusWindow(Window parent, int x, int y, int w, int h)
|
||||
{
|
||||
Window win;
|
||||
XSetWindowAttributes attr;
|
||||
|
@ -739,8 +736,7 @@ WinExists(Window win)
|
|||
EDBUG_RETURN(0);
|
||||
}
|
||||
|
||||
Window
|
||||
WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
||||
Window WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
||||
{
|
||||
Window *list = NULL;
|
||||
XWindowAttributes att;
|
||||
|
@ -787,8 +783,7 @@ WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
|||
EDBUG_RETURN(base);
|
||||
}
|
||||
|
||||
Window
|
||||
WindowAtXY(int x, int y)
|
||||
Window WindowAtXY(int x, int y)
|
||||
{
|
||||
Window *list = NULL;
|
||||
Window child = 0, parent_win = 0, root_win = 0;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
|
Loading…
Reference in New Issue