summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2002-07-02 16:21:30 +0000
committerDaouda Lo <daouda@mandriva.com>2002-07-02 16:21:30 +0000
commitc622536a93e78868e92719761a20bc65e62f0bd7 (patch)
tree4b527ad8af222e71749a63fff2ddd3fe00235885
parent198fc661b9c5a379ac7542a6d19c4a469ef86abc (diff)
downloaddrakx-backup-do-not-use-c622536a93e78868e92719761a20bc65e62f0bd7.tar
drakx-backup-do-not-use-c622536a93e78868e92719761a20bc65e62f0bd7.tar.gz
drakx-backup-do-not-use-c622536a93e78868e92719761a20bc65e62f0bd7.tar.bz2
drakx-backup-do-not-use-c622536a93e78868e92719761a20bc65e62f0bd7.tar.xz
drakx-backup-do-not-use-c622536a93e78868e92719761a20bc65e62f0bd7.zip
- fill a combo by default :
gtkcombo_setpopdown_strings($combo_widget,@strings)
-rw-r--r--perl-install/my_gtk.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index f463b0c41..9df203842 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -7,7 +7,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 gtkradio gtkpack gtkpack_ gtkpack__ gtkpack2 gtkpack3 gtkpack2_ gtkpack2__ gtkpowerpack gtkset_editable gtksetstyle gtkset_text gtkset_tip gtkappenditems gtkappend gtkset_shadow_type gtkset_layout gtkset_relief gtkadd gtkput gtktext_insert gtkset_usize gtksize gtkset_justify gtkset_active gtkset_sensitive gtkset_modal gtkset_border_width gtkmove gtkresize gtkshow gtkhide gtkdestroy gtkcolor gtkset_mousecursor gtkset_mousecursor_normal gtkset_mousecursor_wait gtkset_background gtkset_default_fontset gtkctree_children gtkxpm gtkpng create_pix_text get_text_coord fill_tiled gtkicons_labels_widget write_on_pixmap gtkcreate_xpm gtkcreate_png gtkbuttonset) ],
+ wrappers => [ qw(gtksignal_connect gtkradio gtkpack gtkpack_ gtkpack__ gtkpack2 gtkpack3 gtkpack2_ gtkpack2__ gtkpowerpack gtkset_editable gtksetstyle gtkset_text gtkcombo_setpopdown_strings gtkset_tip gtkappenditems gtkappend gtkset_shadow_type gtkset_layout gtkset_relief gtkadd gtkput gtktext_insert gtkset_usize gtksize gtkset_justify gtkset_active gtkset_sensitive gtkset_modal gtkset_border_width gtkmove gtkresize gtkshow gtkhide gtkdestroy gtkcolor gtkset_mousecursor gtkset_mousecursor_normal gtkset_mousecursor_wait gtkset_background gtkset_default_fontset gtkctree_children gtkxpm gtkpng create_pix_text get_text_coord fill_tiled gtkicons_labels_widget write_on_pixmap gtkcreate_xpm gtkcreate_png gtkbuttonset) ],
ask => [ qw(ask_warn ask_okcancel ask_yesorno ask_from_entry) ],
);
$EXPORT_TAGS{all} = [ map { @$_ } values %EXPORT_TAGS ];
@@ -243,6 +243,12 @@ sub gtkset_text {
$w;
}
+sub gtkcombo_setpopdown_strings ($@) {
+ my $w = shift;
+ $w->set_popdown_strings(@_);
+ $w;
+}
+
sub gtkappend_text {
my ($w, $s) = @_;
$w->append_text($s);