diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-11-26 13:12:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-11-26 13:12:27 +0000 |
commit | ade644762b8c4ad0200ed9b5c4645404b61cea62 (patch) | |
tree | bd2e40159f9a0609b489e279b6d048419631dabf | |
parent | 1e7a7a42727985ece12abc62166d7de20be4830d (diff) | |
download | mgaonline-ade644762b8c4ad0200ed9b5c4645404b61cea62.tar mgaonline-ade644762b8c4ad0200ed9b5c4645404b61cea62.tar.gz mgaonline-ade644762b8c4ad0200ed9b5c4645404b61cea62.tar.bz2 mgaonline-ade644762b8c4ad0200ed9b5c4645404b61cea62.tar.xz mgaonline-ade644762b8c4ad0200ed9b5c4645404b61cea62.zip |
fix running on 2008.1 (#55956)
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | mdkapplet-restricted-helper | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- mdkapplet-restricted-helper: + o fix running on 2008.1 (#55956) + Version 2.77.11 - 24 November 2009, Thierry Vignaud - mdkapplet-config diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper index a4622d9d..f6655bfe 100755 --- a/mdkapplet-restricted-helper +++ b/mdkapplet-restricted-helper @@ -41,6 +41,7 @@ use URI::Escape; use LWP::UserAgent; use HTTP::Request::Common; use HTTP::Request; +use interactive::gtk; my $version; foreach my $opt (@ARGV) { @@ -52,6 +53,12 @@ foreach my $opt (@ARGV) { } $version or die "usage: mdkapplet-restricted-helper <distrib_version>\n"; +# make it work on 2008.1: +eval { interactive::gtk::add_padding(Gtk2::Label->new) }; +if ($@) { + *interactive::gtk::add_padding = sub { $_[0] }; +} + get_restricted_authentication(); ugtk2::exit(0); @@ -64,7 +71,6 @@ sub get_restricted_authentication() { $password_w = gtknew('Entry'); $password_w->set_visibility(0); $w->{real_window}->signal_connect(destroy => sub { $password = $password_w->get_text }); - require interactive::gtk; my $res = fill_n_run_portable_dialog( |