From 59c6a52a7ba86a2ffcae95f2758e11d598bfa769 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 3 Sep 2007 09:32:01 +0000 Subject: (get_name) move it from MandrivaUpdate into Rpmdrake/gui.pm --- MandrivaUpdate | 6 ------ Rpmdrake/gui.pm | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/MandrivaUpdate b/MandrivaUpdate index 56185bab..ce99526e 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -96,12 +96,6 @@ sub toggle { $list->{data}[$data{$name}][0] = !$list->{data}[$data{$name}][0] if !$done; } -sub get_name { - my ($name) = @_; - ($name) = $name =~ m!(.*)!; - return $name; -} - $w = ugtk2->new(N("Software Management")); $w->{rwindow}->show_all if $::isEmbedded; diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 9e8794a9..c57fd824 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -39,7 +39,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 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_name 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; -- cgit v1.2.1