Re: Gdk RGBA color
- From: Emmanuele Bassi <ebassi gmail com>
- To: zentara <zzmiloschxx gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gdk RGBA color
- Date: Mon, 13 Aug 2012 16:55:00 +0100
hi;
On 13 August 2012 16:33, zentara <zzmiloschxx gmail com> wrote:
I'm trying to utilize the c functions:
gtk_widget_override_color()
gtk_widget_override_background_color()
not a great plan; if you want to modify the style, use an app-specific
StyleContext
The problem I'm facing is that a blessed Gdk::RGBA object is required.
How do I do it?
I tried this ( with a few variations) :
$textview1->override_background_color('normal', Gtk3::Gdk::RGBA( 0,0,0,1 ) );
but no luck.
Any clues on how to create the RGBA object?
a RGBA object is just a boxed type, like the Color object in Gtk2, so
Gtk3::Gdk::RGBA->new(0, 0, 1, 1,) should work. if it doesn't, it means
you need to add an override.
ciao,
Emmanuele.
--
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]