diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-05 13:01:05 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-05 13:01:05 +0000 |
commit | cca23a632484309ed0aa8ad275d72f43efdb9b49 (patch) | |
tree | 9ba52777c3842c8f2f512040d8041014dbad71d9 | |
parent | ca3f12f9a6c52fc9fa9c18d802da9ad242a1a7f9 (diff) | |
download | rpmdrake-cca23a632484309ed0aa8ad275d72f43efdb9b49.tar rpmdrake-cca23a632484309ed0aa8ad275d72f43efdb9b49.tar.gz rpmdrake-cca23a632484309ed0aa8ad275d72f43efdb9b49.tar.bz2 rpmdrake-cca23a632484309ed0aa8ad275d72f43efdb9b49.tar.xz rpmdrake-cca23a632484309ed0aa8ad275d72f43efdb9b49.zip |
- have consolehelper executed before the various perl "use"'s, in
the hope it would speed a bit startup (didn't convince that much)
- specify 0,0 to the HBox of the Radio and the OptionMenu, so
that the texts are closer
-rwxr-xr-x | rpmdrake | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -20,6 +20,16 @@ # # $Id$ +"@ARGV" =~ /-h/ and do { + printf STDERR "Usage: %s [OPTION]... + --noconfirmation don't ask first confirmation question in MandrakeUpdate mode + ", basename($0); + exit 0; +}; + +$> and (exec {'consolehelper'} $0, @ARGV or die "consolehelper missing"); + + use lib qw(/usr/lib/libDrakX); use strict; @@ -28,12 +38,6 @@ use vars qw($MODE %options $XID $CCPID); use rpmdrake; -"@ARGV" =~ /-h/ and do { print STDERR _("Usage: %s [OPTION]... - --noconfirmation don't ask first confirmation question in MandrakeUpdate mode -", basename($0)); exit 0; }; - -$> and (exec {'consolehelper'} $0, @ARGV or die "consolehelper missing"); - $MODE = 'install'; $0 =~ '/rpmdrake-remove$' and $MODE = 'remove'; $0 =~ '/MandrakeUpdate$' and $MODE = 'update'; @@ -389,7 +393,7 @@ sub run_treeview_dialog { each_index { if ($_ eq 'by') { $radio_by = $modes_buttons[$::i]; - $modes_buttons[$::i] = gtkpack(new Gtk::HBox, $modes_buttons[$::i], my $t = new Gtk::OptionMenu); + $modes_buttons[$::i] = gtkpack(new Gtk::HBox(0, 0), $modes_buttons[$::i], my $t = new Gtk::OptionMenu); $t->set_menu($advanced_menu); } } @radios_names_ordered; |