Gtk2-AppIndicator
view release on metacpan or search on metacpan
lib/Gtk2/AppIndicator.pm view on Meta::CPAN
$ind=Gtk2::AppIndicator->new($application_id,$active_icon_name [,$category])
Creates a new application indicator object with given name (id) and icon name for the active icon.
Category must be one of { 'application-status','communications','system-services','hardware','other' }
if set. if not set, it defaults to 'application-status'.
$ind->set_icon_theme_path($path)
Set the icon theme path to 'path'. This is where icons should be found with names like <active_icon_name>.png.
$ind->get_icon_theme_path()
Returns the (previously written) icon theme path, or undefined if not set.
$ind->get_category()
Returns the previously set category with the new function.
$ind->get_id()
Returns the application id given to the new function.
$ind->set_icon_name_active($name)
Sets the icon name for the active icon.
$ind->get_icon_name_active()
Returns the name of the icon for active state.
$ind->set_icon_name_attention($name)
Sets the icon name for the attention icon
$ind->get_icon_name_attention()
Returns the name of the icon for attention state.
$ind->set_active()
Makes the application indicator active.
$ind->set_attention()
Makes the application indicator show the attention icon.
$ind->set_passive()
Makes the application indicator enter passive state, not showing any icon
$ind->set_state($state)
Sets application indicator in the given state, one of {'active','passive','attention'}.
$ind->get_state()
Returns the current state of the application indicator.
$ind->set_menu($menu)
Sets the popup menu for the indicator icon.
$ind->get_menu()
Returns the current menu (not from the C code, but as stored in the perl object)
$ind->set_secondary_activate_target($widget)
Sets the secondary active target (under the middle mouse button) to $widget
$ind->get_secondary_activate_target()
Returns the current secondary active target (not from the C code, but as stored in the perl object)
=head1 AUTHOR
Hans Oesterholt, E<lt>oesterhol@cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2012 by Hans Oesterholt <oesterhol@cpan.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
=cut
( run in 0.885 second using v1.01-cache-2.11-cpan-364913b4093 )