Re: Notebooks and page numbers

2010-08-02 Thread David Nečas
On Mon, Aug 02, 2010 at 09:24:20AM -0400, Jeff Clough wrote: > On Mon, 2010-08-02 at 15:11 +0200, David Nečas wrote: > > > Anyway, if you need to maintain an association if the tabs do change you > > can use a widget name → widget map for page identification (easy with > > names set in Glade or si

Re: Notebooks and page numbers

2010-08-02 Thread Jeff Clough
On Mon, 2010-08-02 at 15:11 +0200, David Nečas wrote: > Anyway, if you need to maintain an association if the tabs do change you > can use a widget name → widget map for page identification (easy with > names set in Glade or simply using object-data on the notebook) and > gtk_notebook_page_num() t

Re: Notebooks and page numbers

2010-08-02 Thread David Nečas
On Mon, Aug 02, 2010 at 08:50:30AM -0400, Jeff Clough wrote: > On Mon, 2010-08-02 at 20:22 +0800, Gregory Hosler wrote: > > > a pages page number can and will change whenever it's position in the number > > sequence 0 to N-1 changes. > > Are there situations where something internal to GTK will c

Re: Notebooks and page numbers

2010-08-02 Thread Colomban Wendling
Le 02/08/2010 14:50, Jeff Clough a écrit : > On Mon, 2010-08-02 at 20:22 +0800, Gregory Hosler wrote: > >> a pages page number can and will change whenever it's position in the number >> sequence 0 to N-1 changes. > > Are there situations where something internal to GTK will change this? > To be

Re: Notebooks and page numbers

2010-08-02 Thread Jeff Clough
On Mon, 2010-08-02 at 20:22 +0800, Gregory Hosler wrote: > a pages page number can and will change whenever it's position in the number > sequence 0 to N-1 changes. Are there situations where something internal to GTK will change this? To be more specific, if I'm interested in page 2 (and have th

Re: Notebooks and page numbers

2010-08-02 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2010 07:34 PM, Jeff Clough wrote: > Reading the docs, it looks like every page of a notebook has a > zero-based index number I can easily retrieve. It also look like there > are ways to re-order the pages in a notebook which may, or may not,