Re: setting style xthickness/ythickness
- From: Quentin Sculo <squentin free fr>
- To: gtk-perl-list gnome org
- Subject: Re: setting style xthickness/ythickness
- Date: Thu, 08 Apr 2010 14:38:17 +0200
On Thu, 2010-04-08 at 10:29 +1000, Kevin Ryde wrote:
Is there a right way to set field values in a Gtk2::Style, like
xthickness. $style->xthickness() is only an accessor, if I'm not
mistaken.
I think that works :
my $rcstyle=$widget->get_modifier_style;
# or my $rcstyle=Gtk2::RcStyle->new;
$rcstyle->xthickness(0);
$rcstyle->ythickness(0);
$widget->modify_style($rcstyle);
Though I'm not sure why you can't do $style->xthickness(0) directly.
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-modify-style
has more info
Quentin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]