<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Gnome::Boolean;
use strict;
use Gtk2;
use utf8;
use Debconf::Encoding qw(to_Unicode);
use base qw(Debconf::Element::Gnome);


sub init {
	my $this=shift;
	my $description=to_Unicode($this-&gt;question-&gt;description);
	
	$this-&gt;SUPER::init(@_);
	
	$this-&gt;widget(Gtk2::CheckButton-&gt;new($description));
	$this-&gt;widget-&gt;show;
	$this-&gt;widget-&gt;set_active(($this-&gt;question-&gt;value eq 'true') ? 1 : 0);
	$this-&gt;addwidget($this-&gt;widget);
	$this-&gt;tip( $this-&gt;widget );
	$this-&gt;addhelp;
}


sub value {
	my $this=shift;

	if ($this-&gt;widget-&gt;get_active) {
		return "true";
	}
	else {
		return "false";
	}
}


1
</pre></body></html>