diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2005-07-27 14:59:31 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2005-07-27 14:59:31 +0000 |
commit | 5decb267cfe432ed03ca176168e26717c7f79627 (patch) | |
tree | db23d123245ec114343587b9dd284db38d61916b /perl-install/standalone/printerdrake | |
parent | 97c8aa84aa55784e12c28ea68a54c3b57a97f3f7 (diff) | |
download | drakx-5decb267cfe432ed03ca176168e26717c7f79627.tar drakx-5decb267cfe432ed03ca176168e26717c7f79627.tar.gz drakx-5decb267cfe432ed03ca176168e26717c7f79627.tar.bz2 drakx-5decb267cfe432ed03ca176168e26717c7f79627.tar.xz drakx-5decb267cfe432ed03ca176168e26717c7f79627.zip |
- Added dialog to configure automatic queue creating and automatic queue re-enabling
Diffstat (limited to 'perl-install/standalone/printerdrake')
-rwxr-xr-x | perl-install/standalone/printerdrake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake index 2c4cc8eb2..03b0dcac1 100755 --- a/perl-install/standalone/printerdrake +++ b/perl-install/standalone/printerdrake @@ -21,7 +21,8 @@ use strict; -# i18n: IMPORTANT: to get correct namespace (userdrake instead of libDrakX) +# i18n: IMPORTANT: to get correct namespace (printerdrake instead of +# libDrakX) BEGIN { unshift @::textdomains, 'drakconf' } use lib qw(/usr/lib/libDrakX); @@ -165,6 +166,7 @@ my ($menu, $factory) = create_factory_menu($::isEmbedded ? $::Plug : $us->{wnd}{ %printer::main::thedb = (); }, undef, '<CheckItem>' ], + [ N("/_Options") . N("/Configure _Auto Administration"), undef, \&ConfigAutoAdmin, undef, '<StockItem>', 'gtk-autoadmin' ], [ N("/_Help"), undef, undef, undef, '<Branch>' ], if_(-x "/usr/sbin/drakhelp_inst", [ N("/_Help") . N("/_Help"), undef, sub { HelpSystem() }, undef, '<StockItem>', 'gtk-help' ], @@ -419,6 +421,13 @@ sub ConfigCUPS() { activate_mainwindow(); } +sub ConfigAutoAdmin() { + deactivate_mainwindow(); + printer::printerdrake::config_auto_admin($printer, $in); + Refresh($stringsearch); + activate_mainwindow(); +} + sub deactivate_mainwindow() { $us->{wnd}{rwindow}->set_sensitive(0); gtkset_mousecursor_wait(); |