diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:17:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:17:04 +0000 |
commit | ad12994a8bf5dc26f98301058bdee796d60d1377 (patch) | |
tree | 1e2e6b3925efdc10caf9754697de6d1f932bd595 | |
parent | 547d57963ec8f724a1313b39b0c22ff216b487a7 (diff) | |
download | rpmdrake-ad12994a8bf5dc26f98301058bdee796d60d1377.tar rpmdrake-ad12994a8bf5dc26f98301058bdee796d60d1377.tar.gz rpmdrake-ad12994a8bf5dc26f98301058bdee796d60d1377.tar.bz2 rpmdrake-ad12994a8bf5dc26f98301058bdee796d60d1377.tar.xz rpmdrake-ad12994a8bf5dc26f98301058bdee796d60d1377.zip |
(run_treeview_dialog) introduce get_icon() in order to extract group icon
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -702,6 +702,12 @@ sub run_treeview_dialog { @to_remove; }; $options = { + get_icon => sub { + my ($group) = @_; + my $pixbuf; + eval { $pixbuf = gtkcreate_pixbuf($group_icons{$group}) }; + $pixbuf ||= gtkcreate_pixbuf('applications_section'); + }, node_state => sub { $_[0] ? ($pkgs->{$_[0]}{selected} ? 'selected' : $pkgs->{$_[0]}{pkg}->flag_base ? '/usr/share/rpmdrake/icons/base.png' : 'unselected') : 'XXX'; }, #- checks $_[0] -> hack for partial tree displaying |