scrolling a TextView

2005-10-18 Thread Fabio Marzocca
I have a textview packed into a scrolledwindow. The textview buffer is linked to a pipe to display output lines from a spwned process. I need the textview to scroll down while text is inserted in the buffer, otherwise I can't follow the lines. In other words, how to keep in synchro the textview

multiple calls to g_io_channel_read_line and g_free question

2005-10-18 Thread Colossus
Hi, I have a doubt. I call g_io_channel_read_line several times this way: g_io_channel_read_line ( ioc, line, NULL, NULL, NULL ); //do some things on line //shall I g_free (line) here ? g_io_channel_read_line ( ioc, line, NULL, NULL, NULL ); //ecc My doubt is: shall I free line before the

Re: scrolling a TextView

2005-10-18 Thread Iago Rubio
On Tue, 2005-10-18 at 09:50 +0200, Fabio Marzocca wrote: I have a textview packed into a scrolledwindow. The textview buffer is linked to a pipe to display output lines from a spwned process. I need the textview to scroll down while text is inserted in the buffer, otherwise I can't follow the

Re: multiple calls to g_io_channel_read_line and g_free question

2005-10-18 Thread Olivier Sessink
Colossus wrote: [..] g_io_channel_read_line ( ioc, line, NULL, NULL, NULL ); //do some things on line //shall I g_free (line) here ? g_io_channel_read_line ( ioc, line, NULL, NULL, NULL ); //ecc My doubt is: shall I free line before the second call to g_io_channel_read_line or I can call

Re: multiple calls to g_io_channel_read_line and g_free question

2005-10-18 Thread Colossus
Olivier Sessink wrote: newly allocated string means that for every call to g_io_channel_read_line() new memory is allocated, so for every call you have to free the string. Thank you, my doubt is vanished now ! -- Colossus Xarchiver, a GTK2 only archive manager -

Re: multiple calls to g_io_channel_read_line and g_free question

2005-10-18 Thread Tristan Van Berkom
Colossus wrote: Hi, I have a doubt. I call g_io_channel_read_line several times this way: g_io_channel_read_line ( ioc, line, NULL, NULL, NULL ); //do some things on line //shall I g_free (line) here ? g_io_channel_read_line ( ioc, line, NULL, NULL, NULL ); //ecc My doubt is: shall I free

Re: Gtk Xara

2005-10-18 Thread Joshua A. Andler
Colossus wrote: Tomaz Canabrava wrote: Since the Cairo rendering engine is *SLOW* and the Xara Extreme is being ported to linux, with the full API, i think that´s a good idia to port the Gtk engine to use Xara´s System since Who told you Cairo is slow in comparison to Xara Extreme ? Xara

Re: Gtk Xara

2005-10-18 Thread Matthias Clasen
On Tue, 2005-10-18 at 11:08 -0700, Joshua A. Andler wrote: Colossus wrote: Tomaz Canabrava wrote: Since the Cairo rendering engine is *SLOW* and the Xara Extreme is being ported to linux, with the full API, i think that´s a good idia to port the Gtk engine to use Xara´s System

Re: Gtk Xara

2005-10-18 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/18/2005 11:28 AM, David Necas (Yeti) wrote: On Tue, Oct 18, 2005 at 02:17:57PM -0400, Matthias Clasen wrote: This whole discussion is pointless, since GTK+ is LGPL, not GPL... How does this prevent anyone from creating a derived work of

Fwd: data acqusition, display and control

2005-10-18 Thread Premsagar C
-- Forwarded message -- From: Alexandre [EMAIL PROTECTED] Date: Oct 18, 2005 8:44 AM Subject: Re: data acqusition, display and control To: Premsagar C [EMAIL PROTECTED] Hi, I don't have a answaer for your question, but I'm working with data acquisiton and gtk too. I use the

Drag and Drop in GTK+ 2.4 hangs the mouse pointer

2005-10-18 Thread Ashish Bansal
I am experience a problem with GTK DND. It is freezing the mouse pointer when a drag n drop event is fired. Once the mouse is frozen, the whole display is locked and I cannot use my mouse and keyboard. I have to kill the application to get hold of the display. This happens whenever I rapidly drag