aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-05-28 16:20:37 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-05-28 16:20:37 +0000
commit8d2601c11b2954cac419115f2053c95da29ddefd (patch)
treebd99515dfff87f5042bd6800a6b794cb5f8118dd
parent7c24ad54c5d4148eb957c6bcdb0d78180d7341ce (diff)
downloadrpmdrake-8d2601c11b2954cac419115f2053c95da29ddefd.tar
rpmdrake-8d2601c11b2954cac419115f2053c95da29ddefd.tar.gz
rpmdrake-8d2601c11b2954cac419115f2053c95da29ddefd.tar.bz2
rpmdrake-8d2601c11b2954cac419115f2053c95da29ddefd.tar.xz
rpmdrake-8d2601c11b2954cac419115f2053c95da29ddefd.zip
modify un-meaninful "save&quit"/"Quit" to a simple "Ok"
-rwxr-xr-xedit-urpm-sources.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 406e2bb0..c180010c 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -302,8 +302,7 @@ sub mainwindow {
gtksignal_connect(Gtk2::Button->new(but(N("Proxy..."))), clicked => \&proxy_callback))),
0, Gtk2::HSeparator->new,
0, gtkpack(create_hbox(),
- gtksignal_connect(Gtk2::Button->new(N("Save and quit")), clicked => sub { $mainw->{retval} = 1; Gtk2->main_quit }),
- gtksignal_connect(Gtk2::Button->new(N("Quit")), clicked => sub { $mainw->{retval} = 0; Gtk2->main_quit }))));
+ gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { Gtk2->main_quit }))));
$mainw->main;
}
@@ -323,9 +322,8 @@ or to perform updates.")), yesno => 1) or myexit -1;
push @$already_splashed, basename($0);
}
-if (mainwindow()) {
- $urpm->write_config;
-}
+mainwindow();
+$urpm->write_config;
writeconf();