Re: fontconfig

2005-02-07 Thread Olexiy Avramchenko
Tommy Tam wrote: Has anyone been successful in cross-compiling fontconfig? I'm compiling for the ARM. It is needed for Pango. fontconfig also needs expat and freetype, which I managed to cross-compile fine. I have not been able to find any documentation on how to do this. During the make, i

Re: Are g_try_malloc() and g_free() thread-safe?

2005-02-07 Thread Ben Johnson
I was given and found some answers to my questions. thought I'd share for the good of the curious. On Mon, Feb 07, 2005 at 03:41:42PM -0800, Ben Johnson wrote: ... > how do you remove the risk? you have to compile libc with _REENTRANT? g_malloc(), g_free(), and associated functions are wrappers

Re: Plotting, text drawing, etc.

2005-02-07 Thread Ben Johnson
On Mon, Feb 07, 2005 at 07:28:12PM -0800, James Frye wrote: > Ali, > > Thanks. I'll have a look for future reference, but I figured out a quick > & dirty hack that does what I need. I have the GTK menu program start > gnuplot as a pipe, then re-parent gnuplot's plot window into a GTK widget. > S

Re: Plotting, text drawing, etc.

2005-02-07 Thread James Frye
Ali, Thanks. I'll have a look for future reference, but I figured out a quick & dirty hack that does what I need. I have the GTK menu program start gnuplot as a pipe, then re-parent gnuplot's plot window into a GTK widget. So I stuff gnuplot commands & data into the pipe, and the resulting plot

Re: Problems Compiling GLIB on Solaris

2005-02-07 Thread Daniel Nilsson
On Mon, Feb 07, 2005 at 09:03:59AM -0500, Bluhm, Clayton wrote: > I have tried to compile glib 2.4.6 and glib-2.6.2 on Solaris 8 (and > Solaris 9) with no luck. I can make it through the make, > but not the make install. The make install dies with the following (on > both 2.4.6 and 2.6.2): > >

Re: Are g_try_malloc() and g_free() thread-safe?

2005-02-07 Thread Ben Johnson
On Mon, Feb 07, 2005 at 09:45:44PM +0100, [EMAIL PROTECTED] wrote: > > Can anyone say with certainty whether g_try_malloc() and g_free() are > > thread-safe? I've spent considerable time searching mailing lists and > > googling and have found only sketchy opinions at best. > > glib itself is thre

Why does scribble-simple.c's expose_event handler return false?

2005-02-07 Thread re2824
Hi all. Excuse me, but I'm a newbie to gtk. I understand scribble-simple.c (well, mostly) but I don't understand why 1 of the 4 event handlers returns false. I know that the return value from the event handler is supposed to indicate whether you want the event to be considered as "handled" (dea

Re: Can someone tell me how I can copy a binary file

2005-02-07 Thread Valdis . Kletnieks
On Mon, 07 Feb 2005 13:13:38 +0100, [EMAIL PROTECTED] said: > > Can someone tell me how I can copy a binary file. Is glib not good for > > this? And how should the code be then. A code example would be really > > welcome! thx > > Increase your buffer to be 4096 bytes atleast even much bigger like

fontconfig

2005-02-07 Thread Tommy Tam
Has anyone been successful in cross-compiling fontconfig? I'm compiling for the ARM. It is needed for Pango. fontconfig also needs expat and freetype, which I managed to cross-compile fine. I have not been able to find any documentation on how to do this. During the make, it tries to run th

Re: Are g_try_malloc() and g_free() thread-safe?

2005-02-07 Thread stian
> Can anyone say with certainty whether g_try_malloc() and g_free() are > thread-safe? I've spent considerable time searching mailing lists and > googling and have found only sketchy opinions at best. glib itself is thread safe, while the user-side is not. g_malloc and g_free is thread safe. a GL

Are g_try_malloc() and g_free() thread-safe?

2005-02-07 Thread Christ, Bryan
Can anyone say with certainty whether g_try_malloc() and g_free() are thread-safe? I've spent considerable time searching mailing lists and googling and have found only sketchy opinions at best. Historically, I have been wrapping all of my allocations and releases in a global mutex, but this seem

Re: Can someone tell me how I can copy a binary file

2005-02-07 Thread Olexiy Avramchenko
Kristof Vansant wrote: Can someone tell me how I can copy a binary file. Is glib not good for this? And how should the code be then. A code example would be really welcome! thx If you're using Linux think about sendfile(), 'man sendfile'. This is: +simple, +fast, -nonportable. Olexiy

Problems Compiling GLIB on Solaris

2005-02-07 Thread Bluhm, Clayton
Title: Problems Compiling GLIB on Solaris I have tried to compile glib 2.4.6 and glib-2.6.2 on Solaris 8 (and Solaris 9) with no luck.  I can make it through the make,  but not the make install.  The make install dies with the following (on both 2.4.6 and 2.6.2): Libtool: install: warning

Re: How to implement the GUI interface with a tranfer files window

2005-02-07 Thread Antonio Gomes
Hi, IMHO, you can look inside the structure of a GtkFileSelection. Problaby, you can access the main vbox ... like fileselection_structure->hbox , and add new widgets into it, customizing it to your needs. I did it some times, and it works fine ... Best regards Antonio Gomes On Mon, 7 Feb 2005

Re: Can someone tell me how I can copy a binary file

2005-02-07 Thread stian
> Can someone tell me how I can copy a binary file. Is glib not good for > this? And how should the code be then. A code example would be really > welcome! thx Increase your buffer to be 4096 bytes atleast even much bigger like a megabyte to lessen the number of iterations you need and number of s

Can someone tell me how I can copy a binary file

2005-02-07 Thread Kristof Vansant
Can someone tell me how I can copy a binary file. Is glib not good for this? And how should the code be then. A code example would be really welcome! thx Can someone please help me code this I'm really stuck. Code: EogWindowPrivate *priv; GnomeVFSURI *img_uri; GConfCli