Re: GtkNotebook "switch-page" Signal



dhk wrote:
David NeÄas wrote:
On Fri, Jan 08, 2010 at 05:59:27PM -0500, dhk wrote:
When changing from one tab to another in a GtkNotebook I often need to
know the tab that was selected.  It seems the "switch-page" signal just
tells the current page and there are functions that tell the current
page and will navigate through the page, but I don't see anything that
will tell tell the destination page or the tab that received the signal.

Does anyone know how to determine this?
"switch-page" gives you the new page (i.e. the page the notebook is
switching to).  What is `destination' page if not this?

Yeti



It looks like it gives the page I switched from, but I want the page I
switched to.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Never mind.  I was getting the page number from the notebook not the
page number parameter of the "switch-page" callback.  The documentation
doesn't specify which page the index is for, it just says "page_num :
the index of the page".

Thanks,

dhk






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