home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / perl5 / Debconf / Element / Gnome / Password.pm < prev    next >
Encoding:
Perl POD Document  |  2009-03-24  |  580 b   |  38 lines

  1. #!/usr/bin/perl -w
  2. # This file was preprocessed, do not edit!
  3.  
  4.  
  5. package Debconf::Element::Gnome::Password;
  6. use strict;
  7. use Gtk2;
  8. use utf8;
  9. use base qw(Debconf::Element::Gnome);
  10.  
  11.  
  12.  
  13. sub init {
  14.     my $this=shift;
  15.  
  16.     $this->SUPER::init(@_);
  17.     $this->adddescription;
  18.  
  19.     $this->widget(Gtk2::Entry->new);
  20.     $this->widget->show;
  21.     $this->widget->set_visibility(0);
  22.     $this->addwidget($this->widget);
  23.     $this->tip( $this->widget );
  24.     $this->addhelp;
  25. }
  26.  
  27.  
  28. sub value {
  29.     my $this=shift;
  30.     
  31.     my $text = $this->widget->get_chars(0, -1);
  32.     $text = $this->question->value if $text eq '';
  33.     return $text;
  34. }
  35.  
  36.  
  37. 1
  38.