Gtk2::Style set methods
- From: Emmanuele Bassi <bassi-e libero it>
- To: GTK-Perl ML <gtk-perl-list gnome org>
- Subject: Gtk2::Style set methods
- Date: Tue, 25 May 2004 17:41:06 +0200
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]