diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-28 18:50:59 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-05 14:16:09 +0100 |
commit | 8db421064116cdde78874c049859d01430403f4f (patch) | |
tree | 7cdbd44b9427f57a918b47857fc8db9ba9e9871f /Rpmdrake | |
parent | d79d8c822858f6ce6aac8531cb338ebb2fca90cd (diff) | |
download | rpmdrake-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')
-rw-r--r-- | Rpmdrake/gui.pm | 9 |
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; |