Mercurial > hg > xemacs-beta
comparison src/scrollbar-x.c @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | a145efe76779 |
children | 5a88923fcbfe |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
187 update_one_scrollbar_bs (struct frame *f, Widget sb_widget) | 187 update_one_scrollbar_bs (struct frame *f, Widget sb_widget) |
188 { | 188 { |
189 Boolean use_backing_store; | 189 Boolean use_backing_store; |
190 | 190 |
191 XtVaGetValues (FRAME_X_TEXT_WIDGET (f), | 191 XtVaGetValues (FRAME_X_TEXT_WIDGET (f), |
192 XtNuseBackingStore, &use_backing_store, 0); | 192 XtNuseBackingStore, &use_backing_store, NULL); |
193 | 193 |
194 if (use_backing_store && sb_widget) | 194 if (use_backing_store && sb_widget) |
195 { | 195 { |
196 unsigned long mask = CWBackingStore; | 196 unsigned long mask = CWBackingStore; |
197 XSetWindowAttributes attrs; | 197 XSetWindowAttributes attrs; |
307 | 307 |
308 /* mirror the value in the frame resources, unless it was already | 308 /* mirror the value in the frame resources, unless it was already |
309 done. */ | 309 done. */ |
310 if (!in_resource_setting) | 310 if (!in_resource_setting) |
311 XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarWidth, | 311 XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarWidth, |
312 XINT (newval), 0); | 312 XINT (newval), NULL); |
313 | 313 |
314 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) | 314 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) |
315 { | 315 { |
316 req.request_mode = 0; | 316 req.request_mode = 0; |
317 | 317 |
349 created -- the widgets don't even exist yet, and even if they | 349 created -- the widgets don't even exist yet, and even if they |
350 did, we wouldn't want to overwrite the resource information | 350 did, we wouldn't want to overwrite the resource information |
351 (which might specify a user preference). */ | 351 (which might specify a user preference). */ |
352 if (!in_resource_setting) | 352 if (!in_resource_setting) |
353 XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarHeight, | 353 XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarHeight, |
354 XINT (newval), 0); | 354 XINT (newval), NULL); |
355 | 355 |
356 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) | 356 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) |
357 { | 357 { |
358 req.request_mode = 0; | 358 req.request_mode = 0; |
359 | 359 |