Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
borders.c config.c desktops.c ewmh.c focus.c icccm.c iclass.c
iconify.c ipc.c menus.c settings.c snaps.c theme.c ttfont.c
warp.c x.c zoom.c
Log Message:
Cosmetics.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/borders.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -3 -r1.145 -r1.146
--- borders.c 7 Mar 2004 11:33:30 -0000 1.145
+++ borders.c 14 Mar 2004 09:03:24 -0000 1.146
@@ -29,14 +29,6 @@
EWin *Adopt(Window win);
EWin *AdoptInternal(Window win, Border * border, int type);
-#if 0
-#define DELETE_EWIN_REFERENCE(ew, ew_ref) \
- ({ if (ew_ref == ew) { printf("Stale ewin ref (" #ew_ref ")\n"); ew_ref =
NULL; } })
-#else
-#define DELETE_EWIN_REFERENCE(ew, ew_ref) \
- ({ if (ew_ref == ew) { ew_ref = NULL; } })
-#endif
-
void
KillEwin(EWin * ewin, int nogroup)
{
@@ -1215,9 +1207,8 @@
ewin->type = type;
switch (type)
{
-#if 0
case EWIN_TYPE_DIALOG:
-#endif
+ break;
case EWIN_TYPE_MENU:
ewin->layer = 99;
ewin->skiptask = 1;
@@ -1381,8 +1372,8 @@
if (ewin->ibox)
IconboxDestroy(ewin->ibox);
- /* May be an overkill but cannot hurt... */
- DELETE_EWIN_REFERENCE(ewin, mode.mouse_over_win);
+ if (ewin == mode.mouse_over_win)
+ mode.mouse_over_win = NULL;
HintsDelWindowHints(ewin);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/config.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -3 -r1.94 -r1.95
--- config.c 11 Mar 2004 16:58:12 -0000 1.94
+++ config.c 14 Mar 2004 09:03:24 -0000 1.95
@@ -908,8 +908,7 @@
sscanf(s, "%*s %d %d ", &conf.dock.startx, &conf.dock.starty);
break;
case CONTROL_KDESUPPORT:
-#if 0
- /* Ignore */
+#if 0 /* Ignore */
#endif
break;
case CONTROL_SHOWROOTTOOLTIP:
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/desktops.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -3 -r1.68 -r1.69
--- desktops.c 11 Mar 2004 23:44:17 -0000 1.68
+++ desktops.c 14 Mar 2004 09:03:25 -0000 1.69
@@ -547,7 +547,7 @@
if (conf.backgrounds.hiquality)
{
imlib_context_set_dither(1);
-#if 0
+#if 0 /* ??? */
imlib_context_set_anti_alias(1);
#endif
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- ewmh.c 29 Feb 2004 01:30:17 -0000 1.36
+++ ewmh.c 14 Mar 2004 09:03:25 -0000 1.37
@@ -237,7 +237,7 @@
_ATOM_INIT(_NET_WM_STATE_SKIP_TASKBAR);
_ATOM_INIT(_NET_WM_STATE_SKIP_PAGER);
_ATOM_INIT(_NET_WM_STATE_HIDDEN);
-#if 0
+#if 0 /* Not implemented */
_ATOM_INIT(_NET_WM_STATE_FULLSCREEN);
#endif
_ATOM_INIT(_NET_WM_STATE_ABOVE);
@@ -667,7 +667,7 @@
ewin->skipfocus = 1;
ewin->never_use_area = 1;
}
-#if 0
+#if 0 /* Not used by E (yet?) */
else if (atom == _NET_WM_WINDOW_TYPE_TOOLBAR)
{
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/focus.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- focus.c 2 Mar 2004 20:42:45 -0000 1.54
+++ focus.c 14 Mar 2004 09:03:25 -0000 1.55
@@ -347,7 +347,7 @@
if (ewin->pager)
{
-#if 0
+#if 0 /* ??? */
XSelectInput(disp, ewin->client.win,
PropertyChangeMask | FocusChangeMask |
ResizeRedirectMask | StructureNotifyMask |
@@ -476,9 +476,6 @@
void
FocusHandleEnter(XEvent * ev)
{
-#if 0
- Window win = ev->xcrossing.window;
-#endif
EWin *ewin;
EDBUG(5, "FocusHandleEnter");
@@ -519,7 +516,7 @@
FocusToEWin(NULL, FOCUS_SET);
}
-#if 0
+#if 0 /* Remove old code */
void
FocusHandleEnter(XEvent * ev)
{
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/icccm.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- icccm.c 29 Feb 2004 01:30:17 -0000 1.52
+++ icccm.c 14 Mar 2004 09:03:25 -0000 1.53
@@ -78,14 +78,6 @@
if (!(ewin->iconified))
IconifyEwin(ewin);
}
-#if 0
- else if (event->data.l[0] == NormalState)
- {
- if (ewin->iconified)
- DeIconifyEwin(ewin);
- }
- HintsSetWindowState(ewin);
-#endif
}
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/iclass.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- iclass.c 7 Mar 2004 22:48:01 -0000 1.27
+++ iclass.c 14 Mar 2004 09:03:25 -0000 1.28
@@ -42,7 +42,7 @@
if (icm == NULL)
icm = imlib_create_color_modifier();
imlib_context_set_color_modifier(icm);
-#if 0
+#if 0 /* Useful in this context? */
imlib_modify_color_modifier_gamma(0.5);
imlib_modify_color_modifier_brightness(0.5);
imlib_modify_color_modifier_contrast(0.5);
@@ -464,7 +464,7 @@
imlib_context_set_blend(0);
#ifdef ENABLE_THEME_TRANSPARENCY
imlib_context_set_color_modifier(NULL);
-#if 0
+#if 0 /* Do we ever need to free it? */
imlib_free_color_modifier();
#endif
#endif
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/iconify.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- iconify.c 7 Mar 2004 08:14:24 -0000 1.91
+++ iconify.c 14 Mar 2004 09:03:25 -0000 1.92
@@ -1182,7 +1182,7 @@
}
Efree(ib);
}
-#if 0
+#if 0 /* Do not autocreate iconboxes */
else
{
/* If there are no iconboxes, create one. */
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ipc.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -3 -r1.140 -r1.141
--- ipc.c 29 Feb 2004 01:30:17 -0000 1.140
+++ ipc.c 14 Mar 2004 09:03:25 -0000 1.141
@@ -4567,7 +4567,7 @@
return 0;
}
-#if 0
+#if 0 /* Not implemented */
/* The External function designed for attaching to a dialog box
* to return a message back to an external app telling you what
* button was depressed
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/menus.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -3 -r1.109 -r1.110
--- menus.c 11 Mar 2004 23:44:18 -0000 1.109
+++ menus.c 14 Mar 2004 09:03:25 -0000 1.110
@@ -221,7 +221,7 @@
{
ButtonDrawWithState(mode.button, STATE_NORMAL);
}
-#if 0
+#if 0 /* ??? */
RaiseEwin(ewin);
ShowEwin(ewin);
EDBUG_RETURN_;
@@ -1869,7 +1869,7 @@
EDBUG_RETURN(m);
}
-#if 0
+#if 0 /* Not finished */
Menu *
MenuCreateMoveToDesktop(char *name, MenuStyle * ms)
{
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/settings.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -3 -r1.98 -r1.99
--- settings.c 11 Mar 2004 23:44:19 -0000 1.98
+++ settings.c 14 Mar 2004 09:03:26 -0000 1.99
@@ -2379,7 +2379,7 @@
DialogItemSetFill(di, 1, 0);
DialogItemSetColSpan(di, 4);
DialogItemTextSetText(di, _("Effects"));
-#if 0
+#if 0 /* Disabled */
di = DialogAddItem(table, DITEM_CHECKBUTTON);
DialogItemSetPadding(di, 2, 2, 2, 2);
DialogItemSetFill(di, 1, 0);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/snaps.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- snaps.c 7 Mar 2004 13:35:00 -0000 1.62
+++ snaps.c 14 Mar 2004 09:03:26 -0000 1.63
@@ -509,7 +509,7 @@
DialogItemCheckButtonSetState(di, tmp_snap_skiplists);
DialogItemCheckButtonSetPtr(di, &tmp_snap_skiplists);
-#if 0
+#if 0 /* Disabled (why?) */
di = DialogAddItem(table, DITEM_CHECKBUTTON);
DialogItemSetColSpan(di, 2);
DialogItemSetPadding(di, 2, 2, 2, 2);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/theme.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- theme.c 28 Feb 2004 15:14:02 -0000 1.32
+++ theme.c 14 Mar 2004 09:03:26 -0000 1.33
@@ -361,7 +361,7 @@
return;
/* We don't ever get here because mustdel is never set */
-#if 0
+#if 0 /* Don't do recursive theme removal (risky?) */
rmrf(themepath);
#endif
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ttfont.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ttfont.c 11 Mar 2004 23:28:57 -0000 1.30
+++ ttfont.c 14 Mar 2004 09:03:26 -0000 1.31
@@ -944,7 +944,7 @@
/* XUngrabServer(disp); */
/* XFlush(disp); */
-#if 0
+#if 0 /* ??? */
if (xatt.depth == 16)
{
XVisualInfo xvi, *xvir;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/warp.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- warp.c 29 Feb 2004 01:30:18 -0000 1.35
+++ warp.c 14 Mar 2004 09:03:26 -0000 1.36
@@ -60,7 +60,7 @@
if (ev->type != KeyPress && ev->type != KeyRelease)
EDBUG_RETURN(0);
-#if 0
+#if 0 /* Debug */
printf("WarpFocusHandleEvent win=%#x key=%#x(%#x) %d\n",
(unsigned)ev->xkey.window, ev->xkey.keycode,
warpFocusKey, warpFocusTitleShowing);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/x.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -3 -r1.63 -r1.64
--- x.c 19 Jan 2004 22:30:35 -0000 1.63
+++ x.c 14 Mar 2004 09:03:26 -0000 1.64
@@ -562,7 +562,7 @@
{
ok = XGetGeometry(d, win, root_return, x, y, w, h, bw, depth);
}
-#if 0
+#if 0 /* Debug */
if (!ok)
printf("EGetGeometry win=%#x, error %d\n", (unsigned)win, ok);
#endif
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/zoom.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- zoom.c 21 Jan 2004 23:32:45 -0000 1.19
+++ zoom.c 14 Mar 2004 09:03:26 -0000 1.20
@@ -252,7 +252,7 @@
FocusToEWin(ewin, FOCUS_SET);
XWarpPointer(disp, None, ewin->client.win, 0, 0, 0, 0,
ewin->client.w / 2, ewin->client.h / 2);
-#if 0
+#if 0 /* Doesn't work as intended */
XGrabPointer(disp, ewin->client.win, True,
ButtonPressMask | ButtonReleaseMask |
PointerMotionMask | ButtonMotionMask |
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs