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

I create custom Gtk + widgets (in C) to work, and one of the requirements is that these widgets must be editable in Glade.

While this works well, I have, for example, a widget from a table with buttons in it and with customizable specific behavior and some customizable specific properties that can be edited correctly in Gladade.

So this is work, but now I need the user to be able to change the properties of the buttons (which are inside my custom widget) - and only those buttons - from Glade.

It seems possible, since many basic Gtk widgets (many containers) expose some of their movements in the meadow, allowing, for example, editing the GtkFrame label.

But I can not find any documentation about this. Can someone explain how to do this?

+3
source share
1 answer

Ok, I think I found the answer (after several days of searching and querying on the Gtk forum).

The main idea is that the code that makes visible widgets visible in the meadow, but in fact, all the specific visual behavior characteristic of the meadow, is written in the C pluggin loaded by the meadow.

-, , Glade Gtk +, glade_gtk_. C, , API- glade Glade.

.

, : http://library.gnome.org/devel/gladeui/stable/catalog.html

- : http://www.gtkforums.com/viewtopic.php?p=18030#18030

+2

Source: https://habr.com/ru/post/1766788/


All Articles