Re: e16.8 in CVS

From: phriedrich <phriedrich@gmx.de>
Date: Mon Jan 10 17:47:16 2005
Message-ID: <20050111024638.43ee8014@phriedrich>

On Mon, 10 Jan 2005 23:10:09 +0100
phriedrich <phriedrich@gmx.de> wrote:

[...]
> I searched e's code today for doing that, but couldn't really found it,
> at least my hacks didn't work.

To answer my own mail:

I could get it working, the NOSHADOW-option now appears in the window's
remember-dialogue, can be saved and loaded but still can only be seted via
eesh.

I've never made a patch and it's 2:40am now, so I will just send a list
with of changes.
The line-numbers are not 110% correctly but should be sharp enough.

-------------------------------longish-list------------------------------

src/ewins.c
 - line 551: + if (ewin->noshadow)
                   EoDisableShadows(ewin);

src/E.h
 - line 740: + int noshadow;
 - line 1156: + char use_noshadow;
 - line 1158: + char noshadow;
 - line 2163: + void SnapshotEwinNoShadow(EWin * ewin);

src/snaps.c
 - line 233: + static char tmp_snap_noshadow;
 - line 280: + if (tmp_snap_noshadow)
                 SnapshotEwinNoShadow(ewin);
 - line 534: + di = DialogAddItem(table, DITEM_CHECKBUTTON);
                DialogItemSetColSpan(di, 2);
                DialogItemSetPadding(di, 2, 2, 2, 2);
                DialogItemSetFill(di, 1, 0);
                DialogItemCheckButtonSetText(di, _("No Shadow for
Window")); DialogItemCheckButtonSetState(di,
tmp_snap_noshadow); DialogItemCheckButtonSetPtr(di,
&tmp_snap_noshadow); - line 854: + SnapshotEwinNoShadow(ewin);
 - line 730: + void
                SnapshotEwinNoShadow(EWin * ewin)
                {
                  Snapshot *sn;

                  sn = GetSnapshot(ewin);
                  if (!sn)
                      return;
                  sn->use_noshadow = 1;
                  sn->noshadow = ewin->noshadow;
                 }
 - line 963: + if (sn->use_noshadow)
                 fprintf(f, "NOSHADOW: %i\n", sn->noshadow);
 - line 1157: + else if (!strcmp(s, "NOSHADOW:"))
                {
                   sn->use_noshadow = 1;
                   word(buf, 2, s);
                   sn->noshadow = atoi(s);
                }
 - line 1246: + if (sn->use_noshadow)
                ewin->noshadow = sn->noshadow;
 - line 1324: + sn->use_noshadow = 0;
 - line 372: + if (sn->use_noshadow)
                 tmp_snap_noshadow = 1;
 - line 171: + sn->noshadow = 0;

-------------------end-of-list-------------------------------------------

I'm sorry for that quite bad "patch" bud my head is nearly falling to the
keyboard ;-)

Best regards,

Friedrich

Received on Mon 10 Jan 2005 - 17:47:16 CET

This archive was generated by hypermail 2.2.0 : Sat 30 Oct 2010 - 22:31:22 CEST