~ubuntu-branches/ubuntu/precise/padre/precise

« back to all changes in this revision

Viewing changes to lib/Padre/Wx/History/ComboBox.pm

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2010-05-08 09:17:22 UTC
  • mfrom: (1.2.1 upstream) (10.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100508091722-y6008jtk0ap6znyn
Tags: 0.60.ds1-3
rules: run tests with HOME=$fake_home to avoud failing when $HOME points
to a non-existent location. Closes: #579289

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
use Padre::DB          ();
10
10
use Padre::DB::History ();
11
11
 
12
 
our $VERSION = '0.50';
 
12
our $VERSION = '0.60';
13
13
our @ISA     = 'Wx::ComboBox';
14
14
 
15
15
sub new {
43
43
 
44
44
        # If this is a value is not in our recent list, save it.
45
45
        if ( defined $value and length $value ) {
46
 
                unless ( $self->FindString($value) == Wx::wxNOT_FOUND ) {
 
46
                if ( $self->FindString($value) == Wx::wxNOT_FOUND ) {
47
47
                        Padre::DB::History->create(
48
48
                                type => $self->{type},
49
49
                                name => $value,
56
56
 
57
57
1;
58
58
 
59
 
# Copyright 2008-2009 The Padre development team as listed in Padre.pm.
 
59
# Copyright 2008-2010 The Padre development team as listed in Padre.pm.
60
60
# LICENSE
61
61
# This program is free software; you can redistribute it and/or
62
62
# modify it under the same terms as Perl 5 itself.