c - How do you make sub-widgets of gtk custom widgets editable in Glade? -


I am creating custom GTK + widgets (C) for work and one of the requirements is that editing those widgets Be worthy to be in the glade.

So far it works well, for example, I have a custom button with a widget of the table and a custom specific behavior and some custom specific properties that are edited properly in the glade. Could. / P>

So that's the job, but now I need to allow user to change the properties of buttons (which are in my custom widget) - and only those buttons - from the glade.

It seems possible that many basic GTK widgets (many containers) are highlighting some of their sub-widgets in the glade, for example allowing to edit a GtkFrame label .

But I do not know any document on it. Can anyone explain this thing to explain?

OK I think I've got the answer

The main idea is That's the code that appears in the sub-widgets in the glade, and in fact all specific visual behaviors specific in the glade are written in one, loaded plugins by Glade.

First of all, you can see that there are names in the function with glade_gtk _ prefixes. Glade APIs are used to add those widgets to the widget adapter in Glade.

Those adapters then allow the targeted widget to appear in the glade.

Actually I have found something that I have not read yet:

Someone confirmed:


Comments