Forcing Image redraw



Hi
I have a gtkmm application containing a Gtk::Image.
In a different thread a pixbuf is created at irregular
but frequent intervals and the image's set()-method with this pixbuf is called

The thread has knowledge of the applications Gtk:Window (m_pWin)
and of the Gtk::Image (m_pImg). After having created the Pixbuf and
set it i do the following:

    m_pImg->queue_draw();

    Glib::RefPtr<Gdk::Window> win = m_pWin->get_window();
    if (win != NULL) {
        Gdk::Rectangle r(0, 0, iW, iH);
        win->invalidate_rect(r, false);
    }

But the image is only refreshed whenever i move the mouse.
Is there any way i can really force the image to be repainted immediately
after i fill its PixBuf?

Thank You
  Jody


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