Gorshkov wrote:
> How do you hide a tab/make it invisible in a GtkNotebook? I haven't been 
> able to find anything in the API. I've tried setting the label 
> insensitive and hiding it, but that doesn't seem to be working?
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 
> 

Thanks for the hints, folks _ solved with, with the clues you all give 
me. Don't you just HATE it when things are so blindly obvious when 
you've finally clued in? :-)

Solution olution is as follows:

void HideTab(GtkNotebook *notebook, int pagenumber)
{
        GtkWidget *page;

        page = gtk_notebook_get_nth_page(notebook, pagenumber);
        gtk_widget_hide(page);
}

void ShowTab(GtkNotebook *notebook, int pagenumber)
{
        GtkWidget *page;

        page = gtk_notebook_get_nth_page(notebook, pagenumber);
        gtk_widget_show(page);
        gtk_notebook_set_current_page(notebook, pagenumber);
}
        
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to