[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Gtk2::Notebook set_current_page issues



Are there any current issues with this not working? The code below
results in page 1 being the page set, regardless of what I try to set it to.

sub notebook{
	my $self=$_[0];

	$self->{notebook}=Gtk2::Notebook->new;

	$self->{notebookSetbgLabel}=Gtk2::Label->new('Set BG');
	$self->{notebook}->append_page($self->setbg(), $self->{notebookSetbgLabel});

	$self->{notebookHistoryLabel}=Gtk2::Label->new('History');
	$self->{notebook}->append_page($self->history(), $self->{notebookHistoryLabel});

	$self->{notebookPathsLabel}=Gtk2::Label->new('Paths');
	$self->{notebook}->append_page($self->paths(), $self->{notebookPathsLabel});

	$self->{notebookSettersLabel}=Gtk2::Label->new('Setters');
	$self->{notebook}->append_page($self->setters(), $self->{notebookSettersLabel});

	$self->{notebook}->set_current_page('0');

	return $self->{notebook};
}

Attachment: signature.asc
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]