Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
actions.c
Log Message:
Added shade/unshade using mouse wheel to title bar actions.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/actions.c,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -3 -r1.177 -r1.178
--- actions.c 14 Aug 2004 15:06:26 -0000 1.177
+++ actions.c 30 Oct 2004 14:24:13 -0000 1.178
@@ -2380,24 +2380,29 @@
{
EWin **gwins = NULL;
Group *curr_group = NULL;
- int i, num;
- char shaded;
+ int i, num, shade;
EDBUG(6, "doShade");
gwins = ListWinGroupMembersForEwin(ewin, ACTION_SHADE, nogroup, &num);
- shaded = ewin->shaded;
+ if (!params)
+ shade = !ewin->shaded;
+ else if (!strcmp(params, "on"))
+ shade = 1;
+ else if (!strcmp(params, "off"))
+ shade = 0;
+
for (i = 0; i < num; i++)
{
curr_group = EwinsInGroup(ewin, gwins[i]);
if (gwins[i]->shaded
- && ((curr_group && !curr_group->cfg.mirror) || shaded))
+ && ((curr_group && !curr_group->cfg.mirror) || !shade))
{
SoundPlay("SOUND_UNSHADE");
EwinUnShade(gwins[i]);
}
else if (!gwins[i]->shaded
- && ((curr_group && !curr_group->cfg.mirror) || !shaded))
+ && ((curr_group && !curr_group->cfg.mirror) || shade))
{
SoundPlay("SOUND_SHADE");
EwinShade(gwins[i]);
@@ -2406,7 +2411,6 @@
}
Efree(gwins);
EDBUG_RETURN(0);
- params = NULL;
}
static int
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs