-
-
10 Jun 2011 01:41:41 UTC
- Distribution: Gtk2-Ex-History
- Module version: 8
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Issues
- Testers (1059 / 1 / 1)
- Kwalitee
Bus factor: 1- 87.50% Coverage
- License: open_source
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (52.88KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Kevin Ryde
- Dependencies
- Glib::Ex::ConnectProperties
- Glib::Ex::FreezeNotify
- Glib::Ex::ObjectBits
- Glib::Ex::SignalBits
- Glib::Ex::SignalIds
- Glib::Object::Subclass
- Gtk2
- Gtk2::Ex::Dashes::MenuItem
- Gtk2::Ex::MenuView
- Gtk2::Ex::TreeModelBits
- Gtk2::Ex::Units
- Gtk2::Ex::WidgetEvents
- Locale::Messages
- Locale::TextDomain
- Test::Weaken::Gtk2
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Gtk2::Ex::History::MenuToolButton -- toolbar button for history "back" or "forward"
SYNOPSIS
use Gtk2::Ex::History::MenuToolButton; my $item = Gtk2::Ex::History::MenuToolButton->new (history => $my_history, way => 'forward'); $toolbar->add ($item);
OBJECT HIERARCHY
Gtk2::Ex::History::MenuToolButton
is a subclass ofGtk2::MenuToolButton
.Gtk2::Widget Gtk2::Container Gtk2::Bin Gtk2::ToolItem Gtk2::ToolButton Gtk2::MenuToolButton Gtk2::Ex::History::MenuToolButton
DESCRIPTION
This is a toolbar button which invokes either
back
orforward
on aGtk2::Ex::History
object. The arrow part of the button presents a menu of the history in that direction.+-------------+---+ | | | | ==> Forward | V | | | | +-------------+---+ +---------------+ | Some Thing | | Another Place | | Future Most | +---------------+
A plain
Gtk2::Ex::History::Button
can be put in aGtk2::ToolItem
and used in a toolbar for a similar result. The difference is whether you prefer the menu popup with an arrow or with mouse button-3. The arrow has the advantage of a visual indication that there's something available.FUNCTIONS
$item = Gtk2::Ex::History::MenuToolButton->new (key => value, ...)
-
Create and return a new history button. Optional key/value pairs can be given to set initial properties, as per
Glib::Object->new
.The
history
property should be set to say what to display and act on, andway
for back or forward.my $item = Gtk2::Ex::History::MenuToolButton->new (history => $history, way => 'forward');
PROPERTIES
history
(Gtk2::Ex::History
object, defaultundef
)-
The history object to act on.
way
(enumGtk2::Ex::History::Way
, default 'back')-
The direction to go, either "back" or "forward".
The
stock-id
property (perGtk2::ToolButton
) is set from this, eithergtk-go-back
orgtk-go-forward
.
SEE ALSO
Gtk2::Ex::History, Gtk2::Ex::History::Menu, Gtk2::Ex::History::Button, Gtk2::Ex::History::Action, Gtk2::MenuToolButton
HOME PAGE
http://user42.tuxfamily.org/gtk2-ex-history/index.html
LICENSE
Gtk2-Ex-History is Copyright 2010, 2011 Kevin Ryde
Gtk2-Ex-History 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-History 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-History. If not, see http://www.gnu.org/licenses/.
Module Install Instructions
To install Gtk2::Ex::History, copy and paste the appropriate command in to your terminal.
cpanm Gtk2::Ex::History
perl -MCPAN -e shell install Gtk2::Ex::History
For more information on module installation, please visit the detailed CPAN module installation guide.