Re: GdkPixmap and GdkPixbuf
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: y g <odysseus lost gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GdkPixmap and GdkPixbuf
- Date: Mon, 6 Jun 2005 19:08:03 +0200
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...
save_image(GtkWidget* widget, gpointer user_data)
GDK_DRAWABLE(pixmap), NULL, 0, 0, 0, 0, 600, 400), "temp.bmp", "bmp",
pixbuf = gdk_pixbuf_get_from_drawable(NULL, GDK_DRAWABLE(pixmap),
gdk_drawable_get_colormap(GDK_DRAWABLE(pixmap)), 0, 0, 0, 0, 600,
gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL);
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...
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Q: What is the most annoying thing on usenet and in e-mail?
] [Thread Prev