summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/printerdrake
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-07-27 14:59:31 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-07-27 14:59:31 +0000
commit5decb267cfe432ed03ca176168e26717c7f79627 (patch)
treedb23d123245ec114343587b9dd284db38d61916b /perl-install/standalone/printerdrake
parent97c8aa84aa55784e12c28ea68a54c3b57a97f3f7 (diff)
downloaddrakx-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-xperl-install/standalone/printerdrake11
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();