RE: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Madhusudan E
||I am currently attempting to write my first GTK program, which is || a graphical mp3 jukebox frontend to the mpg123 linux command. ||I wish to have each button on a grid correspond to a different mp3 track. ||To do this I pass a pointer to a string (the name of the mp3 file) to the ||respective

Re: Get a character size (height, width) in pango

2006-10-10 Thread Eduardo M KALINOWSKI
Alexandre wrote: > Hi. > > I've searched for it in the pango reference but I haven't found.. > I realy want to know how to get the width and height of a character in > pago, with it's PangoFontDescriptor.. > I know the character's width is not constant, but a average would be ok... > >

GtkTextView input validation difficulty -- paste operation not atomic

2006-10-10 Thread John Boncek
Our applications use GtkTextView widgets with diverse input validation requirements. Some restrict input to numeric digits only, others have length limits and other limits. The validation is done with callbacks on the "insert-text" signal, rejecting any input that is invalid. This has worked we

ink size of glyph

2006-10-10 Thread jim Pharis
I have strings of various languages stored in a database. I can print the strings in my cairo widget no problem. However, I need to figure out what the ink size of the glyph is because different characters are taking up different amounts of space. That is, I need to know how many pixels the charact

Re: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Tomasz Jankowski
06-10-10, Samuel Cormier-Iijima <[EMAIL PROTECTED]> napisaƂ(a): > > Yea, I wasn't sure whether to put a :-( or a :-) ( :-) ). The thing > is, strings getting copied around so often seems like memory waste to > me... when it passes the text to Pango, does that keep a pointer > itself? freetype? ho

Re: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Samuel Cormier-Iijima
Yea, I wasn't sure whether to put a :-( or a :-) ( :-) ). The thing is, strings getting copied around so often seems like memory waste to me... when it passes the text to Pango, does that keep a pointer itself? freetype? how many times is the same text kept multiple times in memory? i guess for s

Re: polling sockets using glib

2006-10-10 Thread Soeren Sandmann
Peter Robinson <[EMAIL PROTECTED]> writes: > I am writing a server application (using glib) in which I want to be > able to (frequently) turn polling on and off for given sockets. You may want to take a look at this: http://www.daimi.au.dk/~sandmann/watch.h http://www.daimi.au.dk/~sandmann/watc

Re: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Yeti
On Tue, Oct 10, 2006 at 01:58:20PM -0400, Samuel Cormier-Iijima wrote: > Whenever you set the text, the widgets will keep copies of the text > for themselves. (they duplicated the string so it's not showing the > actual contents of *your* string). To update it, you'll have to set > the text again f

Re: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Samuel Cormier-Iijima
Whenever you set the text, the widgets will keep copies of the text for themselves. (they duplicated the string so it's not showing the actual contents of *your* string). To update it, you'll have to set the text again for the widgets. :-( Samuel On 10/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

(Easy?) Newbie enquiry re: pointers

2006-10-10 Thread kakuta
I am currently attempting to write my first GTK program, which is a graphical mp3 jukebox frontend to the mpg123 linux command. I wish to have each button on a grid correspond to a different mp3 track. To do this I pass a pointer to a string (the name of the mp3 file) to the respective button ca

Re: polling sockets using glib

2006-10-10 Thread Peter Robinson
[EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mon, Oct 09, 2006 at 09:20:59AM +1000, Peter Robinson wrote: > >> Hi, >> I am writing a server application (using glib) in which I want to be >> able to (frequently) turn polling on and off for given sockets. >> >

Get a character size (height, width) in pango

2006-10-10 Thread Alexandre
Hi. I've searched for it in the pango reference but I haven't found.. I realy want to know how to get the width and height of a character in pago, with it's PangoFontDescriptor.. I know the character's width is not constant, but a average would be ok... Other thing, if I need only to

Problem in creating a new widget.

2006-10-10 Thread Madhusudan E
Hi All, I am creating a new widget say of CLASS A (like class table or so). I need few key press events and I am achieving the same by GtkBindingSet But when I remove the widget from container, as in through (Gtk_container_remove) And then add another widget of same CLASS A to the container. T