15.02.window_signals 

15.02.window_signals.png

Example 47. File 15.02.window_signals

#! /bin/bash

export DIALOG='
<window title="Example Window" icon-name="gtk-dialog-warning">
  <vbox>
    <frame Description>
      <text>
        <label>Text</label>
      </text>
    </frame>
    <hbox>
      <button ok></button>
      <button cancel></button>
    </hbox>
  </vbox>
  <action signal="button-press-event">echo delete-event</action>
</window>
'
gtkdialog --program=DIALOG