#!/bin/bash

#gettext
export TEXTDOMAIN=pprocess
export OUTPUT_CHARSET=UTF-8

if [ -z "$IMG" ]; then IMG="dialog-error"; fi
if [ -z "$FRAME" ]; then FRAME="$(gettext 'Error')"; fi
export ok_box="
<window title=\"Pprocess\" icon-name=\"gtk-execute\">
 <vbox>
  <frame $FRAME>
   <pixmap icon_size=\"6\"><input file stock=\"gtk-$IMG\"></input></pixmap>
   <text use-markup=\"true\"><label>\"$TXT1\"</label></text>
   <text><label>\"$TXT2\"</label></text>
  </frame>
  <hbox>
   <button can-default=\"true\" has-default=\"true\" use-stock=\"true\">
    <input file icon=\"gtk-apply\"></input>
    <label>Ok</label>
   </button>
  </hbox>
 </vbox>
</window>"
gtkdialog3 --program=ok_box --center
TXT1=""; TXT2=""; IMG=""; FRAME="" #reset to avoid alien values in next box