write-ups-challenges-2022-2023/super-hightech-paint/super-hightech-paint-2/buildfiles/ui/validate_field.glade
2022-11-24 22:59:22 +01:00

67 lines
2.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkWindow" id="validate_window">
<property name="can-focus">False</property>
<property name="title" translatable="yes">Super High Tech Paint</property>
<property name="resizable">False</property>
<property name="window-position">center</property>
<property name="default-width">500</property>
<property name="default-height">300</property>
<property name="gravity">center</property>
<child>
<!-- n-columns=1 n-rows=3 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="row-spacing">6</property>
<property name="row-homogeneous">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="label" translatable="yes">Please enter a valid license key</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="entry_key">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="max-length">120</property>
<property name="xalign">0.5</property>
<property name="placeholder-text" translatable="yes">XXXX-XXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button_validate">
<property name="label" translatable="yes">Validate</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="has-focus">True</property>
<property name="receives-default">True</property>
<property name="halign">center</property>
<signal name="clicked" handler="button_validate_clicked" object="entry_key" swapped="no"/>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">2</property>
</packing>
</child>
</object>
</child>
</object>
</interface>