Gtk2::IconTheme(3) User Contributed Perl Documentation Gtk2::IconTheme(3)NAME
Gtk2::IconTheme
HIERARCHY
Glib::Object
+----Gtk2::IconTheme
METHODS
icontheme = Gtk2::IconTheme->new
Gtk2::IconTheme->add_builtin_icon ($icon_name, $size, $pixbuf)
o $icon_name (string)
o $size (integer)
o $pixbuf (Gtk2::Gdk::Pixbuf)
$icon_theme->append_search_path ($path)
o $path (localized file name)
iconinfo or undef = $icon_theme->choose_icon ($icon_names, $size, $flags)
o $icon_names (scalar)
o $size (integer)
o $flags (Gtk2::IconLookupFlags)
Since: gtk+ 2.12
$icon_theme->set_custom_theme ($theme_name)
o $theme_name (string)
icontheme = Gtk2::IconTheme->get_default
string = $icon_theme->get_example_icon_name
icontheme = Gtk2::IconTheme->get_for_screen ($screen)
o $screen (Gtk2::Gdk::Screen)
boolean = $icon_theme->has_icon ($icon_name)
o $icon_name (string)
list = $icon_theme->get_icon_sizes ($icon_name)
o $icon_name (string)
Since: gtk+ 2.6
list = $icon_theme->list_contexts
Since: gtk+ 2.12
list = $icon_theme->list_icons ($context)
o $context (string or undef)
pixbuf or undef = $icon_theme->load_icon ($icon_name, $size, $flags)
o $icon_name (string)
o $size (integer)
o $flags (Gtk2::IconLookupFlags)
May croak with a Glib::Error in $@ on failure.
iconinfo or undef = $icon_theme->lookup_icon ($icon_name, $size, $flags)
o $icon_name (string)
o $size (integer)
o $flags (Gtk2::IconLookupFlags)
$icon_theme->prepend_search_path ($path)
o $path (localized file name)
boolean = $icon_theme->rescan_if_needed
$icon_theme->set_screen ($screen)
o $screen (Gtk2::Gdk::Screen)
list = $icon_theme->get_search_path
$icon_theme->set_search_path (...)
o ... (list)
SIGNALS
changed (Gtk2::IconTheme)
ENUMS AND FLAGS
flags Gtk2::IconLookupFlags
o 'no-svg' / 'GTK_ICON_LOOKUP_NO_SVG'
o 'force-svg' / 'GTK_ICON_LOOKUP_FORCE_SVG'
o 'use-builtin' / 'GTK_ICON_LOOKUP_USE_BUILTIN'
o 'generic-fallback' / 'GTK_ICON_LOOKUP_GENERIC_FALLBACK'
o 'force-size' / 'GTK_ICON_LOOKUP_FORCE_SIZE'
enum Gtk2::IconThemeError
o 'not-found' / 'GTK_ICON_THEME_NOT_FOUND'
o 'failed' / 'GTK_ICON_THEME_FAILED'
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::IconTheme(3)
Check Out this Related Man Page
Gtk2::StatusIcon(3) User Contributed Perl Documentation Gtk2::StatusIcon(3)NAME
Gtk2::StatusIcon
HIERARCHY
Glib::Object
+----Gtk2::StatusIcon
METHODS
statusicon = Gtk2::StatusIcon->new
statusicon = Gtk2::StatusIcon->new_from_file ($filename)
o $filename (localized file name)
statusicon = Gtk2::StatusIcon->new_from_icon_name ($icon_name)
o $icon_name (string)
statusicon = Gtk2::StatusIcon->new_from_pixbuf ($pixbuf)
o $pixbuf (Gtk2::Gdk::Pixbuf)
statusicon = Gtk2::StatusIcon->new_from_stock ($stock_id)
o $stock_id (string)
boolean = $status_icon->get_blinking
$status_icon->set_blinking ($blinking)
o $blinking (boolean)
$status_icon->set_from_file ($filename)
o $filename (localized file name)
$status_icon->set_from_icon_name ($icon_name)
o $icon_name (string)
$status_icon->set_from_pixbuf ($pixbuf)
o $pixbuf (Gtk2::Gdk::Pixbuf or undef)
$status_icon->set_from_stock ($stock_id)
o $stock_id (string)
list = $status_icon->get_geometry
boolean = $status_icon->get_has_tooltip
Since: gtk+ 2.16
$status_icon->set_has_tooltip ($has_tooltip)
o $has_tooltip (boolean)
Since: gtk+ 2.16
string or undef = $status_icon->get_icon_name
boolean = $status_icon->is_embedded
pixbuf or undef = $status_icon->get_pixbuf
(x, y, push_in) = Gtk2::StatusIcon::position_menu (menu, icon)
(x, y, push_in) = Gtk2::StatusIcon::position_menu (menu, x, y, icon)
o ... (list)
o $icon (Gtk2::StatusIcon)
o $y (integer)
o $x (integer)
This function takes four arguments so that it may be passed directly as the menu position callback to Gtk2::Menu::popup(), which passes in
initial x and y values for historical reasons. Otherwise, you need only pass two arguments.
This function can be used as the menu_pos_func argument to Gtk2::Menu::popup.
screen = $status_icon->get_screen
Since: gtk+ 2.12
$status_icon->set_screen ($screen)
o $screen (Gtk2::Gdk::Screen)
Since: gtk+ 2.12
integer = $status_icon->get_size
string or undef = $status_icon->get_stock
imagetype = $status_icon->get_storage_type
string or undef = $status_icon->get_tooltip_markup
Since: gtk+ 2.16
$status_icon->set_tooltip_markup ($markup)
o $markup (string or undef)
Since: gtk+ 2.16
$status_icon->set_tooltip ($tooltip_text)
o $tooltip_text (string or undef)
string or undef = $status_icon->get_tooltip_text
Since: gtk+ 2.16
$status_icon->set_tooltip_text ($text)
o $text (string or undef)
Since: gtk+ 2.16
boolean = $status_icon->get_visible
$status_icon->set_visible ($visible)
o $visible (boolean)
unsigned = $status_icon->get_x11_window_id
Since: gtk+ 2.14
PROPERTIES
'blinking' (boolean : readable / writable / private)
Whether or not the status icon is blinking
'embedded' (boolean : readable / private)
Whether or not the status icon is embedded
'file' (string : writable / private)
Filename to load and display
'gicon' (Glib::Object::_Unregistered::GIcon : readable / writable / private)
The GIcon being displayed
'has-tooltip' (boolean : readable / writable / private)
Whether this tray icon has a tooltip
'icon-name' (string : readable / writable / private)
The name of the icon from the icon theme
'orientation' (Gtk2::Orientation : readable / private)
The orientation of the tray
'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)
A GdkPixbuf to display
'screen' (Gtk2::Gdk::Screen : readable / writable / private)
The screen where this status icon will be displayed
'size' (integer : readable / private)
The size of the icon
'stock' (string : readable / writable / private)
Stock ID for a stock image to display
'storage-type' (Gtk2::ImageType : readable / private)
The representation being used for image data
'title' (string : readable / writable / private)
The title of this tray icon
'tooltip-markup' (string : readable / writable / private)
The contents of the tooltip for this tray icon
'tooltip-text' (string : readable / writable / private)
The contents of the tooltip for this widget
'visible' (boolean : readable / writable / private)
Whether or not the status icon is visible
SIGNALS
activate (Gtk2::StatusIcon)
boolean = button-press-event (Gtk2::StatusIcon, Gtk2::Gdk::Event)
boolean = button-release-event (Gtk2::StatusIcon, Gtk2::Gdk::Event)
boolean = scroll-event (Gtk2::StatusIcon, Gtk2::Gdk::Event)
boolean = query-tooltip (Gtk2::StatusIcon, integer, integer, boolean, Gtk2::Tooltip)
popup-menu (Gtk2::StatusIcon, Glib::UInt, Glib::UInt)
boolean = size-changed (Gtk2::StatusIcon, integer)
ENUMS AND FLAGS
enum Gtk2::ImageType
o 'empty' / 'GTK_IMAGE_EMPTY'
o 'pixmap' / 'GTK_IMAGE_PIXMAP'
o 'image' / 'GTK_IMAGE_IMAGE'
o 'pixbuf' / 'GTK_IMAGE_PIXBUF'
o 'stock' / 'GTK_IMAGE_STOCK'
o 'icon-set' / 'GTK_IMAGE_ICON_SET'
o 'animation' / 'GTK_IMAGE_ANIMATION'
o 'icon-name' / 'GTK_IMAGE_ICON_NAME'
o 'gicon' / 'GTK_IMAGE_GICON'
enum Gtk2::Orientation
o 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
o 'vertical' / 'GTK_ORIENTATION_VERTICAL'
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::StatusIcon(3)