Re: OffscreenWindow returns empty pixbuf




Den 2014-09-02 01:23, Phil Wolff skrev:
Can anybody tell me why this code returns a properly sized Pixbuf with no image data?

When Gtk::OffscreenWindow::get_pixbuf() is called in Test::Test, the OffscreenWindow has not yet been drawn. Try my modified version of your code. When it's started, the window is empty. If you press a mouse button in the window, Test::on_button_press_event() is called, and the label's text is shown.

Kjell

Attachment: example.cc
Description: Text Data



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