'Cannot convert arbitrary SV to GValue' when setting child property of GtkStack
- From: Daniel Kasak <d j kasak dk gmail com>
- To: GTK-Perl List <gtk-perl-list gnome org>
- Subject: 'Cannot convert arbitrary SV to GValue' when setting child property of GtkStack
- Date: Tue, 9 Aug 2016 10:39:08 +1000
Hi all.
I'm trying to set the 'needs-attention' property of a GtkStack's child page.
When I go:
use Glib qw( TRUE FALSE );
my $needs_attention = FALSE;
if ( $self->{ 'Column' . $i . 'Datasheet' }->count ) {
$needs_attention = TRUE;
}
my $child = $self->{stack}->get_child_by_name( 'page' . $i );
$self->{stack}->child_set_property(
$child
, 'needs-attention'
, $needs_attention
);
... I get:
Cannot convert arbitrary SV to GValue'
The 'needs-attention' property ( doc:
https://developer.gnome.org/gtk3/stable/GtkStack.html ) says that the
property is a 'gboolean'. How do I get a gboolean?
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]