comparison lwlib/xlwcheckbox.c @ 3072:4c038e89d563

[xemacs-hg @ 2005-11-16 07:22:37 by stephent] Assorted minor fixes. TODO comment in configure.ac: <87irutytzq.fsf@tleepslib.sk.tsukuba.ac.jp> Avoid warning, don't redefine integer types on Mac OS X: <87ek5hytvq.fsf@tleepslib.sk.tsukuba.ac.jp> Fix uninitialized variable: <87acg5yttp.fsf@tleepslib.sk.tsukuba.ac.jp> Eliminate warnings for unused parameters and functions: <8764qtytrp.fsf@tleepslib.sk.tsukuba.ac.jp> Quiet byte-compiler in select.el: <871x1hytow.fsf@tleepslib.sk.tsukuba.ac.jp> Quiet compiler about unused parameters in sound.el: <87wtj9xf16.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 16 Nov 2005 07:22:46 +0000
parents 04bc9d2f42c7
children 383ab474a241
comparison
equal deleted inserted replaced
3071:a80f978d8342 3072:4c038e89d563
223 static void 223 static void
224 CheckboxInit (Widget UNUSED (request), 224 CheckboxInit (Widget UNUSED (request),
225 #if DRAW_CHECK 225 #if DRAW_CHECK
226 Widget new, 226 Widget new,
227 #else 227 #else
228 Widget UNUSED (new), 228 Widget UNUSED (new_),
229 #endif 229 #endif
230 ArgList UNUSED (args), 230 ArgList UNUSED (args),
231 Cardinal *UNUSED (num_args)) 231 Cardinal *UNUSED (num_args))
232 { 232 {
233 #if DRAW_CHECK 233 #if DRAW_CHECK
234 CheckboxWidget cw = (CheckboxWidget) new; 234 CheckboxWidget cw = (CheckboxWidget) new_;
235 cw->checkbox.checkmark = None ; 235 cw->checkbox.checkmark = None ;
236 cw->checkbox.checkmark_GC = None ; 236 cw->checkbox.checkmark_GC = None ;
237 #endif 237 #endif
238 } 238 }
239 239
278 * junk, garbage - not used. 278 * junk, garbage - not used.
279 * Returns: none. 279 * Returns: none.
280 */ 280 */
281 281
282 /* ARGSUSED */ 282 /* ARGSUSED */
283 #if DRAW_CHECK
283 static void 284 static void
284 CheckboxDestroy ( 285 CheckboxDestroy (
285 #if DRAW_CHECK
286 Widget w, 286 Widget w,
287 #else
288 Widget UNUSED (w),
289 #endif
290 XtPointer UNUSED (junk), 287 XtPointer UNUSED (junk),
291 XtPointer UNUSED (garbage)) 288 XtPointer UNUSED (garbage))
292 { 289 {
293 #if DRAW_CHECK
294 CheckboxWidget cw = (CheckboxWidget) w; 290 CheckboxWidget cw = (CheckboxWidget) w;
295 291
296 /* TODO: cache this via xmu */ 292 /* TODO: cache this via xmu */
297 if( cw->checkbox.checkmark != None ) 293 if( cw->checkbox.checkmark != None )
298 XFreePixmap( XtDisplay(w), cw->checkbox.checkmark ) ; 294 XFreePixmap( XtDisplay(w), cw->checkbox.checkmark ) ;
299 if( cw->checkbox.checkmark_GC != None ) 295 if( cw->checkbox.checkmark_GC != None )
300 XtReleaseGC(w, cw->checkbox.checkmark_GC) ; 296 XtReleaseGC(w, cw->checkbox.checkmark_GC) ;
301 #endif 297 }
302 } 298 #endif /* DRAW_CHECK */
303 299
304 300
305 301
306 #if DRAW_CHECK 302 #if DRAW_CHECK
307 /************************************************************ 303 /************************************************************