diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-12-01 20:06:34 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-12-01 20:06:34 +0100 |
commit | a148fd82b051556c65e1c0365a48b0bb9a13e91b (patch) | |
tree | a467ae5f45aa5264675681c63194eb79b4cf8cb6 | |
parent | 73b4f01db5050eb079e81fbfb829f2c0386a6ba7 (diff) | |
download | manatools-a148fd82b051556c65e1c0365a48b0bb9a13e91b.tar manatools-a148fd82b051556c65e1c0365a48b0bb9a13e91b.tar.gz manatools-a148fd82b051556c65e1c0365a48b0bb9a13e91b.tar.bz2 manatools-a148fd82b051556c65e1c0365a48b0bb9a13e91b.tar.xz manatools-a148fd82b051556c65e1c0365a48b0bb9a13e91b.zip |
code clean up
-rw-r--r-- | lib/AdminPanel/Rpmdragora/gui.pm | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/lib/AdminPanel/Rpmdragora/gui.pm b/lib/AdminPanel/Rpmdragora/gui.pm index 2fe8563d..02ecac24 100644 --- a/lib/AdminPanel/Rpmdragora/gui.pm +++ b/lib/AdminPanel/Rpmdragora/gui.pm @@ -1378,36 +1378,10 @@ sub deps_msg { destroy $dialog; - return $retval; + # restore original title + yui::YUI::app()->setApplicationTitle($appTitle) if $appTitle; -# deps_msg_again: -# my $results = interactive_msg( -# $title, $msg . -# format_list(map { scalar(urpm::select::translate_why_removed_one($urpm, $urpm->{state}, $_)) } @deps) -# . "\n\n" . format_size($urpm->selected_size($urpm->{state})), -# yesno => [ $loc->N("Cancel"), $loc->N("More info"), $loc->N("Ok") ], -# scroll => 1, -# ); -# if ($results eq -# #-PO: Keep it short, this is gonna be on a button -# $loc->N("More info")) { -# interactive_packtable( -# $loc->N("Information on packages"), -# $::main_window, -# undef, -# [ map { my $pkg = $_; -# [ gtknew('HBox', children_tight => [ gtkset_selectable(gtknew('Label', text => $pkg), 1) ]), -# gtknew('Button', text => $loc->N("More information on package..."), -# clicked => sub { -# interactive_msg($loc->N("More information on package..."), get_info($pkg), scroll => 1); -# }) ] } @deps ], -# [ gtknew('Button', text => $loc->N("Ok"), -# clicked => sub { Gtk2->main_quit }) ] -# ); -# goto deps_msg_again; -# } else { -# return $results eq $loc->N("Ok"); -# } + return $retval; } # set_state <- package-fullname, node_state = {to_install, to_remove,...}, list=YTable |