How do I change the property of a GTK widget such as a stack?

前端 未结 1 1480
余生分开走
余生分开走 2021-01-14 00:51

I\'ve been taking a quick look at the GTK 3.10 documentation for a GtkStack.

  • https://developer.gnome.org/gtk3/3.10/GtkStack.html

It mentions tha

相关标签:
1条回答
  • 2021-01-14 01:33

    Slight but important distinction: the icon-name isn't a "property" of the child of a GtkStack, it's a "child property" of GtkStack.

    The difference is that a "child property" affects the relation between a container and one of its child widgets, rather than just the container or just the child widget.

    Use this:

    stack.child_set_property(child, 'icon-name', 'go-previous')
    
    0 讨论(0)
提交回复
热议问题