function createToggleButton($basewidget, $basefunction, $text_on, $text_off, $bCallGetter)
 {
     $tb = new GtkToggleButton();
     $tb->set_label($tb->get_active() ? $text_on : $text_off);
     if ($bCallGetter) {
         $tb->set_active($basewidget->{'get_' . $basefunction}());
     }
     $tb->connect('toggled', array($this, 'set_toggled'), $basewidget, $basefunction, $text_on, $text_off, $bCallGetter);
     return $tb;
 }