Kevin Ryde > Gtk2-Ex-ErrorTextDialog-11 > Gtk2::Ex::ErrorTextDialog::SaveDialog

Download:
Gtk2-Ex-ErrorTextDialog-11.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 11   Source  

NAME ^

Gtk2::Ex::ErrorTextDialog::SaveDialog -- save for ErrorTextDialog

SYNOPSIS ^

 use Gtk2::Ex::ErrorTextDialog::SaveDialog;
 my $save_dialog = Gtk2::Ex::ErrorTextDialog::SaveDialog->new
                     (transient_for => $errordialog);

WIDGET HIERARCHY ^

Gtk2::Ex::ErrorTextDialog::SaveDialog is a subclass of Gtk2::FileChooserDialog.

    Gtk2::Widget
      Gtk2::Container
        Gtk2::Bin
          Gtk2::Window
            Gtk2::Dialog
              Gtk2::FileChooserDialog
                Gtk2::Ex::ErrorTextDialog::SaveDialog

DESCRIPTION ^

This is part of Gtk2::Ex::ErrorTextDialog and really not meant for external use.

A SaveDialog is popped up by the "Save As" button in an ErrorTextDialog. It gets a filename from the user and saves the error text to that file. SaveDialog is separate for modularity and to slightly reduce the code in the main ErrorTextDialog, because a save may be wanted only rarely.

FUNCTIONS ^

Creation

$savedialog = Gtk2::Ex::ErrorTextDialog::SaveDialog->new (key=>value,...)

Create and return a new ErrorTextDialog. Optional key/value pairs set initial properties as per Glib::Object->new. The originating ErrorTextDialog should be set as the transient-for parent.

    my $savedialog = Gtk2::Ex::ErrorTextDialog::SaveDialog->new
                       (transient_for => $errordialog);

But note transient-for as a property is new in Gtk 2.10. Use the set_transient_for method (available in all Gtk) to support prior versions,

    my $savedialog = Gtk2::Ex::ErrorTextDialog::SaveDialog->new;
    $savedialog->set_transient_for ($errordialog);

SEE ALSO ^

Gtk2::Ex::ErrorTextDialog, Gtk2::FileChooserDialog, Gtk2::FileChooser

HOME PAGE ^

http://user42.tuxfamily.org/gtk2-ex-errortextdialog/

LICENSE ^

Gtk2-Ex-ErrorTextDialog is Copyright 2007, 2008, 2009, 2010 Kevin Ryde

Gtk2-Ex-ErrorTextDialog is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Gtk2-Ex-ErrorTextDialog is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Gtk2-Ex-ErrorTextDialog. If not, see http://www.gnu.org/licenses/.

syntax highlighting: