Can I make a custom widget subclass GtkText, and access all it's functions?

Hi everybody, I’ve made a custom widget that implement GtkEditable by delegating it to GtkText which is a field of my widget. But I’d like my custom widget to be usable by gtk_text_get_text_length like so : gtk_text_get_text_lentgh(GTK_TEXT(MyCustomWidget)) is it possible ?

No, it’s not possible. You’ll need to write your own getter function that returns the value from the internal GtkText widget.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.