Reuse the unused popover ui file for i18n
Since the current code uses a handcoded approach for popup construction reuse the unused ui file to keep translatable strings. Since UI file in popover.rs runs through glib the strings get translated. Future rework will allow us to get rid of this duplication but since the ui file went unnoticed for so long who could possibly complain. Closes: #315
This commit is contained in:
@ -1,19 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Generated with glade 3.22.1 -->
|
<!-- Currently only serves translations until we make popover.rs use it -->
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.16"/>
|
<menu>
|
||||||
<object class="GtkPopoverMenu" id="main_menu">
|
<section>
|
||||||
<property name="can_focus">False</property>
|
<item>
|
||||||
<child>
|
<attribute name="label" translatable="yes">Keyboard Settings</attribute>
|
||||||
<object class="GtkBox" id="box">
|
<attribute name="action">settings</attribute>
|
||||||
<property name="visible">True</property>
|
</item>
|
||||||
<property name="can_focus">False</property>
|
</section>
|
||||||
<property name="orientation">vertical</property>
|
</menu>
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="submenu">main</property>
|
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
</interface>
|
</interface>
|
||||||
|
|||||||
Reference in New Issue
Block a user