### Copyright (C) 1995, 1996, 1997 Jeppe Buk (buk@imada.sdu.dk)
### This program is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 2 of the License, or
### (at your option) any later version.
###
### This program is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
###
### You should have received a copy of the GNU General Public License
### along with this program; if not, write to the Free Software
### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

proc FvwmTalk {} {
  # Modules / FvwmTalk
  Desc "Configuration of the FvwmTalk module"
  ShortDesc "FvwmTalk"

  Header h -text "FvwmTalk" -frame:relief flat \
      -help "On this page you configure the FvwmTalk module. This"\
      "module is used for sending commands to Fvwm2 on-the-fly. This is"\
      "quite a boring page, since the manual doesn't mention any"\
      "configuration at all."
  Line l
  CheckBox spawn -text "Spawn this module when Fvwm2 starts" \
      -help "If you check this option the module will be spawned from"\
      "the two functions 'InitFunction' and 'RestartFunction'. You will"\
      "not have to insert them yourself then."

  Save {
    if {$spawn == 1} {
      print "AddToFunc InitFunction \"I\" Module FvwmTalk"
      print "AddToFunc RestartFunction \"I\" Module FvwmTalk"
    }
  }
}
