diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-04-30 13:08:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-04-30 13:08:51 +0000 |
commit | b60f1f496782daa2ca8c2a443dd3d0c06e4c04d6 (patch) | |
tree | 3b9126f63d52de51e4400b4ded432d19941adc56 /perl-install/ugtk2.pm | |
parent | 4a71957735964f870a3fe4433a4c2a5a3e4d9366 (diff) | |
download | drakx-b60f1f496782daa2ca8c2a443dd3d0c06e4c04d6.tar drakx-b60f1f496782daa2ca8c2a443dd3d0c06e4c04d6.tar.gz drakx-b60f1f496782daa2ca8c2a443dd3d0c06e4c04d6.tar.bz2 drakx-b60f1f496782daa2ca8c2a443dd3d0c06e4c04d6.tar.xz drakx-b60f1f496782daa2ca8c2a443dd3d0c06e4c04d6.zip |
(create_dialog):
- second parameter really is optionnal
- do not blindly set the title to logdrake, this is used elsewhere
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 86a60effb..9a62e6c4e 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -354,11 +354,11 @@ sub create_box_with_title { # drakfloppy / logdrake sub create_dialog { - my ($label, $c) = @_; + my ($label, $o_c) = @_; my $ret = 0; my $dialog = Gtk2::Dialog->new; $dialog->signal_connect(delete_event => sub { Gtk2->main_quit }); - $dialog->set_title(N("logdrake")); +# $dialog->set_title(N("logdrake")); $dialog->set_border_width(10); $dialog->set_position('center-on-parent'); # center-on-parent doesn't work $dialog->vbox->pack_start(Gtk2::Label->new($label), 1, 1, 0); @@ -369,7 +369,7 @@ sub create_dialog { $dialog->action_area->pack_start($button, 1, 1, 0); $button->grab_default; - if ($c) { + if ($o_c) { my $button2 = Gtk2::Button->new(N("Cancel")); $button2->signal_connect(clicked => sub { $ret = 0; $dialog->destroy; Gtk2->main_quit }); $button2->can_default(1); @@ -527,7 +527,7 @@ sub gtktext_insert { if (ref($t) eq 'ARRAY') { $opts{append} or $buffer->set_text('', -1); foreach my $token (@$t) { - my ($iter1, $iter2); + my ($iter1, $iter2); my $c = $buffer->get_char_count; $buffer->insert($iter1 = $buffer->get_end_iter, $token->[0], -1); $iter1->free; |