[xiph-cvs] cvs commit: postfish clippanel.c version.h

Monty xiphmont at xiph.org
Fri Feb 13 10:35:27 PST 2004



xiphmont    04/02/13 13:35:27

  Modified:    .        clippanel.c version.h
  Log:
  Fix '.01 is irrational in base 2' slider creep in declip trigger slider.

Revision  Changes    Path
1.8       +3 -3      postfish/clippanel.c

Index: clippanel.c
===================================================================
RCS file: /usr/local/cvsroot/postfish/clippanel.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- clippanel.c	13 Feb 2004 18:11:35 -0000	1.7
+++ clippanel.c	13 Feb 2004 18:35:27 -0000	1.8
@@ -56,7 +56,7 @@
 static void trigger_slider_change(GtkWidget *w,gpointer in){
   char buffer[80];
   clipslider *p=(clipslider *)in;
-  gdouble linear=gtk_range_get_value(GTK_RANGE(p->slider));
+  gdouble linear=gtk_range_get_value(GTK_RANGE(p->slider))*.01;
   
   sprintf(buffer,"%1.2f",linear);
   readout_set(READOUT(p->readout),buffer);
@@ -257,7 +257,7 @@
     char buffer[80];
     clipslider *cs=calloc(1,sizeof(*cs));
     GtkWidget *label;
-    GtkWidget *slider=gtk_hscale_new_with_range(.01,1.,.01);
+    GtkWidget *slider=gtk_hscale_new_with_range(1,100,1);
     GtkWidget *readout=readout_new("0.00");
     GtkWidget *readoutdB=readout_new("-40 dB");
     GtkWidget *barframe=gtk_frame_new(NULL);
@@ -272,7 +272,7 @@
     gtk_widget_set_size_request (slider,200,-1);
     gtk_widget_set_name(bar,"clipbar");
     gtk_scale_set_draw_value(GTK_SCALE(slider),FALSE);
-    gtk_range_set_value(GTK_RANGE(slider),1.);
+    gtk_range_set_value(GTK_RANGE(slider),100.);
     gtk_frame_set_shadow_type(GTK_FRAME(barframe),GTK_SHADOW_ETCHED_IN);
 
     switch(input_ch){

<p><p>1.26      +2 -2      postfish/version.h

Index: version.h
===================================================================
RCS file: /usr/local/cvsroot/postfish/version.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- version.h	13 Feb 2004 18:11:35 -0000	1.25
+++ version.h	13 Feb 2004 18:35:27 -0000	1.26
@@ -1,2 +1,2 @@
-#define VERSION "$Id: version.h,v 1.25 2004/02/13 18:11:35 xiphmont Exp $ "
-/* DO NOT EDIT: Automated versioning hack [Fri Feb 13 13:08:35 EST 2004] */
+#define VERSION "$Id: version.h,v 1.26 2004/02/13 18:35:27 xiphmont Exp $ "
+/* DO NOT EDIT: Automated versioning hack [Fri Feb 13 13:34:00 EST 2004] */

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list