Mercurial > dwindows
comparison gtk/dw.c @ 198:11b5da6196c2
Implemented dw_scrollbar_set_range() on Unix and fixed a bug in the test
app.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 20 Jan 2003 11:16:27 +0000 |
parents | 3dc60d60007f |
children | b955228477b3 |
comparison
equal
deleted
inserted
replaced
197:f3718165f0b2 | 198:11b5da6196c2 |
---|---|
3277 } | 3277 } |
3278 DW_MUTEX_UNLOCK; | 3278 DW_MUTEX_UNLOCK; |
3279 } | 3279 } |
3280 | 3280 |
3281 /* | 3281 /* |
3282 * Sets the scrollbar range. | |
3283 * Parameters: | |
3284 * handle: Handle to the scrollbar to be set. | |
3285 * range: Maximum range value. | |
3286 */ | |
3287 void API dw_scrollbar_set_range(HWND handle, unsigned int range) | |
3288 { | |
3289 int _locked_by_me = FALSE; | |
3290 GtkAdjustment *adjustment; | |
3291 | |
3292 if(!handle) | |
3293 return; | |
3294 | |
3295 DW_MUTEX_LOCK; | |
3296 adjustment = (GtkAdjustment *)gtk_object_get_data(GTK_OBJECT(handle), "adjustment"); | |
3297 if(adjustment) | |
3298 adjustment->upper = (gfloat)range; | |
3299 DW_MUTEX_UNLOCK; | |
3300 } | |
3301 | |
3302 /* | |
3282 * Sets the spinbutton value. | 3303 * Sets the spinbutton value. |
3283 * Parameters: | 3304 * Parameters: |
3284 * handle: Handle to the spinbutton to be set. | 3305 * handle: Handle to the spinbutton to be set. |
3285 * position: Current value of the spinbutton. | 3306 * position: Current value of the spinbutton. |
3286 */ | 3307 */ |