Re: Simple glib compilation problem: DSO missing from command line

2015-03-27 Thread Lucas Levrel
Le 27 mars 2015, Bruno Cauet a écrit : I'm having trouble compiling stuff with glib. Here it is: $ LANG=C gcc -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -L /usr/lib -l gio-2.0 segfault.c Maybe: $ GTKHDR=$(pkg-config --cflags gtk+-2.0) $ GTKLIB=$(pkg-config --libs gtk+-2.0) $

Re: Re: Re: Re: Re: Getting a Cairo context

2015-03-27 Thread Lucas Levrel
Le 26 mars 2015, Emmanuele Bassi a écrit : What I do in a similar situation is keeping a kind of carbon copy of the bare drawing: - get two pixmaps from the drawing area : bare_pixmap=gdk_pixmap_new(d_area-window,width,height,-1); full_pixmap=gdk_pixmap_new(d_area-window,width,height,-1);

Simple glib compilation problem: DSO missing from command line

2015-03-27 Thread Bruno Cauet
Hi, I'm having trouble compiling stuff with glib. Here it is: $ LANG=C gcc -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -L /usr/lib -l gio-2.0 segfault.c /usr/bin/ld: /usr/lib/libgio-2.0.so: undefined reference to symbol 'g_object_unref' /usr/lib/libgobject-2.0.so.0: error adding

Re: Simple glib compilation problem: DSO missing from command line

2015-03-27 Thread Nicola Fontana
Il Fri, 27 Mar 2015 11:31:59 +0100 Bruno Cauet brunoca...@gmail.com scrisse: Hi, I'm having trouble compiling stuff with glib. Here it is: $ LANG=C gcc -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -L /usr/lib -l gio-2.0 segfault.c /usr/bin/ld: /usr/lib/libgio-2.0.so: undefined

Re: Simple glib compilation problem: DSO missing from command line

2015-03-27 Thread Bruno Cauet
Thank you! I know it would be trivial for some people... Nevermind about the attachments, the C version works fine anyway so the problem probably comes from ctypes... Have a nice day 2015-03-27 11:43 GMT+01:00 Nicola Fontana n...@entidi.it: Il Fri, 27 Mar 2015 11:31:59 +0100 Bruno Cauet

Re: Re: Re: Re: Re: Getting a Cairo context

2015-03-27 Thread Emmanuele Bassi
Hi; On 27 March 2015 at 10:22, Lucas Levrel llev...@yahoo.fr wrote: - draw your background on bare_pixmap - when you have to redraw, just copy bare_pixmap to full_pixmap, add stuff to full_pixmap, then display it: gdk_draw_drawable(full_pixmap,copy_gc,bare_pixmap,0,0,0,0,-1,-1);

Re: Re: Re: Re: Re: Getting a Cairo context

2015-03-27 Thread Emmanuele Bassi
Hi; On 27 March 2015 at 11:24, Lucas Levrel llev...@yahoo.fr wrote: Le 27 mars 2015, Emmanuele Bassi a écrit : After GTK 2.8, you should be using the Cairo API for everything; some Part of your sentence has been cutoff it seems. Ah, yes. I was meaning to link to the migration API, and I