write to a file using g_print

2012-08-21 Thread Rudra Banerjee
Is it possible to write to a file using g_print? I was trying something like: FILE *fop = g_open(bib2.bib,w); g_print (%s%s,strcombo,strkey, fop); but its not working. Even fprintf is giving warning and not writing. mkbib.c:114:15: warning: initialization makes pointer from integer without

Re: write to a file using g_print

2012-08-21 Thread David Nečas
On Tue, Aug 21, 2012 at 11:42:53PM +0100, Rudra Banerjee wrote: Is it possible to write to a file using g_print? g_print() is not an interface to print things to *a specific destination*. Quite the opposite. It sends messages to the print handler. Depending on the print handler stup, it do

Re: write to a file using g_print

2012-08-21 Thread Ardhan Madras
g_open() is wrapper to open() syscall, not the standard libc's fopen(). mkbib.c:114:15: warning: initialization makes pointer from integer without a cast [enabled by default] You got this because g_open() returning a int (file descriptor) not a FILE pointer. You must distinguish each I/O

Double Buffer extension on X11

2012-08-21 Thread Christian Hergert
Hi, I was hoping that this topic was beaten to death, but I haven't been able to find any discussion on the topic. I'm not very knowledgeable on the extension (yet), so if you have valuable information on the topic, please share it! Is there a reason that gtk+ doesn't use the DOUBLE-BUFFER

Volunteers needed gtk-doc'ing HarfBuzz

2012-08-21 Thread Behdad Esfahbod
Hi, As part of heading towards releasing HarfBuzz 1.0 this cycle, I'm looking for volunteers annotating HarfBuzz with gtk-doc stubs (no templates!) and fill in documentation. It may, in fact, be a good idea if I work with volunteers on IRC and explain to them what the API does, and let them