Rechercher une page de manuel
Gtk2::NotificationBubble.3pm
Langue: en
Version: 2005-08-19 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Gtk2::NotificationBubble - Perl interface to the EggNotificationBubble librarySYNOPSIS
use Gtk2::NotificationBubble; use Gtk2::TrayIcon; Gtk2->init; my $icon= Gtk2::TrayIcon->new("test"); my $label= Gtk2::Label->new("test"); $icon->add($label); $icon->show_all; my $bubble = Gtk2::NotificationBubble->new; $bubble->attach($icon); $bubble->set("Hello", undef, "I'm a bubble!"); $bubble->show(5000); Gtk2->main;
ABSTRACT
This module allows a Perl developer to display notification bubbles on top of Gtk2 widgets. They look like tooltips with bevelled borders and arrows. They can display an icon and a bold header.DESCRIPTION
EggNotificationBubble is slated for inclusion in Gtk+ at some point, which is the reason the "Gtk2::NotificationBubble" namespace. As all egg libs, EggNotificationBubble is not considered api stable and its not installed as a shared object.This notification bubble is currently used in rhythmbox, and will be merged in libegg soon. It has been written to replace the original implementation of messages notification in EggTrayIcon.
METHODS
5 methods are available.- $bubble = Gtk2::NotificationBubble->new
- Creates the notification bubble widget.
- $bublle->attach ($widget)
- Attach the notification bubble to a widget.
- $bubble->set ($notification_header, $icon, $notification_body)
- Set the bubble content (bold header, left icon, and notification text)
- $bubble->show($timeout)
- Show the bubble for the specified amount of time (or forever if <= 0)
- $bubble->hide
- Hide the bubble
- $bubble->force_window
- Force the bubble window to be created. This should never be called, it's done by the show method.
SEE ALSO
Glib, Gtk2, Gtk2::WidgetAUTHOR
Olivier Blin <oblin at mandriva dot com>COPYRIGHT AND LICENSE
Copyright 2005 by the gtk2-perl team.This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library 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 Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre