Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
> > Well, I can't see why this variant crashes -- so I compiled > it and run under valgrind, and it didn't crash and valgrind > even didn't print any (relevant) error. If other image > formats crash too for you, you probably have to use debugger > to find out what's going on... > OK, lets start

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread David Necas (Yeti)
On Mon, Jun 06, 2005 at 04:21:33PM +0100, y g wrote: > > ok i see what you mean... but the following still seg faults... no > warnings this time... > > static void > save_image(GtkWidget* widget, gpointer user_data) > { > GdkPixbuf* pixbuf; > > g_print("Saving image...\n"); > //gdk_pixbuf_

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
On 6/6/05, David Necas (Yeti) <[EMAIL PROTECTED]> wrote: > On Mon, Jun 06, 2005 at 03:52:32PM +0100, y g wrote: > > I already did as I realised that neither is a child of the other as > > you say. But I am still get seg fault with the following: > > > > static void > > save_image(GtkWidget* widget,

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread David Necas (Yeti)
On Mon, Jun 06, 2005 at 03:52:32PM +0100, y g wrote: > I already did as I realised that neither is a child of the other as > you say. But I am still get seg fault with the following: > > static void > save_image(GtkWidget* widget, gpointer user_data) > { > GdkPixbuf* pixbuf; > > g_print("Saving

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
On 6/6/05, David Necas (Yeti) <[EMAIL PROTECTED]> wrote: > On Mon, Jun 06, 2005 at 03:22:51PM +0100, y g wrote: > > after following the scribble example on the Gtk tutorial I try to save > > the image produced. Looking on the documentation of GdkPixbuf I found > > I could use the following which ho

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread David Necas (Yeti)
On Mon, Jun 06, 2005 at 03:22:51PM +0100, y g wrote: > after following the scribble example on the Gtk tutorial I try to save > the image produced. Looking on the documentation of GdkPixbuf I found > I could use the following which however gives me a segmentation fault > in my program. > > static

GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
Hi, after following the scribble example on the Gtk tutorial I try to save the image produced. Looking on the documentation of GdkPixbuf I found I could use the following which however gives me a segmentation fault in my program. static GdkPixmap *pixmap = NULL; gdk_pixbuf_save(GDK_PIXBUF(pixmap)