#!/bin/bash
#gettext
export TEXTDOMAIN=ptiming
export OUTPUT_CHARSET=UTF-8

[ -z "$IMG" ] && IMG="dialog-error"
[ -z "$FRAME" ] && FRAME="$(gettext 'Error')"

export ok_box="
<window title=\"pTiming\" icon-name=\"ptiming\">
 <vbox>
  <frame $FRAME>
   <pixmap icon_size=\"6\"><input file stock=\"gtk-$IMG\"></input></pixmap>
   <text use-markup=\"true\"><label>\"$TXT1\"</label></text>
   <text use-markup=\"true\"><label>\"$TXT2\"</label></text>
  </frame>
  <hbox>
   <button can-default=\"true\" has-default=\"true\" use-stock=\"true\">
    <input file stock=\"gtk-ok\"></input>
    <label>$(gettext 'Ok')</label>
   </button>
  </hbox>
 </vbox>
</window>"
gtkdialog -p ok_box --center
TXT1=""; TXT2=""; IMG=""; FRAME="" #reset to avoid alien values in next box