diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-25 11:49:15 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-25 11:49:15 +0000 |
commit | fbfbd02519a91b6ecc6f642f64591554599bc3d4 (patch) | |
tree | c4936adb23f773c1b44aaf768332ef2dbfbbceba /Rpmdrake | |
parent | 8f61b573edb422d4f498090b6da6b27ec07bbcc5 (diff) | |
download | rpmdrake-fbfbd02519a91b6ecc6f642f64591554599bc3d4.tar rpmdrake-fbfbd02519a91b6ecc6f642f64591554599bc3d4.tar.gz rpmdrake-fbfbd02519a91b6ecc6f642f64591554599bc3d4.tar.bz2 rpmdrake-fbfbd02519a91b6ecc6f642f64591554599bc3d4.tar.xz rpmdrake-fbfbd02519a91b6ecc6f642f64591554599bc3d4.zip |
kill get_name() hackery
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index d07c4e24..84a22bd2 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -40,7 +40,7 @@ use Rpmdrake::pkg; use Rpmdrake::icon; use Gtk2::Gdk::Keysyms; -our @EXPORT = qw(ask_browse_tree_given_widgets_for_rpmdrake build_tree callback_choices closure_removal compute_main_window_size do_action get_info get_name get_summary is_locale_available node_state pkgs_provider reset_search set_node_state switch_pkg_list_mode toggle_all toggle_nodes +our @EXPORT = qw(ask_browse_tree_given_widgets_for_rpmdrake build_tree callback_choices closure_removal compute_main_window_size do_action get_info get_summary is_locale_available node_state pkgs_provider reset_search set_node_state switch_pkg_list_mode toggle_all toggle_nodes $clear_button %grp_columns %pkg_columns $dont_show_selections @filtered_pkgs $find_entry $force_displaying_group $force_rebuild @initial_selection $pkgs $size_free $size_selected $urpm); our $dont_show_selections = $> ? 1 : 0; @@ -266,16 +266,9 @@ sub update_size { } } -sub get_name { - my ($name) = @_; - return $name=~ m!<b>(.*)</b>! ? $1 : $name; -} - sub children { my ($w) = @_; - map { - my $txt = get_name($w->{detail_list_model}->get($_, $pkg_columns{text})); - get_name($w->{detail_list_model}->get($_, $pkg_columns{text})) } gtktreeview_children($w->{detail_list_model}); + map { $w->{detail_list_model}->get($_, $pkg_columns{text}) } gtktreeview_children($w->{detail_list_model}); } sub toggle_all { |