summaryrefslogtreecommitdiff
path: root/src/SetWMCW.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SetWMCW.c')
-rw-r--r--src/SetWMCW.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/SetWMCW.c b/src/SetWMCW.c
index 56ba936..44b0103 100644
--- a/src/SetWMCW.c
+++ b/src/SetWMCW.c
@@ -60,9 +60,10 @@ in this Software without prior written authorization from The Open Group.
*/
void
-XtSetWMColormapWindows(widget, list, count)
-Widget widget, *list;
-Cardinal count;
+XtSetWMColormapWindows(
+ Widget widget,
+ Widget *list,
+ Cardinal count)
{
Window *data;
Widget *checked, *top, *temp, hookobj;
@@ -81,7 +82,7 @@ Cardinal count;
/*
- * The specification calls for only adding the windows that have unique
+ * The specification calls for only adding the windows that have unique
* colormaps to the property to this function, so we will make a pass through
* the widget list removing all the widgets with non-unique colormaps.
*
@@ -90,7 +91,7 @@ Cardinal count;
for (checked_count = 0, i = 0; i < count; i++) {
if (!XtIsRealized(list[i])) continue;
-
+
*checked = list[i];
match = FALSE;
@@ -99,7 +100,7 @@ Cardinal count;
* to check it against.
*/
- if (checked != top)
+ if (checked != top)
for (j = 0, temp = top; j < checked_count ; j++, temp++)
if ( (*temp)->core.colormap == (*checked)->core.colormap) {
match = TRUE;
@@ -129,7 +130,7 @@ Cardinal count;
xa_wm_colormap_windows = XInternAtom(XtDisplay(widget),
"WM_COLORMAP_WINDOWS", FALSE);
- XChangeProperty(XtDisplay(widget), XtWindow(widget),
+ XChangeProperty(XtDisplay(widget), XtWindow(widget),
xa_wm_colormap_windows, XA_WINDOW, 32,
PropModeReplace, (unsigned char *) data, (int) i);
@@ -141,8 +142,8 @@ Cardinal count;
call_data.widget = widget;
call_data.event_data = (XtPointer) list;
call_data.num_event_data = count;
- XtCallCallbackList(hookobj,
- ((HookObject)hookobj)->hooks.changehook_callbacks,
+ XtCallCallbackList(hookobj,
+ ((HookObject)hookobj)->hooks.changehook_callbacks,
(XtPointer)&call_data);
}