mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 02:25:46 +01:00
- Fixed all // comments
- Final cleanups
This commit is contained in:
@@ -732,8 +732,6 @@ void WMSetViewDragDestinationProcs(WMView *view, WMDragDestinationProcs *procs);
|
||||
|
||||
/* ....................................................................... */
|
||||
|
||||
//Bool WMHasAntialiasingSupport(WMScreen *scrPtr);
|
||||
|
||||
Bool WMIsAntialiasingEnabled(WMScreen *scrPtr);
|
||||
|
||||
/* ....................................................................... */
|
||||
|
||||
@@ -130,31 +130,6 @@ struct W_DraggingInfo {
|
||||
W_DragDestinationInfo* destInfo; /* infos needed by destination */
|
||||
} W_DraggingInfo;
|
||||
|
||||
/* original
|
||||
struct W_DraggingInfo {
|
||||
Window destinationWindow;
|
||||
Window sourceWindow;
|
||||
|
||||
WMPoint location;
|
||||
|
||||
unsigned sourceOperation;
|
||||
WMPixmap *image;
|
||||
WMPoint imageLocation;
|
||||
|
||||
char **types;
|
||||
|
||||
Time timestamp;
|
||||
|
||||
int protocolVersion;
|
||||
|
||||
// should be treated as internal data
|
||||
WMView *sourceView;
|
||||
WMView *destView;
|
||||
WMSize mouseOffset;
|
||||
unsigned finished:1;
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
typedef struct W_Screen {
|
||||
Display *display;
|
||||
|
||||
@@ -176,8 +176,8 @@ sendTimeout(void *cdata)
|
||||
clearOutputQueue(cPtr);
|
||||
cPtr->state = WCTimedOut;
|
||||
cPtr->timeoutState = WCTWhileSending;
|
||||
// should we close it no matter what (after calling the didTimeout
|
||||
// delegate)? -Dan
|
||||
/* // should we close it no matter what (after calling the didTimeout
|
||||
// delegate)? -Dan */
|
||||
if (cPtr->delegate && cPtr->delegate->didTimeout) {
|
||||
(*cPtr->delegate->didTimeout)(cPtr->delegate, cPtr);
|
||||
} else {
|
||||
|
||||
@@ -425,8 +425,9 @@ sendEnterMessage(WMDraggingInfo *info)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// this functon doesn't return something in all cases.
|
||||
// control reaches end of non-void function. fix this -Dan
|
||||
// control reaches end of non-void function. fix this -Dan */
|
||||
static Bool
|
||||
sendPositionMessage(WMDraggingInfo *info, WMPoint *mousePos)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,6 @@ WMInitializeApplication(char *applicationName, int *argc, char **argv)
|
||||
assert(argv!=NULL);
|
||||
assert(applicationName!=NULL);
|
||||
|
||||
/* // TODO: check if to move inside #ifdef I18N */
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
#ifdef I18N
|
||||
|
||||
@@ -374,7 +374,7 @@ WMSetFontPanelFont(WMFontPanel *panel, char *fontName)
|
||||
} else {
|
||||
/* maybe its proper xlfd and we can convert it to an FcPattern */
|
||||
pattern = XftXlfdParse(fontName, False, False);
|
||||
//FcPatternPrint(pattern);
|
||||
/*//FcPatternPrint(pattern);*/
|
||||
}
|
||||
|
||||
if (!pattern)
|
||||
|
||||
@@ -4019,7 +4019,7 @@ WMGetTextSelectionFont(WMText *tPtr)
|
||||
void
|
||||
WMSetTextSelectionUnderlined(WMText *tPtr, int underlined)
|
||||
{
|
||||
// check this
|
||||
/* // check this */
|
||||
if (underlined!=0 && underlined!=1)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user