diff options
author | damien <damien@mandriva.com> | 2000-09-12 23:22:35 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2000-09-12 23:22:35 +0000 |
commit | a450d108d283c4af396920c0646010ec7b992325 (patch) | |
tree | 41ef750f16d85d04375d2ba7a71af94595f065e8 /perl-install/my_gtk.pm | |
parent | 32a2e8da9e14337df3c797a07ba16e1d232bb9ad (diff) | |
download | drakx-backup-do-not-use-a450d108d283c4af396920c0646010ec7b992325.tar drakx-backup-do-not-use-a450d108d283c4af396920c0646010ec7b992325.tar.gz drakx-backup-do-not-use-a450d108d283c4af396920c0646010ec7b992325.tar.bz2 drakx-backup-do-not-use-a450d108d283c4af396920c0646010ec7b992325.tar.xz drakx-backup-do-not-use-a450d108d283c4af396920c0646010ec7b992325.zip |
updated
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index dad17459a..b8831f577 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -10,7 +10,7 @@ use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK $border); @ISA = qw(Exporter); %EXPORT_TAGS = ( helpers => [ qw(create_okcancel createScrolledWindow create_menu create_notebook create_packtable create_hbox create_vbox create_adjustment create_box_with_title create_treeitem) ], - wrappers => [ qw(gtksignal_connect gtkpack gtkpack_ gtkpack__ gtkpack2 gtkpack2_ gtkpack2__ gtkappend gtkadd gtkput gtktext_insert gtkset_usize gtkset_justify gtkset_active gtkshow gtkdestroy gtkset_mousecursor gtkset_mousecursor_normal gtkset_mousecursor_wait gtkset_background gtkset_default_fontset gtkctree_children gtkxpm gtkcreate_xpm) ], + wrappers => [ qw(gtksignal_connect gtkpack gtkpack_ gtkpack__ gtkpack2 gtkpack3 gtkpack2_ gtkpack2__ gtkappend gtkadd gtkput gtktext_insert gtkset_usize gtkset_justify gtkset_active gtkshow gtkdestroy gtkset_mousecursor gtkset_mousecursor_normal gtkset_mousecursor_wait gtkset_background gtkset_default_fontset gtkctree_children gtkxpm gtkcreate_xpm) ], ask => [ qw(ask_warn ask_okcancel ask_yesorno ask_from_entry ask_from_list ask_file) ], ); $EXPORT_TAGS{all} = [ map { @$_ } values %EXPORT_TAGS ]; @@ -117,6 +117,11 @@ sub gtkpack2__($@) { my $box = shift; gtkpack2_($box, map {; 0, $_ } @_); } +sub gtkpack3 { + my $a = shift; + $a && goto \>kpack2__; + goto \>kpack2; +} sub gtkpack2_($@) { my $box = shift; for (my $i = 0; $i < @_; $i += 2) { @@ -231,8 +236,8 @@ sub gtkxpm { new Gtk::Pixmap(gtkcreate_xpm(@_)) } sub create_okcancel { my ($w, $ok, $cancel, $spread) = @_; my $one = ($ok xor $cancel); - $spread ||= $::isStandalone ? "edge" : "spread"; - $ok ||= $::isStandalone ? _("Next ->") : _("Ok"); + $spread ||= $::isWizard ? "edge" : "spread"; + $ok ||= $::isWizard ? _("Next ->") : _("Ok"); my $b1 = gtksignal_connect($w->{ok} = new Gtk::Button($ok), "clicked" => $w->{ok_clicked} || sub { Gtk->main_quit }); my $b2 = !$one && gtksignal_connect(new Gtk::Button($cancel || _("Cancel")), "clicked" => $w->{cancel_clicked} || sub { $w->{retval} = 0; Gtk->main_quit }); |