diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-29 17:29:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-29 17:29:53 +0000 |
commit | f8b36877780e03d9e872892b65460080e519477e (patch) | |
tree | 4c7b1c6290276d024a037ae69ad0c3843fbf42aa /perl-install/mygtk2.pm | |
parent | 252977cb615c34083999af21c43db77ece428110 (diff) | |
download | drakx-f8b36877780e03d9e872892b65460080e519477e.tar drakx-f8b36877780e03d9e872892b65460080e519477e.tar.gz drakx-f8b36877780e03d9e872892b65460080e519477e.tar.bz2 drakx-f8b36877780e03d9e872892b65460080e519477e.tar.xz drakx-f8b36877780e03d9e872892b65460080e519477e.zip |
(_gtk_any_Window,_gtk__FileChooserDialog) add support for Gtk+2's FileChooserDialog for draksnapashot
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r-- | perl-install/mygtk2.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 6eafc1caa..9a86ffa76 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -774,6 +774,11 @@ sub _gtk_any_Window { } elsif ($class eq 'Plug') { $opts->{socket_id} or internal_error("can not create a Plug without a socket_id"); $w = "Gtk2::$class"->new(delete $opts->{socket_id}); + } elsif ($class eq 'FileChooserDialog') { + my $action = delete $opts->{action} || internal_error("missing action for FileChooser"); + $w = Gtk2::FileChooserDialog->new(delete $opts->{title}, delete $opts->{transient_for} || $::main_window, + $action, N("Cancel") => 'cancel', delete $opts->{button1} || N("Ok") => 'ok', + ); } else { $w = "Gtk2::$class"->new; } @@ -949,6 +954,8 @@ sub _gtk__FileSelection { $w; } +sub _gtk__FileChooserDialog { &_gtk_any_Window } + sub _gtk__FileChooser { my ($w, $opts) = @_; |