Re: display/update a jpeg image?



On 12/19/06, muppet <scott asofyet org> wrote:
snip
        # There should be a way to figure out from perl whether this is
        # necessary, but i don't feel like poking at the docs that much. :-P
        if ($use_viewport) {
                $scroller->add_with_viewport ($widget);
        } else {
                $scroller->add ($widget);
        }
snip

IIRC,  the reason you need a viewport is the lack of a gdk window on
some widgets.  If so then

       if ($widget->no_window) {
               $scroller->add_with_viewport ($widget);
       } else {
               $scroller->add ($widget);
       }

should work.



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