Re: GtkNotebook "switch-page" Signal

2010-01-09 Thread Carlos Pereira
This is a typical callback for the switch-page signal: void my_callback (GtkNotebook *notebook, GtkNotebookPage *notebook_page, int page, void *data) { GtkWidget* vbox_page; vbox_page = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page); 1) page is the number (0 = first page, etc.) of th

Re: progress popup and flushing events

2010-01-09 Thread Tadej Borovšak
Hello. > I'm trying to display a popup status window while my application does a > search. It works, but only appears after the search is done because I'm not > flushing the requests and processing the events. What is the right way to do > that in GTK? It would probably be best to do searching in

progress popup and flushing events

2010-01-09 Thread Chris Bare
I'm trying to display a popup status window while my application does a search. It works, but only appears after the search is done because I'm not flushing the requests and processing the events. What is the right way to do that in GTK? -- Chris Bare ch...@bareflix.com ___

Re: GtkNotebook "switch-page" Signal

2010-01-09 Thread David Nečas
On Sat, Jan 09, 2010 at 07:56:53AM -0500, dhk wrote: > 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". Mi

Re: GtkNotebook "switch-page" Signal

2010-01-09 Thread dhk
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

Re: GtkNotebook "switch-page" Signal

2010-01-09 Thread dhk
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 >> p

Re: GtkNotebook "switch-page" Signal

2010-01-09 Thread David Nečas
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 thr