diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:19:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:19:38 +0000 |
commit | 477b11dd05544924e3825ecadb5d8ecbd04636d7 (patch) | |
tree | 4cb0a6ab758ebe54d7cf6f4eb3ef44187660bed2 | |
parent | 14df84e3c8ddbcb299bb0ff567b7dc8ccf8a1c4a (diff) | |
download | rpmdrake-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-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |