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

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,

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 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 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 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 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: How to change color of GtkCellRendererProgress ?

2010-08-02 Thread Shawn Bakhtiar
Sorry this is a bad answer. Of course you can do this!! and that is no reason not to use GTK. You can use the themes, or if you need individual progress bars to be different colors, you can easily derive a GtkCellRenderProgressFooBar class from the GtkCellRendererProgress, which does this, an

How can I read contents from applications' buffer by programming ?

2010-08-02 Thread a qi
HI,ALL for example: I use firefox to open a webpage, how can I read contents of that page ? so that I can filter out unwanted information by programming . Do I need gtk development tools since I am using GNOME desktop ? Any suggestion will be appricated. Thanks. __

GtkPaned gutter position changes when child resizes

2010-08-02 Thread earlgrey
Hello, I have 2 widgets packed in a GtkPaned : === | | | | | | | |