Re: Memory leaks

2011-02-09 Thread Jeff Clough
On Wed, 2011-02-09 at 17:22 -0500, Allin Cottrell wrote: > I'm afraid you're talking through your hat here. Have your ever > worked through the code for even a simple shared library that > saves state? Freeing all memory on exit can be useful as a > debugging exercise (e.g. if you get a segfault

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 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

Notebooks and page numbers

2010-08-02 Thread Jeff Clough
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, change the indexes of these pages. What are the "rules" as to how these pages are numbered and