comparison src/xs_config.c @ 63:05220299c6e8

Kuumaa paskaa
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 22 Jun 2003 12:10:01 +0000
parents 85811bcd049e
children d3bb914e3af3
comparison
equal deleted inserted replaced
62:0d1df20745dd 63:05220299c6e8
22 #include "xs_config.h" 22 #include "xs_config.h"
23 #include <xmms/configfile.h> 23 #include <xmms/configfile.h>
24 #include <stdio.h> 24 #include <stdio.h>
25 #include "xs_glade.h" 25 #include "xs_glade.h"
26 #include "xs_interface.h" 26 #include "xs_interface.h"
27 27 #include "xs_support.h"
28 28
29 /* 29 /*
30 * Global widgets 30 * Global widgets
31 */ 31 */
32 static GtkWidget *xs_configwin = NULL, 32 static GtkWidget *xs_configwin = NULL,
349 349
350 case WTYPE_SCALE: 350 case WTYPE_SCALE:
351 tmpValue = gtk_range_get_adjustment( 351 tmpValue = gtk_range_get_adjustment(
352 GTK_RANGE(LUW(xs_widtable[i].widName)))->value; 352 GTK_RANGE(LUW(xs_widtable[i].widName)))->value;
353 break; 353 break;
354
355 default:
356 tmpValue = -1;
354 } 357 }
355 358
356 /* Set the value */ 359 /* Set the value */
357 switch (xs_widtable[i].valType) { 360 switch (xs_widtable[i].valType) {
358 case CTYPE_INT: 361 case CTYPE_INT:
542 break; 545 break;
543 546
544 case CTYPE_FLOAT: 547 case CTYPE_FLOAT:
545 tmpValue = *((gfloat *) xs_widtable[i].valData); 548 tmpValue = *((gfloat *) xs_widtable[i].valData);
546 break; 549 break;
550
551 default:
552 tmpValue = -1;
547 } 553 }
548 554
549 /* Set the value */ 555 /* Set the value */
550 switch (xs_widtable[i].widType) { 556 switch (xs_widtable[i].widType) {
551 case WTYPE_SPIN: 557 case WTYPE_SPIN: