summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-10 22:20:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-10 22:20:42 +0000
commitca93c3dd1750ae75a79671a62cd6fbf74985707f (patch)
tree8b80b489515d57a7681f9a9dfd98a9a3eb4d1732 /perl-install/my_gtk.pm
parentc461723804838cb6b1feeb2c16e578a23bffea24 (diff)
downloaddrakx-backup-do-not-use-ca93c3dd1750ae75a79671a62cd6fbf74985707f.tar
drakx-backup-do-not-use-ca93c3dd1750ae75a79671a62cd6fbf74985707f.tar.gz
drakx-backup-do-not-use-ca93c3dd1750ae75a79671a62cd6fbf74985707f.tar.bz2
drakx-backup-do-not-use-ca93c3dd1750ae75a79671a62cd6fbf74985707f.tar.xz
drakx-backup-do-not-use-ca93c3dd1750ae75a79671a62cd6fbf74985707f.zip
- make diskdrake work in embedded mode
- $my_gtk::pop_it used where it should
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 8a72ba2d4..47060bbda 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -99,7 +99,7 @@ sub new {
$::WizardTable->attach($o->{window}, 1, 2, 1, 2, {'fill', 'expand'}, {'fill', 'expand'}, 0, 0);
}
- ($::isEmbedded && !$my_gtk::pop_it) or return $o;
+ $::isEmbedded && !$my_gtk::pop_it or return $o;
$o->{window} = new Gtk::HBox(0,0);
$o->{rwindow} = $o->{window};
defined($::Plug) or $::Plug = new Gtk::Plug ($::XID);
@@ -115,7 +115,7 @@ sub main {
my $timeout = Gtk->timeout_add(1000, sub { gtkset_mousecursor_normal(); 1 });
my $b = before_leaving { Gtk->timeout_remove($timeout) };
$o->show;
- $o->{rwindow}->window->set_events(['key_press_mask', 'key_release_mask', 'exposure_mask']) if !$::isEmbedded;
+ $o->{rwindow}->window->set_events(['key_press_mask', 'key_release_mask', 'exposure_mask']) if $o->{rwindow}->window;
do {
local $::setstep = 1;