main: Adapt to GtkHeaderBar API changes

This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 16:51:52 -03:00
parent dc1f68c7bc
commit 6fc250d5cf
1 changed files with 9 additions and 8 deletions

View File

@ -9,11 +9,15 @@
<object class="GtkBox"> <object class="GtkBox">
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="AdwHeaderBar" id="header"> <object class="GtkHeaderBar" id="header">
<property name="show-close-button">True</property> <property name="show-title-buttons">True</property>
<!-- Translators: This is the title of the main window --> <property name="title-widget">
<property name="title" translatable="yes">Parental Controls</property> <object class="AdwWindowTitle">
<child> <!-- Translators: This is the title of the main window -->
<property name="title" translatable="yes">Parental Controls</property>
</object>
</property>
<child type="end">
<object class="GtkMenuButton" id="primary_menu"> <object class="GtkMenuButton" id="primary_menu">
<property name="direction">none</property> <property name="direction">none</property>
<property name="use-popover">True</property> <property name="use-popover">True</property>
@ -23,9 +27,6 @@
<class name="image-button"/> <class name="image-button"/>
</style> </style>
</object> </object>
<packing>
<property name="pack-type">end</property>
</packing>
</child> </child>
</object> </object>
</child> </child>