16.02.widget_properties_default 

16.02.widget_properties_default.png

Example 50. File 16.02.widget_properties_default

#! /bin/bash

export DIALOG='
<window title="Question" icon-name="gtk-dialog-question">
  <vbox>
    <hbox>
      <text>
        <label>Label:</label>
      </text>
      <entry activates-default="true">
        <default>Default text</default>
        <variable>ENTRY</variable>
      </entry>
    </hbox>
    <hbox>
      <button cancel></button>
      <button can-default="true" has-default="true" use-stock="true">
        <label>gtk-ok</label>
      </button>
    </hbox>
  </vbox>
</window>
'
gtkdialog --program=DIALOG