jpeg to bmp with pixbuf; gtk cairo imagemagick libcurl

2009-01-30 Thread Thomas Stover
I've used ImageMagick http://www.imagemagick.org/script/index.php to bring jpegs into cairo surfaces which is similar. They have an api that lets you decode a file to a memory buffer directly. Pay close attention to the different pixel formats. Here is some code that will embarrass me. I pulled

Re: utf-16 and glib

2009-01-30 Thread Thomas Stover
Please, please, please don't switch to UTF-16. To me gtk is about getting to use technologies that are "solid", "real", "fun", and "effective". Principally, that means C and *nix. UTF-8 is the greatest thing for one reason that kills all the others: solid compatibility with both of the above. I

Re: GtkWindow Z-order Issue

2009-01-30 Thread Larry Reaves
On Fri, 2009-01-30 at 08:19 -0800, Sundaram wrote: > Hi Larry, > Yeah, I know of this func. gtk_window_set_keep_above(). But this will > make the window stay 'Always on Top', which will get annoying, as this > is not a conscious decision by the user. The GTK+ API doc. warns us of > this as "Note th

Re: GtkWindow Z-order Issue

2009-01-30 Thread Sundaram
Hi Larry, Yeah, I know of this func. gtk_window_set_keep_above(). But this will make the window stay 'Always on Top', which will get annoying, as this is not a conscious decision by the user. The GTK+ API doc. warns us of this as "Note that, according to the Extended Window Manager Hintsspecifi

Re: GtkWindow Z-order Issue

2009-01-30 Thread Larry Reaves
On Fri, 2009-01-30 at 03:59 -0800, Sundaram wrote: > Hi, > I have written a thesaurus using GTK+. It registers itself for a event > callback with X Server for > a set hot key combination. When I get the call from X, I pop up the > thesaurus' main window with the word looked up. Everything works fi

Re: g_malloc overhead

2009-01-30 Thread Xan Lopez
On Thu, Jan 29, 2009 at 5:02 PM, Xavier Bestel wrote: > On Thu, 2009-01-29 at 16:51 +0200, Tor Lillqvist wrote: >> > I think strncpy() is one of the few that needs an utf8 equivalent, >> > because a char may span several bytes. >> >> Well, he didn't say exactly what semantics he wanted his >> g_ut

Re: g_malloc overhead

2009-01-30 Thread Xan Lopez
On Thu, Jan 29, 2009 at 5:02 PM, Xavier Bestel wrote: > On Thu, 2009-01-29 at 16:51 +0200, Tor Lillqvist wrote: >> > I think strncpy() is one of the few that needs an utf8 equivalent, >> > because a char may span several bytes. >> >> Well, he didn't say exactly what semantics he wanted his >> g_ut

GtkWindow Z-order Issue

2009-01-30 Thread Sundaram
Hi, I have written a thesaurus using GTK+. It registers itself for a event callback with X Server for a set hot key combination. When I get the call from X, I pop up the thesaurus' main window with the word looked up. Everything works fine, but to pop up the window from the system tray, I call the