I have tried different ways on getting my text into the reader/editor. But am having trouble figuring it out. Here is the code that I have so far.
Also here is a picture of it as well. Any help would be great thanks.#!/bin/bash
GTKDIALOG=gtkdialog
WORKDIR="/usr/local/Manna"
BOOKS_DIR="$WORKDIR/books"
ICONS_DIR="$WORKDIR/icons"
TEXT_DIR="$WORKDIR/text"
MATTHEW_DIR="$WORKDIR/matthewtxt"
export MAIN_DIALOG='
<window title="Matthew" icon-name="Com">
<frame Chapters>
<hbox>
<vbox width-request="40">
<radiobutton auto-refresh="true"><label>1</label><variable>EDITOR</variable><input file>'"$MATTHEW_DIR/chapter1"'</input></radiobutton>
<radiobutton auto-refresh="true"><label>2</label><variable>EDITOR</variable><input file>'"$MATTHEW_DIR/chapter2"'</input></radiobutton>
<radiobutton><label>3</label></radiobutton>
<radiobutton><label>4</label></radiobutton>
<radiobutton><label>5</label></radiobutton>
</vbox>
<edit editable="false" indent="25">
<variable>EDITOR</variable>
<height>300</height>
<width>530</width>
</edit>
</hbox>
<vbox>
<button ok></button>
</vbox>
</frame>
</window>
'
case $1 in
-d | --dump) echo "$MAIN_DIALOG" ;;
*) $GTKDIALOG --program=MAIN_DIALOG ;;
esac