From 334960a7fb3984dc16de347610367db91b330d58 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 4 Dec 2007 14:43:28 +0000 Subject: kill support for dead "noconfig", "configureApplet" and "register" states --- mdkapplet | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index 386a3311..cfbaf0d3 100755 --- a/mdkapplet +++ b/mdkapplet @@ -123,12 +123,6 @@ my %state = ( menu => [ 'update', 'check', 'weblink' ], tt => [ N_("New bundles are available for your system") ] }, - noconfig => { - colour => [ 'noconf' ], - changes => [ 'okay' ], - menu => [ 'weblink', 'register' ], - tt => [ N_("Service is not configured. Please click on \"Configure the service\"") ] - }, disconnected => { colour => [ 'disconnect' ], changes => [ 'okay', 'busy', 'critical', 'error' ], @@ -212,11 +206,9 @@ my %comm_codes = ( my %actions = ( 'update' => { name => N("Install updates"), launch => sub { installUpdates() } }, - 'configureApplet' => { name => N("Configure the service"), launch => sub { configure() } }, 'check' => { name => N("Check Updates"), launch => \&checkUpdates }, 'weblink' => { name => N("Online WebSite"), launch => sub { mdkonline::get_site($online_site, 'info.php') } }, 'confNetwork' => { name => N("Configure Network"), launch => sub { configNetwork() } }, - 'register' => { name => N("Configure Now!"), launch => sub { configure() } } ); gtkadd(my $icon = Gtk2::TrayIcon->new("MdkApplet"), @@ -553,13 +545,13 @@ sub checkConfig() { } elsif (!isNetwork()) { logIt(N_("Checking Network: seems disabled\n")); go2State('disconnected'); - } elsif (member($state_global, qw(disconnected noconfig))) { + } elsif (member($state_global, qw(disconnected))) { silentCheck(); #- state has changed, update } } sub checkUpdates() { - member($state_global, qw(disconnected noconfig)) or silentCheck(); + member($state_global, qw(disconnected)) or silentCheck(); } sub go2State { -- cgit v1.2.1