~cjwatson/debconf/dbus

« back to all changes in this revision

Viewing changes to Debconf/Element/Gnome/Boolean.pm

  • Committer: joey
  • Date: 2004-01-05 05:16:58 UTC
  • Revision ID: vcs-imports@canonical.com-20040105051658-f686b6d8049b4381
   * Port of the gnome frontend to GNOME2 libs:
   * Debconf/Frontend/Gnome.pm, Debconf/Element/Gnome.pm,
     Debconf/Element/Gnome/*.pm:
     - fixed debian logo exibition
   * Makefile, debian-logo.png, debian-logo.xpm:
     - use a png instead of a xpm to have a cuter interface =P
   * Above changes from Gustavo Noronha Silva. Closes: #225503
   * Fix broken fallback from noninteractive frontend in dpkg-reconfgure.
     Closes: #226205

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
package Debconf::Element::Gnome::Boolean;
10
10
use strict;
11
 
use Gtk;
 
11
use Gtk2;
 
12
use utf8;
12
13
use base qw(Debconf::Element::Gnome);
13
14
 
14
15
=head1 DESCRIPTION
15
16
 
16
17
This is a check box widget.
17
18
 
18
 
=head1 METHODS
19
 
 
20
 
=over 4
21
 
 
22
 
=item init
23
 
 
24
 
Sets up the widget.
25
 
 
26
19
=cut
27
20
 
28
21
sub init {
30
23
 
31
24
        $this->SUPER::init(@_);
32
25
 
33
 
        $this->widget(Gtk::CheckButton->new($this->question->description));
 
26
        $this->widget(Gtk2::CheckButton->new($this->question->description));
34
27
        $this->widget->show;
35
28
        $this->widget->set_active(($this->question->value eq 'true') ? 1 : 0);
36
29
        $this->addwidget($this->widget);
58
51
=head1 AUTHOR
59
52
 
60
53
Eric Gillespie <epg@debian.org>
 
54
Gustavo Noronha Silva <kov@debian.org>
61
55
 
62
56
=cut
63
57