Re: Gdk RGBA color
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Gdk RGBA color
- Date: Mon, 13 Aug 2012 23:41:31 +0200
On 13.08.2012 17:33, zentara wrote:
$textview1->override_background_color('normal', Gtk3::Gdk::RGBA( 0,0,0,1 ) );
Gtk3::Gdk::RGBA->new (...) should work, but doesn't currently. That's a
genuine hole in the bindings: GdkRGBA is a boxed type which doesn't have
a constructor, which is something Glib::Object::Introspection doesn't
support at the moment. Usually, structs that you are supposed to create
manually (which is something G:O:I does support) don't have a boxed type
associated to them. If GdkRGBA didn't have a boxed type, then {red=>1,
green=>1, ...} would work wherever a GdkRGBA is expected.
It looks like we need to add a standard constructor for boxed types
which don't provide one already.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]