summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-26 13:12:27 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-26 13:12:27 +0000
commitade644762b8c4ad0200ed9b5c4645404b61cea62 (patch)
treebd2e40159f9a0609b489e279b6d048419631dabf
parent1e7a7a42727985ece12abc62166d7de20be4830d (diff)
downloadmgaonline-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--NEWS3
-rwxr-xr-xmdkapplet-restricted-helper8
2 files changed, 10 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index f0e18ff4..1317e086 100644
--- a/NEWS
+++ b/NEWS
@@ -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(