On Thu, Mar 01, 2012 at 07:35:19AM +0100, z...@excite.it wrote: > Date: Thu, 1 Mar 2012 07:35:19 +0100 > From: z...@excite.it > Subject: Re: oops > To: gtk-app-devel-list@gnome.org > > On Thursday 01 March 2012 04:05:22 Gary Kline wrote: > > On Wed, Feb 29, 2012 at 06:46:50PM -0800, Gary Kline wrote: > > > Date: Wed, 29 Feb 2012 18:46:50 -0800 > > > From: Gary Kline <kl...@thought.org> > > > Subject: oops > > > To: GTK Devel List <gtk-app-devel-list@gnome.org> > > > > > > well, here's the story: i have a file that creates four hscale > > > widgets. 0 to 100. [optionally, four scrollbars that are in sync > > > with the hscale widgets. ok, the thing is: how do i capture the > > > user's choice from these horizontal bars and save thedir values to a > > > config file? > > > > > > amybody? i'm wedged. > > > > > > gary > > > > > Sorry for this:: but is there such a thing as a "save > > button" option? lets say that the user choses 23 for his > > pitch. could i have a save button confirm and write that > > vsalue?? if so, how exactly? > > > > scratching my head... -gk. > > > > > > > > > > > > Hi, > gtk_adjustment_get_value () ? > > Ciao, > zz
hmmm. the last two lines should grab the hscale value [i thought]; but nope:: void scale_set_default_values (GtkScale *scale) { gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits (scale, 0); // Zero digits after N. gtk_scale_set_value_pos (scale, GTK_POS_TOP); gtk_scale_set_draw_value (scale, TRUE); double value = gtk_range_get_value(scale); fprintf(stdout,"hscale value: %g\n",value); } i'll play around with gtk_adjustment_get_value() and see what it does. i'm trying to follow that gespeaker does; but in C. thanks, gary > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Voice By Computer (for Universal Access): http:/www.thought.org/vbc The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list