From: Masao Mutoh Date: 2003-09-23T22:45:10+09:00 Subject: Re: Switch to last page in Gtk::Notebook Hi, On Tue, 23 Sep 2003 21:33:34 +0900 Frank Schmitt wrote: > Dario Linsky writes: > > > Hi everybody, > > > > according to the file containing the Ruby/Gnome2 API reference for > > Gtk::Notebook I found the following method description: > > > > --- page=(page_num) > > Switches to the page number page_num. > > * page_num: index of the page to switch to, starting from 0. If > > negative, the last page will be used. If greater than the number of > > pages in the notebook, nothing will be done. > > * Returns: page_num > > > > So I should be able to switch to the last page using a negative value - > > like e.g. -1. To do so I was using the following code: > > > > @notebook.page = -1 > > > > Unfortunately this does not work at all, nothing happens. Is somebody > > able to reproduce that or is a value like -1 no longer a negative value? > > I am currently using another way to bypass the problem but I'd like to > > use this more simple version. This is a bug of Gtk::Notebook#page=. I'll fix it. Thanks for reporting. Masao. -- .:% Masao Mutoh