summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-16 12:24:27 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-16 12:24:27 +0000
commit7f00fea6c35460d79eaa78fca2c9d0b039daa11d (patch)
tree53fd6e5ab7ea258cb270bead5c6bcf1b94fd34e9
parent19e868208a2bac17d72bd9929baa2aa092b9430c (diff)
downloaddrakx-backup-do-not-use-7f00fea6c35460d79eaa78fca2c9d0b039daa11d.tar
drakx-backup-do-not-use-7f00fea6c35460d79eaa78fca2c9d0b039daa11d.tar.gz
drakx-backup-do-not-use-7f00fea6c35460d79eaa78fca2c9d0b039daa11d.tar.bz2
drakx-backup-do-not-use-7f00fea6c35460d79eaa78fca2c9d0b039daa11d.tar.xz
drakx-backup-do-not-use-7f00fea6c35460d79eaa78fca2c9d0b039daa11d.zip
(interactive_mode) better style
-rwxr-xr-xperl-install/standalone/drakfont6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/standalone/drakfont b/perl-install/standalone/drakfont
index abd0fc72d..e0a77320a 100755
--- a/perl-install/standalone/drakfont
+++ b/perl-install/standalone/drakfont
@@ -469,11 +469,13 @@ sub interactive_mode() {
$interactive = 1;
$window1 = ugtk2->new('drakfont');
$window1->{rwindow}->signal_connect(delete_event => sub { ugtk2->exit(0) });
- unless ($::isEmbedded) {
+ if ($::isEmbedded) {
+ $::Plug->set_icon(gtkcreate_pixbuf("drakfont"));
+ } else {
$window1->{rwindow}->set_position('center');
$window1->{rwindow}->set_title(N("DrakFont"));
$window1->{window}->set_icon(gtkcreate_pixbuf("drakfont"));
- } else { $::Plug->set_icon(gtkcreate_pixbuf("drakfont")) }
+ }
my $button = {};
my $disable = sub { my ($b) = @_; $button->{$_}->set_sensitive($_ ne $b) foreach keys %$button };