Incorrect switch_page signal after removing a notebook page?



I don't know if anyone else has encountered this behavior.  I have a
notebook with multiple tabs and a handler for the switch_page signal. 
The page_num argument for the switch_page handler is supposed to be the
index of the newly activated page, starting from 0.

It seems that whenever I remove a page with gtk_notebook_remove_page(),
the page_num argument correctly reflects the index of the new active
page, EXCEPT when I remove the very first page (index 0).  When I remove
the first page, the notebook gets rid of the first page as requested,
and the tabs are shifted over such that page 0 is still active, but the
page_num that gets passed into the switch_page handler is 1 instead of
0.

Any ideas?





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