#!/bin/sh

GTKDIALOG=gtkdialog

#export TMPDIR=/tmp/gtkdialog/examples/"`basename $0`"
#mkdir -p "$TMPDIR"

export TEXTDOMAIN=quickpet
export OUTPUT_CHARSET=UTF-8
. gettext.sh 

MAIN_DIALOG='
<window title="Realtek rtl8192cu USB WiFi Driver" window-position="1">
			<vbox>
	     <text><label>"'"$(gettext "Realtek rtl8192cu kernel module")"'"</label></text>
         <text><label>"'"$(gettext "fixes some usb wifi devices")"'"</label></text>
		     <button tooltip-text="'"$(gettext "install")"' 8192cu.ko">
		        <label>8192cu.ko tahrpup_6.0_noPAE</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qmodule"></input>
				<action>petget http://distro.ibiblio.org/puppylinux/pet_packages-tahr/8192cu_tahrpup_6.0_noPAE-k3.14.20.pet &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' 8192cu.ko">
		        <label>8192cu.ko tahrpup_6.0_PAE  </label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qmodule"></input>
				<action>petget http://distro.ibiblio.org/puppylinux/pet_packages-tahr/8192cu_tahrpup_6.0_PAE-k3.14.20.pet &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' 8192cu.ko">
		        <label>8192cu.ko tahrpup_6.0.2_noPAE</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qmodule"></input>
				<action>petget http://distro.ibiblio.org/puppylinux/pet_packages-tahr/8192cu_tahrpup_602_noPAE-k3.14.20.pet &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' 8192cu.ko">
		        <label>8192cu.ko tahrpup_6.0.2_PAE</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qmodule"></input>
				<action>petget http://distro.ibiblio.org/puppylinux/pet_packages-tahr/8192cu_tahrpup_602_PAE-k3.14.20.pet &</action>
			</button>
		 <text><label>"'"$(gettext "If you have trouble with drop-outs, create the file ")"'"</label></text>
         <text><label>"'"$(gettext "/etc/modprobe.d/8192cu.conf with the line
")"'"</label></text>
<text><label>"'"$(gettext "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0")"'"</label></text>
		    <hbox>
			<button cancel></button>
			</hbox>
			</vbox>
</window>'
GUI="
<window>
 <vbox>
  <menubar>
   ...
  </menubar>
 </vbox>
 <action signal=\"hide\">exit:Exit</action>
</window>"
export MAIN_DIALOG

case $1 in
	-d | --dump) echo "$MAIN_DIALOG" ;;
	*) $GTKDIALOG --program=MAIN_DIALOG ;;
esac

