Mercurial > hg > xemacs-beta
comparison src/scrollbar-x.c @ 436:080151679be2 r21-2-26
Import from CVS: tag r21-2-26
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:31:24 +0200 |
parents | 3ecd8885ac67 |
children | abe6d1db359e |
comparison
equal
deleted
inserted
replaced
435:53cf74a9db44 | 436:080151679be2 |
---|---|
213 wv = xmalloc_widget_value (); | 213 wv = xmalloc_widget_value (); |
214 /* #### maybe should add malloc_scrollbar_values to resource these? */ | 214 /* #### maybe should add malloc_scrollbar_values to resource these? */ |
215 wv->scrollbar_data = xnew (scrollbar_values); | 215 wv->scrollbar_data = xnew (scrollbar_values); |
216 | 216 |
217 wv->name = SCROLLBAR_X_NAME (instance); | 217 wv->name = SCROLLBAR_X_NAME (instance); |
218 wv->name = xstrdup (wv->name); | |
218 wv->value = 0; | 219 wv->value = 0; |
219 wv->key = 0; | 220 wv->key = 0; |
220 wv->enabled = instance->scrollbar_is_active; | 221 wv->enabled = instance->scrollbar_is_active; |
221 wv->selected = 0; | 222 wv->selected = 0; |
222 wv->call_data = NULL; | 223 wv->call_data = NULL; |
276 } | 277 } |
277 } | 278 } |
278 } | 279 } |
279 | 280 |
280 if (!wv->scrollbar_data) abort (); | 281 if (!wv->scrollbar_data) abort (); |
281 xfree (wv->scrollbar_data); | 282 free_widget_value_tree (wv); |
282 wv->scrollbar_data = 0; | |
283 free_widget_value (wv); | |
284 } | 283 } |
285 else if (managed) | 284 else if (managed) |
286 { | 285 { |
287 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID) | 286 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID) |
288 /* This isn't needed with Athena Scrollbars. It might not be needed */ | 287 /* This isn't needed with Athena Scrollbars. It might not be needed */ |