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 17:01:16 +0200
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:
save_image(GtkWidget* widget, gpointer user_data)
GDK_DRAWABLE(pixmap), NULL, 0, 0, 0, 0, 600, 400), "temp.bmp", "bmp",
gdk_pixbuf_get_from_drawable(pixbuf, GDK_DRAWABLE(pixmap), NULL, 0,
Here you pass an uninitialized pointer as pixbuf...
0, 0, 0, 600, 400);
gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL);
...and again. Don't you get any CRITICAL messages to
pixbuf = gdk_pixbuf_get_from_drawable(NULL, drawable, ...);
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