aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:17:04 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:17:04 +0000
commitad12994a8bf5dc26f98301058bdee796d60d1377 (patch)
tree1e2e6b3925efdc10caf9754697de6d1f932bd595
parent547d57963ec8f724a1313b39b0c22ff216b487a7 (diff)
downloadrpmdrake-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-xrpmdrake6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 4865fd44..d3358c96 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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