mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-23 02:25:54 +01:00
Fixed some // style comments
This commit is contained in:
@@ -178,7 +178,7 @@ testList(WMScreen *scr)
|
|||||||
WMSetLabelText(mtitle, "Multiple selection list");
|
WMSetLabelText(mtitle, "Multiple selection list");
|
||||||
|
|
||||||
list = WMCreateList(win);
|
list = WMCreateList(win);
|
||||||
WMSetListAllowEmptySelection(list, True);
|
/*WMSetListAllowEmptySelection(list, True);*/
|
||||||
WMMoveWidget(list, 10, 40);
|
WMMoveWidget(list, 10, 40);
|
||||||
for (i=0; i<50; i++) {
|
for (i=0; i<50; i++) {
|
||||||
sprintf(text, "Item %i", i);
|
sprintf(text, "Item %i", i);
|
||||||
@@ -186,7 +186,7 @@ testList(WMScreen *scr)
|
|||||||
}
|
}
|
||||||
mlist = WMCreateList(win);
|
mlist = WMCreateList(win);
|
||||||
WMSetListAllowMultipleSelection(mlist, True);
|
WMSetListAllowMultipleSelection(mlist, True);
|
||||||
WMSetListAllowEmptySelection(mlist, True);
|
/*WMSetListAllowEmptySelection(mlist, True);*/
|
||||||
WMMoveWidget(mlist, 210, 40);
|
WMMoveWidget(mlist, 210, 40);
|
||||||
for (i=0; i<135; i++) {
|
for (i=0; i<135; i++) {
|
||||||
sprintf(text, "Item %i", i);
|
sprintf(text, "Item %i", i);
|
||||||
|
|||||||
@@ -471,7 +471,7 @@ vScrollCallBack(WMWidget *scroller, void *self)
|
|||||||
(float)(itemCount - lPtr->fullFitLines);
|
(float)(itemCount - lPtr->fullFitLines);
|
||||||
|
|
||||||
if (oldTopItem != lPtr->topItem)
|
if (oldTopItem != lPtr->topItem)
|
||||||
paintList(lPtr); // use updateScroller(lPtr) here?
|
paintList(lPtr); /* use updateScroller(lPtr) here? -Dan */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WSKnobSlot:
|
case WSKnobSlot:
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ handleActionEvents(XEvent *event, void *data)
|
|||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
if (event->xbutton.button==WINGsConfiguration.mouseWheelUp
|
if (event->xbutton.button==WINGsConfiguration.mouseWheelUp
|
||||||
&&!sPtr->flags.dragging) {
|
&&!sPtr->flags.dragging) {
|
||||||
// Wheel up
|
/* Wheel up */
|
||||||
if (sPtr->value+1<=sPtr->maxValue) {
|
if (sPtr->value+1<=sPtr->maxValue) {
|
||||||
WMSetSliderValue(sPtr, sPtr->value+1);
|
WMSetSliderValue(sPtr, sPtr->value+1);
|
||||||
if (sPtr->flags.continuous && sPtr->action) {
|
if (sPtr->flags.continuous && sPtr->action) {
|
||||||
@@ -492,7 +492,7 @@ handleActionEvents(XEvent *event, void *data)
|
|||||||
}
|
}
|
||||||
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelDown
|
} else if (event->xbutton.button==WINGsConfiguration.mouseWheelDown
|
||||||
&&!sPtr->flags.dragging) {
|
&&!sPtr->flags.dragging) {
|
||||||
// Wheel down
|
/* Wheel down */
|
||||||
if (sPtr->value-1>=sPtr->minValue)
|
if (sPtr->value-1>=sPtr->minValue)
|
||||||
{
|
{
|
||||||
WMSetSliderValue(sPtr, sPtr->value-1);
|
WMSetSliderValue(sPtr, sPtr->value-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user