summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-10-01 13:40:11 +0000
committerThierry Vignaud <tv@mandriva.org>2007-10-01 13:40:11 +0000
commit34ead85e80ba15ef6ddab8899bdf79e849a8c469 (patch)
tree4370d523a219c2da18353b312a53af9a3a21a293 /mdkapplet
parent65e3285e88c8f45d455e6fae846fedc0befe15f5 (diff)
downloadmgaonline-34ead85e80ba15ef6ddab8899bdf79e849a8c469.tar
mgaonline-34ead85e80ba15ef6ddab8899bdf79e849a8c469.tar.gz
mgaonline-34ead85e80ba15ef6ddab8899bdf79e849a8c469.tar.bz2
mgaonline-34ead85e80ba15ef6ddab8899bdf79e849a8c469.tar.xz
mgaonline-34ead85e80ba15ef6ddab8899bdf79e849a8c469.zip
(my_sprintf_fixutf8) kill it (unused since 2006.6 but triggered by
msec permissions (#34323))
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet8
1 files changed, 2 insertions, 6 deletions
diff --git a/mdkapplet b/mdkapplet
index de57ca31..934f07f0 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -74,10 +74,6 @@ my %config = getVarsFromSh('/etc/sysconfig/mdkapplet');
$config{UPDATE_FREQUENCY} ||= 3*60*60; # default to 3hours
$config{FIRST_CHECK_DELAY} ||= 25 * 1000; # default to 25 seconds
-sub my_sprintf_fixutf8 {
- mdkonline::get_release() < 2006.0 ? common::sprintf_fixutf8(@_) : @_;
-}
-
my $insensitive_while_running_a_child;
@@ -367,7 +363,7 @@ sub refresh_contents {
my $contents = [ [ N("Network Connection: "), $color->{second} ], [ isNetwork() ? N("Up") . "\n" : N("Down") . "\n", isNetwork() ? $color->{third} : $color->{first} ],
[ N("Last check: "), $color->{second} ], [ "$last\n", $fixed_tag ],
[ N("Machine name:"), $color->{second} ], [ $h{HOST_NAME} . "\n", $fixed_tag ],
- [ N("Updates: "), $color->{second} ], [ my_sprintf_fixutf8($state{$status}{tt}[0]), $status eq 'okay' ? $color->{third} : $color->{first} ],
+ [ N("Updates: "), $color->{second} ], [ $state{$status}{tt}[0], $status eq 'okay' ? $color->{third} : $color->{first} ],
];
$contents;
}
@@ -621,7 +617,7 @@ sub setState {
my $arr = $state{$state_type}{menu};
my $tmp = gtkcreate_pixbuf($state{$state_type}{colour}[0]);
$img->set_from_pixbuf($tmp);
- gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(my_sprintf_fixutf8(translate($state{$state_type}{tt}[0]))));
+ gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(translate($state{$state_type}{tt}[0])));
my $menu = Gtk2::Menu->new;
foreach (@$arr) {
$menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($actions{$_}{name})), activate => $actions{$_}{launch}));