Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
At 12:26 PM 12/27/2006, Daniel Yek wrote: >At 11:51 AM 12/27/2006, [EMAIL PROTECTED] wrote: > >On Wednesday 27 December 2006 20:23, Daniel Yek wrote: > > > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > > > *_interface.c files from Glade-2. > > > > >Maybe: > > > >#define

GObject destruction

2006-12-27 Thread Mukund
Hi all The GObject API docs state something like this: "It is possible that object methods might be invoked after dispose is run and before finalize runs. GObject does not consider this to be a program error: you must gracefully detect this and neither crash nor warn the user. To do this, you nee

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Yeti
On Wed, Dec 27, 2006 at 12:44:50PM -0800, Daniel Yek wrote: > > gdk_pixbuf_unref() is undefined in LSB 3.1, so I can't leave them there. > http://refspecs.freestandards.org/LSB_3.1.0/LSB-Desktop-generic/LSB-Desktop-generic/libgtk-x11-2.0.html > http://refspecs.freestandards.org/LSB_3.1.0/LSB-Deskt

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
At 11:49 AM 12/27/2006, David wrote: >On Wed, Dec 27, 2006 at 11:23:16AM -0800, Daniel Yek wrote: > > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > > *_interface.c files from Glade-2. > > > > Is there a recommended way to do that? Is Glade-2 going to be fixed to not > >

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
At 11:51 AM 12/27/2006, [EMAIL PROTECTED] wrote: >On Wednesday 27 December 2006 20:23, Daniel Yek wrote: > > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > > *_interface.c files from Glade-2. > > > > Is there a recommended way to do that? Is Glade-2 going to be fixed to n

Re: GObject ref counting

2006-12-27 Thread Samuel Cormier-Iijima
On 12/27/06, Samuel Cormier-Iijima <[EMAIL PROTECTED]> wrote: > In a single threaded app, I don't think it would matter too much. That is, if you're not calling other callbacks within that function of course :-) > However, if you're using multiple threads that handle this object, > unless you kno

Re: GObject ref counting

2006-12-27 Thread Samuel Cormier-Iijima
In a single threaded app, I don't think it would matter too much. However, if you're using multiple threads that handle this object, unless you know exactly what's happening it's probably a good idea. I could be wrong about this though, can anyone back this up? (at least, that's what I do with gobj

GObject ref counting

2006-12-27 Thread Philip Kovacs
Is it good practice always to ref count GObject's passed into functions -- even if you know for certain that the primary reference is in your control, i.e. the first reference cannot be unref'd by surprise? For large, complex objects with many api's, most of which are private, I find that all th

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread zz
On Wednesday 27 December 2006 20:23, Daniel Yek wrote: > Hi, > > Glade-3 was released as stable a few months ago, right? > > I saw http://glade.gnome.org stated that Glade-3 requires GTK+ 2.8. Does it > mean that the resulting application requires GTK+2.8 too? Or was it a > requirement for the

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Yeti
On Wed, Dec 27, 2006 at 11:23:16AM -0800, Daniel Yek wrote: > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > *_interface.c files from Glade-2. > > Is there a recommended way to do that? Is Glade-2 going to be fixed to not > produce deprecated function calls? > > This

Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
Hi, Glade-3 was released as stable a few months ago, right? I saw http://glade.gnome.org stated that Glade-3 requires GTK+ 2.8. Does it mean that the resulting application requires GTK+2.8 too? Or was it a requirement for the development machine only? My application baseline is GTK+ 2.4; does

How to capture mouse movements independend of a Window?

2006-12-27 Thread Andreas Stricker
Hi I try to do something that is similar to some 3D projection plan window rotating/shifting function: When a key is pressed, the relative mouse movement should be recorded. I'm primary interested if somebody solved a similar problem or got an idea how to solve this. I like to use a Key-Combinat

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 27, 2006 at 12:02:01PM +0200, Zeeshan Ali wrote: > Hello Tomas! > > >> Just a thought: Wouldn't it be a better idea to use a library [...] > 2. The API is a bit different in the upcoming release: 0.2. Yes, it seemed to me too that t

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread Zeeshan Ali
Hi again! On 12/27/06, Zeeshan Ali <[EMAIL PROTECTED]> wrote: > > In Tony's case, he might have to extract the fd from the SSH_SESSION > > object (is there an interface for that?) to be able to stuff it into a > > GIOChannel (not very difficult. I've done it with a database socket). On > > the plu

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread Zeeshan Ali
Hello Tomas! > > Just a thought: Wouldn't it be a better idea to use a library > > instead of a command when one is available: libssh > > (http://www.0xbadc0de.be/libssh:libssh). > > Thanks. Didn't know about that. Just from a cursory glance at the doc: > > * what I like >clean, abstract

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 27, 2006 at 10:33:38AM +0200, Zeeshan Ali wrote: > On 12/27/06, Tony Freeman <[EMAIL PROTECTED]> wrote: > > Hello, > >Hi! > > > I need some example code or a tutorial for how to pipe output from a > > process to a GtkTextBuffer. > > >

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread Zeeshan Ali
On 12/27/06, Tony Freeman <[EMAIL PROTECTED]> wrote: > Hello, Hi! > I need some example code or a tutorial for how to pipe output from a > process to a GtkTextBuffer. > > The idea of this program is to spawn off 6 or more ssh commands and have > the output go to it's own textbuffer in it's ass