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
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to