Re: Conversion functions.

2007-09-05 Thread Allin Cottrell
On Tue, 4 Sep 2007, 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... As Yeti said, you should try wr

distance in pixels between 2 GtkTextIters

2007-09-05 Thread Nick Gravgaard
Hi, I'm trying to figure out how to get the distance in pixels between 2 GtkTextIters. At the moment I'm using gtk_text_iter_get_slice() to get a char pointer, and then using gtk_widget_create_pango_layout() and getting the width from that using pango_layout_get_pixel_size(). The problem with this

XGetWindowAttributes: 1x1 pixel for GTK apps?

2007-09-05 Thread Adenilson Cavalcanti
Friends I'm trying to get the dimensions (width and height) of current 'in focus' window using XGetWindowAttributes. It works fine with KDE or Xlib based applications, but fails with all GTK based applications (window_attr.width and window_attr.height reports just '1'). The same behavior h

Re: Conversion functions.

2007-09-05 Thread Matí­as Alejandro Torres
What's the input file like? Can you attach a part of it? If you do so, I can make a try on reading it. Matías ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkScale GtkHScale with multiple sliders and values?

2007-09-05 Thread G Hasse
Hello, You could also look at http://www.raditex.se/~gh/TestHandleBar.gif The source is at http://www.raditex.se/~gh/HandleBar.tar In this widget you can move the left, right and slide the bar to move the center. -- Göran Hasse --

Re: GtkScale GtkHScale with multiple sliders and values?

2007-09-05 Thread v4r4n
I might end up doing something like John suggested earlier, but GIMP's Color > Levels... > Input Levels is very close to what I want, but I don't need the graph on top... Three triangles, three spin buttons, and a single horizontal bar that they all relate to... now if only I could identify where

Re: Conversion functions.

2007-09-05 Thread Magnus Myrefors
I managed to compile g_ascii_strtod() in my own code. I obtain the same result though. I use another function that I want to look how it is coded and it is the function g_ascii_isdigit(). I have searced for it in glib-2.12-9 but I didn't find it... /Magnus On Wed, 5 Sep 2007 00:47:36 +0200 David

Re: Pass multiple arguments to a signal event

2007-09-05 Thread Yeti
On Wed, Sep 05, 2007 at 03:58:25PM +0200, [EMAIL PROTECTED] wrote: > I can't figure how to pass multiple arguments to a signal event.I'll be very > grateful if someone could explain it to me or write some example. You can pass a pointer and this is enough becuase a pointer can point to arbitraril

Pass multiple arguments to a signal event

2007-09-05 Thread pespin
Hello, I can't figure how to pass multiple arguments to a signal event.I'll be very grateful if someone could explain it to me or write some example. For example, let's say I have in a window 2 entries and a button. How can I pass the 2 entry widgets to the signal function for working with them

Re: GtkScale GtkHScale with multiple sliders and values?

2007-09-05 Thread Dave Howorth
[EMAIL PROTECTED] wrote: > On 9/5/07, v4r4n <[EMAIL PROTECTED]> wrote: >> 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. Sounds like you're looking for something like the control used by the Gimp

Re: GtkScale GtkHScale with multiple sliders and values?

2007-09-05 Thread jcupitt
On 9/5/07, v4r4n <[EMAIL PROTECTED]> wrote: > 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 ch