aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:19:38 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:19:38 +0000
commit477b11dd05544924e3825ecadb5d8ecbd04636d7 (patch)
tree4cb0a6ab758ebe54d7cf6f4eb3ef44187660bed2
parent14df84e3c8ddbcb299bb0ff567b7dc8ccf8a1c4a (diff)
downloadrpmdrake-477b11dd05544924e3825ecadb5d8ecbd04636d7.tar
rpmdrake-477b11dd05544924e3825ecadb5d8ecbd04636d7.tar.gz
rpmdrake-477b11dd05544924e3825ecadb5d8ecbd04636d7.tar.bz2
rpmdrake-477b11dd05544924e3825ecadb5d8ecbd04636d7.tar.xz
rpmdrake-477b11dd05544924e3825ecadb5d8ecbd04636d7.zip
(get_icon) use icon of parent group if none is specified for current grou
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 5769041a..1e1d75b6 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -703,9 +703,10 @@ sub run_treeview_dialog {
};
$options = {
get_icon => sub {
- my ($group) = @_;
+ my ($group, $parent) = @_;
my $pixbuf;
eval { $pixbuf = gtkcreate_pixbuf($group_icons{$group}) };
+ eval { $pixbuf ||= gtkcreate_pixbuf($group_icons{$parent}) } if $parent;
$pixbuf ||= gtkcreate_pixbuf('applications_section');
},
node_state => sub {