#!/usr/bin/perl -w
# This file was preprocessed, do not edit directly.
package Debconf::Element::Gnome::Boolean;
use strict;
use Gtk;
use base qw(Debconf::Element::Gnome);
sub init {
	my $this=shift;
	$this->SUPER::init(@_);
	$this->widget(Gtk::CheckButton->new($this->question->description));
	$this->widget->show;
	$this->widget->set_active(($this->question->value eq 'true') ? 1 : 0);
	$this->addwidget($this->widget);
	$this->addbutton;
}
sub value {
	my $this=shift;
	if ($this->widget->get_active) {
	    return "true";
	} else {
	    return "false";
	}
}
1
