diff options
-rw-r--r-- | rpmdrake.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index 36da78b8..f252429e 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -69,6 +69,7 @@ our @EXPORT = qw( distro_type fatal_msg getbanner + get_icon interactive_list interactive_list_ interactive_msg @@ -966,6 +967,14 @@ sub run_drakbug { run_as_user('drakbug', '--report', $id); } +mygtk2::add_icon_path('/usr/share/mcc/themes/default/'); +sub get_icon { + my ($mcc_icon, $fallback_icon) = @_; + my $icon = eval { mygtk2::_find_imgfile($mcc_icon) }; + $icon ||= eval { mygtk2::_find_imgfile($fallback_icon) }; + $icon; +} + sub strip_first_underscore { join '', map { s/_//; $_ } @_ } 1; |