Mercurial > hg > xemacs-beta
comparison src/scrollbar-x.c @ 165:5a88923fcbfe r20-3b9
Import from CVS: tag r20-3b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:44:42 +0200 |
parents | 0132846995bd |
children | 3d6bfa290dbd |
comparison
equal
deleted
inserted
replaced
164:4e0740e5aab2 | 165:5a88923fcbfe |
---|---|
185 /* Used by x_update_scrollbar_instance_status. */ | 185 /* Used by x_update_scrollbar_instance_status. */ |
186 static void | 186 static void |
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 Arg al [1]; |
191 XtVaGetValues (FRAME_X_TEXT_WIDGET (f), | 191 |
192 XtNuseBackingStore, &use_backing_store, NULL); | 192 XtSetArg (al [0], XtNuseBackingStore, &use_backing_store); |
193 XtGetValues (FRAME_X_TEXT_WIDGET (f), al, 1); | |
193 | 194 |
194 if (use_backing_store && sb_widget) | 195 if (use_backing_store && sb_widget) |
195 { | 196 { |
196 unsigned long mask = CWBackingStore; | 197 unsigned long mask = CWBackingStore; |
197 XSetWindowAttributes attrs; | 198 XSetWindowAttributes attrs; |
306 width. */ | 307 width. */ |
307 | 308 |
308 /* mirror the value in the frame resources, unless it was already | 309 /* mirror the value in the frame resources, unless it was already |
309 done. */ | 310 done. */ |
310 if (!in_resource_setting) | 311 if (!in_resource_setting) |
311 XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarWidth, | 312 { |
312 XINT (newval), NULL); | 313 Arg al [1]; |
314 XtSetArg (al [0], XtNscrollBarWidth, XINT (newval)); | |
315 XtSetValues (FRAME_X_TEXT_WIDGET (f), al, 1); | |
316 } | |
313 | 317 |
314 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) | 318 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) |
315 { | 319 { |
316 req.request_mode = 0; | 320 req.request_mode = 0; |
317 | 321 |
348 done. Also don't do it if this is the when the frame is being | 352 done. Also don't do it if this is the when the frame is being |
349 created -- the widgets don't even exist yet, and even if they | 353 created -- the widgets don't even exist yet, and even if they |
350 did, we wouldn't want to overwrite the resource information | 354 did, we wouldn't want to overwrite the resource information |
351 (which might specify a user preference). */ | 355 (which might specify a user preference). */ |
352 if (!in_resource_setting) | 356 if (!in_resource_setting) |
353 XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarHeight, | 357 { |
354 XINT (newval), NULL); | 358 Arg al [1]; |
359 XtSetArg (al [0], XtNscrollBarHeight, XINT (newval)); | |
360 XtSetValues (FRAME_X_TEXT_WIDGET (f), al, 1); | |
361 } | |
355 | 362 |
356 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) | 363 if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f))) |
357 { | 364 { |
358 req.request_mode = 0; | 365 req.request_mode = 0; |
359 | 366 |