Convert png inline into a gdk-pixbuf?

2009-07-09 Thread Till Harbaum
Hi list, How can i decode a png image stored in a memory buffer into a gdk-pixmap without saving it in a file during that process? I have a png image downloaded from the internet and thus now stored in a memory buffer. Now i'd like to convert that into a gdk-pixbuf without saving the file to

Re: Convert png inline into a gdk-pixbuf?

2009-07-09 Thread David Nečas
On Thu, Jul 09, 2009 at 08:46:39AM +0200, Till Harbaum wrote: How can i decode a png image stored in a memory buffer into a gdk-pixmap without saving it in a file during that process? Create a GdkPixbufLoader with gdk_pixbuf_loader_new_with_type(), pass the data with

Re: Re: Convert png inline into a gdk-pixbuf?

2009-07-09 Thread Till Harbaum
Hi, works like a charm, thanks! Till - original Nachricht Betreff: Re: Convert png inline into a gdk-pixbuf? Gesendet: Do, 09. Jul 2009 Von: David Nečasy...@physics.muni.cz On Thu, Jul 09, 2009 at 08:46:39AM +0200, Till Harbaum wrote: How can i decode a png image stored in a

Re: Convert png inline into a gdk-pixbuf?

2009-07-09 Thread David Nečas
On Thu, Jul 09, 2009 at 10:56:44AM +0200, Till Harbaum wrote: one more question, please. Regarding your clean-up. If i want to continue to use the pixbuf but not the loader i do: g_object_ref(pixbuf); g_object_unref(loader); Does this look good to

Re: gtk_file_chooser_hangs

2009-07-09 Thread Michael Cronenworth
arne on 07/09/2009 12:39 AM wrote: I have the problem, that the gtk_file_chooser is not working anymore in my application under win32. I get just a sandglass-curser over it. I get no warning or errormessage on the console. I Setup a new Computer with Mingw and the actual (2009/06/01) All-In

g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Thomas Stover
So as much as I wish there were real (open source) ssh client and server C libraries for the ssh infrastructure, the general approach seems to to be child process with redirected IO on the client (with ssh on *nix and plink.exe on windows). On the server side connecting to a long running

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Thomas Stover on 07/09/2009 02:37 PM wrote: Is all this in anyway better than a maybe a custom tls/ssl server or something? I know this is slightly off topic, but I know everybody has had to ask themselves this same question. It's simple to write a GnuTLS server/client setup. Why don't you

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Thomas Stover
Michael Cronenworth wrote: Thomas Stover on 07/09/2009 02:37 PM wrote: Is all this in anyway better than a maybe a custom tls/ssl server or something? I know this is slightly off topic, but I know everybody has had to ask themselves this same question. It's simple to write a GnuTLS

Re: gtk_file_chooser_hangs

2009-07-09 Thread arne
I just compiled an app with Fedora 11 Mingw (gcc 4.4.0) and I have no problems with gtk_file_chooser. It's possible that whatever you have the default path is a network link or some other path that is not immediately accessible. Is it? I will make a Test, without any Network and without the

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Thomas Stover on 07/09/2009 03:16 PM wrote: I've done an openssl one before, and I'll look at gnutls, but the problems with that route as I see it are mainly: -you have to authenticate connections somehow- portably, and securely. Where as with ssh the OS just provides you with UIDs. I'm not

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Brian J. Tarricone
On 2009/07/09 13:25, Michael Cronenworth wrote: SSH is great for remote terminal sessions, but not much more. I think the sshfs guys might beg to differ with you on that one. As would anyone who uses subversion or git (etc.) over ssh. Or anyone who's tunneled various protocols using ssh's

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Thomas Stover
Michael Cronenworth wrote: You could have a TLS session without x509 auth and just use PAM or LDAP for user auth. Something like that is not provided by a single function call though. In a perfect world a password, another private key, or what ever wouldn't ever enter the picture.

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Brian J. Tarricone on 07/09/2009 03:45 PM wrote: I think the sshfs guys might beg to differ with you on that one. As would anyone who uses subversion or git (etc.) over ssh. Or anyone who's tunneled various protocols using ssh's port forwarding. That's off-topic. I'm not ignorant to

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Michael Cronenworth
Thomas Stover on 07/09/2009 03:55 PM wrote: In a perfect world a password, another private key, or what ever wouldn't ever enter the picture. ssh-agent / pageant.exe work so darn well once you get up and running. It's already sad enough that there is no way to merge this world with https

performance degrading with win32 version

2009-07-09 Thread Manu TM
Hi! I now have another question about the linux app ported to winxp. It's a ticker app that reads then renders a text file to a pixmap (a tall single-line image), then it kind of scrolls the pixmap by drawing a part of it to a drawing_area, using gdk_draw_drawable() within a timeout handler

usb plug/unplug notifications

2009-07-09 Thread Garth's KidStuff
Hi All, I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the right way to handle device discovery. Is there a way to get a notification when something happens in the usb world? Thanks in advance. -Garth -- Garth Upshaw Garth's KidStuff

Re: usb plug/unplug notifications

2009-07-09 Thread John Coppens
On Thu, 9 Jul 2009 17:38:24 -0500 Garth's KidStuff garthskidst...@gmail.com wrote: I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the right way to handle device discovery. Is there a way to get a notification when something happens in the

Re: usb plug/unplug notifications

2009-07-09 Thread Ardhan Madras
For desktop application (because we are GTK+ forum) there is HAL (Hardware Abstraction Layer) http://www.freedesktop.org/wiki/Software/hal to receive events and informations from devices and the kernel, gnome-volume-manager use HAL to know when a device has been attached then do some task that

Re: usb plug/unplug notifications

2009-07-09 Thread Michael Cronenworth
On 07/09/2009 09:14 PM, Ardhan Madras wrote: For desktop application (because we are GTK+ forum) there is HAL (Hardware Abstraction Layer) http://www.freedesktop.org/wiki/Software/hal to receive events and informations from devices and the kernel, gnome-volume-manager use HAL to know when a