Gtk2::Style set methods



Hi everyone.

I was asked, by someone on Usenet, how to make a widget's background
"opaque". I want with the usual "take a snapshot of the drawable in
background and play with the alpha channel" routine, but while coding a
pseudo-code example, I noticed in the Gtk2-Perl XS code that the
Gtk2::Style accessor methods are just "getters", and that there's no way
to set a, for instance, bg_pixmap, like:

        $style = $widget->style->copy;
        $style->bg_pixmap('normal') = $pixmap;

I've never really worked on this low-level stuff, so I could be missing
something really obvious here.

Ciao,
 Emmanuele.

-- 
Emmanuele Bassi (Zefram)                 [ http://www.emmanuelebassi.net ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4



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