Re: How to get a drawing area widget as a file?.



On 4/28/06, sadhees kumar <sadheeskumar gmail com> wrote:
gtk_widget_realize(da_setting_ff);

pixbuf =
gdk_pixbuf_get_from_drawable(NULL,GTK_DRAWABLE(da_setting_ff)->window [...]

That should be GTK_DRAWABLE(GTK_WIDGET(da_setting_ff)->window) probably...

[...]
gdk_pixbuf_save (pixbuf, "/root/handle.bmp", "bmp",NULL, "100", NULL);

"/root/" o_O

--
Kalle Vahlman, zuh iki fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]