mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
9416856420
This is not necessary, whenever we want to set the initial focus in a ui file, we can set GtkWindow:focus-widget.
18 lines
557 B
XML
18 lines
557 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow" id="window1">
|
|
<property name="decorated">0</property>
|
|
<property name="focus-widget">button1</property>
|
|
<child>
|
|
<object class="GtkButton" id="button1">
|
|
<property name="name">reference</property>
|
|
<property name="label" translatable="yes">Hello World</property>
|
|
<property name="receives_default">1</property>
|
|
<style>
|
|
<class name="button-not-image"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|