How to pack a button in a HeaderBar using Genie?

后端 未结 1 573
南旧
南旧 2021-01-24 06:26

Background

My aim is to improve a little text editor as an exercise. It is running fine after the HeaderBar was added, however I can\'t find a way to pack buttons in i

相关标签:
1条回答
  • 2021-01-24 07:07

    You are trying to call pack_start on the button, not on the headerbar:

    // Add everything to the toolbar
    open_button.pack_start ()
    

    The correct code is:

    headerbar.pack_start (open_button)
    
    0 讨论(0)
提交回复
热议问题