Re: Gtk2::Notebook set_current_page issues



On Wed, 2009-02-04 at 06:53 -0600, Zane C.B. wrote:
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.
See
http://library.gnome.org/devel/gtk/unstable/GtkNotebook.html#gtk-notebook-set-current-page
 :
"Note that due to historical reasons, GtkNotebook refuses to switch to a
page unless the child widget is visible. Therefore, it is recommended to
show child widgets before adding them to a notebook."

So adding $self->{notebook}->show_all; before setting the page should
make it work.

Quentin




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