aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/icon.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/icon.pm')
-rw-r--r--Rpmdrake/icon.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/icon.pm b/Rpmdrake/icon.pm
index a2bcedf7..97de56a4 100644
--- a/Rpmdrake/icon.pm
+++ b/Rpmdrake/icon.pm
@@ -185,12 +185,12 @@ my %group_icons = (
);
sub get_icon {
- my ($group, $parent) = @_;
+ my ($group, $o_parent) = @_;
my $pixbuf;
my $path = $group =~ /\|/ ? '/usr/share/icons/mini/' : '/usr/share/icons/';
my $create_pixbuf = sub { eval { gtknew('Pixbuf', file => join('', $path, $_[0], '.png')) } };
$pixbuf = $create_pixbuf->($group_icons{$group});
- $pixbuf ||= $create_pixbuf->($group_icons{$parent}) if $parent;
+ $pixbuf ||= $create_pixbuf->($group_icons{$o_parent}) if $o_parent;
$pixbuf ||= $create_pixbuf->('applications_section');
}