summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-04-23 14:06:51 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-04-23 14:06:51 +0000
commitcbca79ff272a836f9f65b14a22afad149c3886ea (patch)
tree5a0902d94e00edce220e14d2ec04e371c2cb8e30 /perl-install/ugtk2.pm
parentbb6783a6471a79b47786e360d1a0d543989dfa1e (diff)
downloaddrakx-backup-do-not-use-cbca79ff272a836f9f65b14a22afad149c3886ea.tar
drakx-backup-do-not-use-cbca79ff272a836f9f65b14a22afad149c3886ea.tar.gz
drakx-backup-do-not-use-cbca79ff272a836f9f65b14a22afad149c3886ea.tar.bz2
drakx-backup-do-not-use-cbca79ff272a836f9f65b14a22afad149c3886ea.tar.xz
drakx-backup-do-not-use-cbca79ff272a836f9f65b14a22afad149c3886ea.zip
(shrink_topwindow) support both 10.0 and cooker
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index d5756b3b9..8407686a7 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -999,7 +999,11 @@ sub sync {
sub flush() { gtkflush() }
sub shrink_topwindow {
my ($o) = @_;
- $o->{rwindow}->signal_emit('size_allocate', Gtk2::Gdk::Rectangle->new(-1, -1, -1, -1));
+ if ($Gtk2::VERSION < 1.040) {
+ $o->{rwindow}->signal_emit('size_allocate', Gtk2::Allocation->new(-1, -1, -1, -1));
+ } else {
+ $o->{rwindow}->signal_emit('size_allocate', Gtk2::Gdk::Rectangle->new(-1, -1, -1, -1));
+ }
}
sub exit {
gtkset_mousecursor_normal(); #- for restoring a normal in any case