Re: How to get a GtkNotebook tab label if not explicitly set?

Shane Butler wrote:


Can someone tell me if it is possible to get the GtkLabel from a
GtkNotebook if you have not explicitly set the widget yourself?

It's impossible with a public API.

gtk_notebook_get_tab_label() returns NULL unless you do set your own
widget as the tab label. But I would like to be able to access the
widget for some glade3 stuff...

Notebook use default tab label (and so you get NULL as result of gtk_*get_tab_label) only when you use gtk_container_add() function for appending child. Am I right ? If so, do you have any reason to not use gtk_notebook_append_child() ?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]