aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xedit-urpm-sources.pl79
1 files changed, 47 insertions, 32 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 11f772df..54c82ef2 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -712,38 +712,53 @@ sub mainwindow {
};
$reread_media->();
- gtkadd($mainw->{window},
- gtkpack_(Gtk2::VBox->new(0,5),
- 1, gtkpack_(Gtk2::HBox->new(0, 10),
- 1, $list_tv,
- 0, gtkpack__(Gtk2::VBox->new(0, 5),
- gtksignal_connect($remove = Gtk2::Button->new(but(N("Remove"))),
- clicked => sub { remove_callback(); $reread_media->() }),
- gtksignal_connect(
- $edit = Gtk2::Button->new(but(N("Edit"))),
- clicked => sub {
- my $name = edit_callback(); defined $name and $reread_media->($name);
- }
- ),
- gtksignal_connect(Gtk2::Button->new(but(N("Add..."))),
- clicked => sub { add_callback() and $reread_media->() }),
- gtksignal_connect(
- Gtk2::Button->new(but(N("Update..."))),
- clicked => sub {
- update_callback() and $reread_media->();
- },
- ),
- gtksignal_connect(Gtk2::Button->new(but(N("Manage keys..."))), clicked => \&keys_callback),
- gtksignal_connect(Gtk2::Button->new(but(N("Proxy..."))), clicked => \&proxy_callback),
- gtksignal_connect(Gtk2::Button->new(but(N("Parallel..."))), clicked => \&parallel_callback))),
- 0, Gtk2::HSeparator->new,
- 0, gtkpack(create_hbox('edge'),
- gtksignal_connect(Gtk2::Button->new(but(N("Help"))), clicked => sub {
- system("drakhelp --id software-management-sources &");
- interactive_msg(N("Help launched in background"),
- N("The help window has been started, it should appear shortly on your desktop."));
- }),
- gtksignal_connect(Gtk2::Button->new(but(N("Ok"))), clicked => sub { Gtk2->main_quit }))));
+ gtkadd(
+ $mainw->{window},
+ gtkpack_(
+ Gtk2::VBox->new(0,5),
+ 1, gtkpack_(
+ Gtk2::HBox->new(0, 10),
+ 1, $list_tv,
+ 0, gtkpack__(
+ Gtk2::VBox->new(0, 5),
+ gtksignal_connect(
+ $remove = Gtk2::Button->new(but(N("Remove"))),
+ clicked => sub { remove_callback(); $reread_media->() },
+ ),
+ gtksignal_connect(
+ $edit = Gtk2::Button->new(but(N("Edit"))),
+ clicked => sub {
+ my $name = edit_callback(); defined $name and $reread_media->($name);
+ }
+ ),
+ gtksignal_connect(
+ Gtk2::Button->new(but(N("Add..."))),
+ clicked => sub { add_callback() and $reread_media->() },
+ ),
+ gtksignal_connect(
+ Gtk2::Button->new(but(N("Update..."))),
+ clicked => sub { update_callback() and $reread_media->() },
+ ),
+ gtksignal_connect(Gtk2::Button->new(but(N("Manage keys..."))), clicked => \&keys_callback),
+ gtksignal_connect(Gtk2::Button->new(but(N("Proxy..."))), clicked => \&proxy_callback),
+ gtksignal_connect(Gtk2::Button->new(but(N("Parallel..."))), clicked => \&parallel_callback)
+ )
+ ),
+ 0, Gtk2::HSeparator->new,
+ 0, gtkpack(create_hbox('edge'),
+ gtksignal_connect(
+ Gtk2::Button->new(but(N("Help"))), clicked => sub {
+ system("drakhelp --id software-management-sources &");
+ interactive_msg(
+ N("Help launched in background"),
+ N("The help window has been started, it should appear shortly on your desktop."),
+ );
+ }
+ ),
+ gtksignal_connect(Gtk2::Button->new(but(N("Ok"))), clicked => sub { Gtk2->main_quit })
+ )
+ )
+ );
$mainw->main;
}