GtkScale GtkHScale with multiple sliders and values?

2007-09-04 Thread v4r4n
I've been trying to figure out how to create a GtkHScale that would let the user determine the beginning, middle, and/or end of a single data set. Ideally the sliders could effect each other, but the overall size of the scale wouldn't need to change. I was thinking I could have a silder on the sc

Re: Conversion functions.

2007-09-04 Thread Yeti
On Tue, Sep 04, 2007 at 11:55:58PM +0200, Magnus Myrefors wrote: > > I tried with strtod() but it only worked with strings with no > decimal-point, otherwise the resulting double was truncated. > ... > > - if the numbers are normal, i.e. supported by underlying > > strtod(), try to use it direct

Re: Conversion functions.

2007-09-04 Thread Magnus Myrefors
I tried with strtod() but it only worked with strings with no decimal-point, otherwise the resulting double was truncated. I also tried to copy g_ascii_strtod() (from glib-2.12-9) into my code but it didn't compile and I didn't quite understand the if-statement if(decimal_point_pos) {} where deci

Re: Conversion functions.

2007-09-04 Thread Yeti
On Tue, Sep 04, 2007 at 04:18:23PM +0200, Magnus Myrefors wrote: > > I tested my code with valgrind and I got some error-messages > that derived from my own code.I changed the code and then > the error-messages disapperad. I still get wrong values that > seem to occur randomly though... > Belo

Re: Conversion functions.

2007-09-04 Thread Magnus Myrefors
I tested my code with valgrind and I got some error-messages that derived from my own code.I changed the code and then the error-messages disapperad. I still get wrong values that seem to occur randomly though... Below is the output from valgrind. It is the end of the error-messages that were

Re: Gobject constructor question

2007-09-04 Thread Peter Clifton
On Tue, 2007-09-04 at 20:34 +0800, Binary Chen wrote: > > > I have a doubt of GObject's constructor machnism, do i need to > explicit > to invoke the parent's constructor in a chiild constructor? Yes, call that first, something along these lines: /* chain up to constructor of parent class */

Gobject constructor question

2007-09-04 Thread Binary Chen
Hi, I have a doubt of GObject's constructor machnism, do i need to explicit to invoke the parent's constructor in a chiild constructor? Thanks. Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: Conversion functions.

2007-09-04 Thread Yeti
On Tue, Sep 04, 2007 at 01:12:11AM +0200, Magnus Myrefors wrote: > > when I start the test I am in the same state > and I use the same text-file evey time. > The converted values can be different > or the same between different test-runs so > the wrong values seem to occur randomly. Then try val