aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 18:50:59 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:09 +0100
commit8db421064116cdde78874c049859d01430403f4f (patch)
tree7cdbd44b9427f57a918b47857fc8db9ba9e9871f /Rpmdrake/gui.pm
parentd79d8c822858f6ce6aac8531cb338ebb2fca90cd (diff)
downloadrpmdrake-8db421064116cdde78874c049859d01430403f4f.tar
rpmdrake-8db421064116cdde78874c049859d01430403f4f.tar.gz
rpmdrake-8db421064116cdde78874c049859d01430403f4f.tar.bz2
rpmdrake-8db421064116cdde78874c049859d01430403f4f.tar.xz
rpmdrake-8db421064116cdde78874c049859d01430403f4f.zip
set_uri_hook() no more exists in gtk3
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm9
1 files changed, 0 insertions, 9 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index b4bb39ba..a38bca65 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -133,7 +133,6 @@ sub build_expander {
sub get_advisory_link {
my ($update_descr) = @_;
my $link = gtkshow(Gtk3::LinkButton->new($update_descr->{URL}, N("Security advisory")));
- $link->set_uri_hook(\&run_help_callback);
[ $link ];
}
@@ -264,7 +263,6 @@ sub get_url_link {
my @a =
(@{ ugtk3::markup_to_TextView_format(format_field("\n$spacing" . N("URL: "))) },
[ my $link = gtkshow(Gtk3::LinkButton->new($url, $url)) ]);
- $link->set_uri_hook(\&run_help_callback);
@a;
}
@@ -1054,11 +1052,4 @@ sub sort_callback {
URPM::rpmvercmp(map { $store->get_value($_, $pkg_columns{version}) } $treeiter1, $treeiter2);
}
-sub run_help_callback {
- my (undef, $url) = @_;
- my ($user) = grep { $_->[2] eq $ENV{USERHELPER_UID} } list_passwd();
- local $ENV{HOME} = $user->[7] if $user && $ENV{USERHELPER_UID};
- run_program::raw({ detach => 1, as_user => 1 }, 'www-browser', $url);
-}
-
1;