The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Chart::Gtk2::Ex::ToplevelBits -- helpers for Gtk2::Window toplevel widgets

SYNOPSIS

 use App::Chart::Gtk2::Ex::ToplevelBits;

FUNCTIONS

$toplevel = App::Chart::Gtk2::Ex::ToplevelBits::popup ($class, key => value, ...)

Create or raise a dialog.

screen => $screen
screen => $widget
screen => $display

The screen on which the dialog should appear, either an existing dialog on that screen or by creating a new one on it.

properties => $hashref

Property settings an existing dialog must have, or to be applied on a newly created dialog.

transient_for => $toplevel

Set the dialog's transient-for property to the given toplevel Gtk2::Window. This normally makes the window manager keep the dialog on top of the $toplevel.

Set the dialog to modal, or not. Modal forces the user to interact only with this window or dialog, not any of the other application windows.

hide_on_delete => $bool

When creating a new dialog, make it do a $dialog->hide on a "delete" request from the window manager. This is done in the usual way by connecting Gtk2::Widget::hide_on_delete as a handler for the delete-event signal. The default is to destroy the dialog on delete.

SEE ALSO

Gtk2::Window, Gtk2::Dialog, Gtk2::Ex::WidgetBits

HOME PAGE

http://user42.tuxfamily.org/chart/index.html

LICENSE

Copyright 2008, 2009, 2010 Kevin Ryde

Chart 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.

Chart 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 Chart. If not, see http://www.gnu.org/licenses/.