summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-12 12:46:40 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-12 12:46:40 +0000
commita67188c72c2d596820356e7d15aefd06d1ac4655 (patch)
tree9f303e5b87cfd1c0ff4ed63a7d7118e8ce5ead1f /perl-install/standalone
parent07f2949193136cde1017ccb4e4eabc68d8e02437 (diff)
downloaddrakx-backup-do-not-use-a67188c72c2d596820356e7d15aefd06d1ac4655.tar
drakx-backup-do-not-use-a67188c72c2d596820356e7d15aefd06d1ac4655.tar.gz
drakx-backup-do-not-use-a67188c72c2d596820356e7d15aefd06d1ac4655.tar.bz2
drakx-backup-do-not-use-a67188c72c2d596820356e7d15aefd06d1ac4655.tar.xz
drakx-backup-do-not-use-a67188c72c2d596820356e7d15aefd06d1ac4655.zip
show banner when embedded
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/printerdrake11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake
index 0b022ef15..ff57a6282 100755
--- a/perl-install/standalone/printerdrake
+++ b/perl-install/standalone/printerdrake
@@ -51,6 +51,8 @@ my $printer;
$ugtk2::wm_icon = "printerdrake";
my $in = 'interactive'->vnew('su', if_(!$::isEmbedded, 'printer-mdk'));
+# i18n: IMPORTANT: to get correct namespace (userdrake instead of libDrakX)
+BEGIN { unshift @::textdomains, 'drakconf' }
my $commandline = $_;
@@ -207,8 +209,17 @@ my $searchBox = gtkpack_(Gtk2::HBox->new(0,5),
gtkappend_page(my $nb = Gtk2::Notebook->new, gtkpack(create_scrolled_window($localtree)), gtkshow(Gtk2::Label->new(N("Configured on this machine"))));
gtkappend_page($nb, gtkpack(create_scrolled_window($remotetree)), gtkshow(Gtk2::Label->new(N("Configured on other machines"))));
$nb->set_show_border(0);
+
+my @extra_widgets;
+if ($::isEmbedded) {
+ push @extra_widgets, 0, Gtk2::Banner->new("/usr/share/mcc/themes/default/printer-mcc-mdk.png",
+ #-PO: do not translate, this is already translated in mcc
+ translate("Printers"));
+}
+
$us->{wnd}{window}->add(gtkpack_(Gtk2::VBox->new(0, 0),
0, $menu,
+ @extra_widgets,
0, $toolb,
0, $searchBox,
0, Gtk2::HSeparator->new,