=head1 LICENSE
-Copyright (c) 2007-2008 by Ricardo Mones Lastra
+Copyright (c) 2007-2009 by Ricardo Mones Lastra
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
h_gui_dot_lines => _('Use the old dotted line look in the main window tree views (Folder, Message and other lists) instead of the modern lineless look.'),
l_gui_h_scroll => _('Enable horizontal scrollbar'),
h_gui_h_scroll => _('Enable the horizontal scrollbar in the Message List.'),
- l_gui_swp_from => _('Dislay To column instead From column in Sent folder'),
+ l_gui_swp_from => _('Display To column instead From column in Sent folder'),
h_gui_swp_from => _('Display the recipient\'s email address in a To column of the Sent folder instead of the originator\'s one in a From column.'),
l_gui_v_scroll => _('Folder List scrollbar behaviour'),
h_gui_v_scroll => _('Specify the policy of vertical scrollbar of Folder List: show always, automatic or hide always.'),
# version functions
-sub version_greater() {
+sub version_greater_or_equal() {
my ($version, $refvers) = @_;
my @version = split (/\./, $version);
my @refvers = split (/\./, $refvers);
++$idx;
}
return TRUE if (($idx > $#refvers)
- or (int ($version[$idx]) > int ($refvers[$idx])));
+ or (int ($version[$idx]) >= int ($refvers[$idx])));
return FALSE;
}
}
}
+sub set_widget_sens() {
+ my ($wdgt, $minver) = @_;
+ $wdgt->set_sensitive (&version_greater_or_equal ($CLAWSV, $minver));
+}
+
# graphic element creation
sub new_check_button_for {
&handle_bool_value($w, $e, \$HPVALUE{$name});
});
&set_widget_hint ($cb, $$hash{$key}[DESC]);
+ &set_widget_sens ($cb, $$hash{$key}[CMVER]);
$hbox->pack_start ($cb, FALSE, FALSE, HBOX_SPC);
#
return $hbox;
&handle_int_value($w, $e, \$HPVALUE{$name});
});
&set_widget_hint ($gentry, $$hash{$key}[DESC]);
+ &set_widget_sens ($gentry, $$hash{$key}[CMVER]);
+ $glabel->set_sensitive ($gentry->sensitive);
$hbox->pack_start ($glabel, FALSE, FALSE, HBOX_SPC);
$hbox->pack_start ($gentry, FALSE, FALSE, HBOX_SPC);
#
&handle_color_value($w, $e, \$HPVALUE{$name});
});
&set_widget_hint ($button, $$hash{$key}[DESC]);
+ &set_widget_sens ($button, $$hash{$key}[CMVER]);
+ $glabel->set_sensitive ($button->sensitive);
$hbox->pack_start ($button, FALSE, FALSE, HBOX_SPC);
$hbox->pack_start ($glabel, FALSE, FALSE, HBOX_SPC);
#
});
$combo->set_active ($HPVALUE{$name});
&set_widget_hint ($combo, $$hash{$key}[DESC]);
+ &set_widget_sens ($combo, $$hash{$key}[CMVER]);
+ $glabel->set_sensitive ($combo->sensitive);
$hbox->pack_start ($glabel, FALSE, FALSE, HBOX_SPC);
$hbox->pack_start ($combo, FALSE, FALSE, HBOX_SPC);
#
&command_line_fatal ("required a dotted numeric value")
unless ($ARGV[$arg] =~ /[\d\.]+/);
$CLAWSV = $ARGV[$arg];
+ last;
};
/--alternate-config-dir/ && do {
++$arg;
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.";
- my $year = "2007";
+ my $year = "2007-2009";
my $holder = "Ricardo Mones <ricardo\@mones.org>";
my $dialog = Gtk2::MessageDialog->new_with_markup ($parent,