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