FileChooserDialog problems
- From: Cornel Ghiban <cghiban gmx net>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: FileChooserDialog problems
- Date: Tue, 6 Jul 2004 16:22:11 +0300
I recently thought about changing FileSelection widget with the new
FileChooserDialog. But when trying to make the update, I found that
several 'responsed' do not work as expected. For example this
FileChooserDialog has 4 buttons, but only the first 2 (the one
with the 'cancel' and 'close') are behaving corectly.
Am I missing something or it's a bug?
-----------------------------------------------------------------------
my $fc = Gtk2::FileChooserDialog->new('Editeaza contract',
$parent_window,
'open',
Cancel => 'cancel', # ok/accept not working?!
Select => 'close',
OK => 'ok',
Yes => 'yes');
$fc->set_current_folder('/tmp');
$fc->signal_connect (response => sub {
my ($fc, $resp) = @_;
#print STDERR $resp, $/
if ('close' eq $resp) {
unless ($self->select_form($fc)) {
return;
}
}
$fc->destroy
});
$fc->show;
------------------------------------------------------------------------
Tnx
--
/me
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]