Gtk.StatusIcon¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| r | Whether the status icon is embedded | ||
| w | Filename to load and display | ||
| r/w | The  | ||
| r/w/en | Whether this tray icon has a tooltip | ||
| r/w | The name of the icon from the icon theme | ||
| r | The orientation of the tray | ||
| r/w | A  | ||
| r/w | The screen where this status icon will be displayed | ||
| r | The size of the icon | ||
| d/r/w | Stock ID for a stock image to display  | ||
| r | The representation being used for image data | ||
| r/w | The title of this tray icon | ||
| r/w | The contents of the tooltip for this tray icon | ||
| r/w | The contents of the tooltip for this widget | ||
| r/w/en | Whether the status icon is visible | 
Signals¶
- Inherited:
| Name | Short Description | 
|---|---|
| Gets emitted when the user activates the status icon. | |
| The  | |
| The  | |
| Gets emitted when the user brings up the context menu of the status icon. | |
| Emitted when the hover timeout has expired with the cursor hovering above status_icon; or emitted when status_icon got focus in keyboard mode. | |
| The  | |
| Gets emitted when the size available for the image changes, e.g. | 
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_instance | r | 
Class Details¶
- class Gtk.StatusIcon(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - The “system tray” or notification area is normally used for transient icons that indicate some special state. For example, a system tray icon might appear to tell the user that they have new mail, or have an incoming instant message, or something along those lines. The basic idea is that creating an icon in the notification area is less annoying than popping up a dialog. - A - Gtk.StatusIconobject can be used to display an icon in a “system tray”. The icon can have a tooltip, and the user can interact with it by activating it or popping up a context menu.- It is very important to notice that status icons depend on the existence of a notification area being available to the user; you should not use status icons as the only way to convey critical information regarding your application, as the notification area may not exist on the user’s environment, or may have been removed. You should always check that a status icon has been embedded into a notification area by using - Gtk.StatusIcon.is_embedded(), and gracefully recover if the function returns- False.- On X11, the implementation follows the FreeDesktop System Tray Specification. Implementations of the “tray” side of this specification can be found e.g. in the GNOME 2 and KDE panel applications. - Note that a - Gtk.StatusIconis not a widget, but just a- GObject.Object. Making it a widget would be impractical, since the system tray on Windows doesn’t allow to embed arbitrary widgets.- Gtk.StatusIconhas been deprecated in 3.14. You should consider using notifications or more modern platform-specific APIs instead. GLib provides the- Gio.NotificationAPI which works well with- Gtk.Applicationon multiple platforms and environments, and should be the preferred mechanism to notify the users of transient status updates. See this HowDoI for code examples.- classmethod new()[source]¶
- Returns:
- a new - Gtk.StatusIcon
- Return type:
 - Creates an empty status icon object. - New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications
 - classmethod new_from_file(filename)[source]¶
- Parameters:
- filename ( - str) – a filename
- Returns:
- a new - Gtk.StatusIcon
- Return type:
 - Creates a status icon displaying the file filename. - The image will be scaled down to fit in the available space in the notification area, if necessary. - New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications
 - classmethod new_from_gicon(icon)[source]¶
- Parameters:
- Returns:
- a new - Gtk.StatusIcon
- Return type:
 - Creates a status icon displaying a - Gio.Icon. If the icon is a themed icon, it will be updated when the theme changes.- New in version 2.14. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications
 - classmethod new_from_icon_name(icon_name)[source]¶
- Parameters:
- icon_name ( - str) – an icon name
- Returns:
- a new - Gtk.StatusIcon
- Return type:
 - Creates a status icon displaying an icon from the current icon theme. If the current icon theme is changed, the icon will be updated appropriately. - New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications
 - classmethod new_from_pixbuf(pixbuf)[source]¶
- Parameters:
- pixbuf ( - GdkPixbuf.Pixbuf) – a- GdkPixbuf.Pixbuf
- Returns:
- a new - Gtk.StatusIcon
- Return type:
 - Creates a status icon displaying pixbuf. - The image will be scaled down to fit in the available space in the notification area, if necessary. - New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications
 - classmethod new_from_stock(stock_id)[source]¶
- Parameters:
- stock_id ( - str) – a stock icon id
- Returns:
- a new - Gtk.StatusIcon
- Return type:
 - Creates a status icon displaying a stock icon. Sample stock icon names are - Gtk.STOCK_OPEN,- Gtk.STOCK_QUIT. You can register your own stock icon names, see- Gtk.IconFactory.add_default() and- Gtk.IconFactory.add().- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications
 - Parameters:
- x ( - int) – return location for the x position
- y ( - int) – return location for the y position
- user_data ( - Gtk.StatusIcon) – the status icon to position the menu on
 
- Returns:
- x:
- return location for the x position 
- y:
- return location for the y position 
- push_in:
- whether the first menu item should be offset (pushed in) to be aligned with the menu popup position (only useful for GtkOptionMenu). 
 
- Return type:
 - Menu positioning function to use with - Gtk.Menu.popup() to position menu aligned to the status icon user_data.- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; notifications do not have menus, but can have buttons, and actions associated with each button
 - get_geometry()[source]¶
- Returns:
- Trueif the location information has been filled in- screen:
- return location for the screen, or - Noneif the information is not needed
- area:
- return location for the area occupied by the status icon, or - None
- orientation:
- return location for the orientation of the panel in which the status icon is embedded, or - None. A panel at the top or bottom of the screen is horizontal, a panel at the left or right is vertical.
 
- Return type:
- ( - bool, screen:- Gdk.Screen, area:- Gdk.Rectangle, orientation:- Gtk.Orientation)
 - Obtains information about the location of the status icon on screen. This information can be used to e.g. position popups like notification bubbles. - See - Gtk.StatusIcon.position_menu() for a more convenient alternative for positioning menus.- Note that some platforms do not allow GTK+ to provide this information, and even on platforms that do allow it, the information is not reliable unless the status icon is embedded in a notification area, see - Gtk.StatusIcon.is_embedded().- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, as the platform is responsible for the presentation of notifications
 - get_gicon()[source]¶
- 
Retrieves the Gio.Iconbeing displayed by theGtk.StatusIcon. The storage type of the status icon must beGtk.ImageType.EMPTYorGtk.ImageType.GICON(seeGtk.StatusIcon.get_storage_type()). The caller of this function does not own a reference to the returnedGio.Icon.If this function fails, icon is left unchanged; New in version 2.14. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_has_tooltip()[source]¶
- Returns:
- current value of has-tooltip on self. 
- Return type:
 - Returns the current value of the has-tooltip property. See - Gtk.StatusIcon- :has-tooltipfor more information.- New in version 2.16. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_icon_name()[source]¶
- 
Gets the name of the icon being displayed by the Gtk.StatusIcon. The storage type of the status icon must beGtk.ImageType.EMPTYorGtk.ImageType.ICON_NAME(seeGtk.StatusIcon.get_storage_type()). The returned string is owned by theGtk.StatusIconand should not be freed or modified.New in version 2.10. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_pixbuf()[source]¶
- Returns:
- the displayed pixbuf, or - Noneif the image is empty.
- Return type:
 - Gets the - GdkPixbuf.Pixbufbeing displayed by the- Gtk.StatusIcon. The storage type of the status icon must be- Gtk.ImageType.EMPTYor- Gtk.ImageType.PIXBUF(see- Gtk.StatusIcon.get_storage_type()). The caller of this function does not own a reference to the returned pixbuf.- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_screen()[source]¶
- Returns:
- a - Gdk.Screen.
- Return type:
 - Returns the - Gdk.Screenassociated with self.- New in version 2.12. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, as notifications are managed by the platform
 - get_size()[source]¶
- Returns:
- the size that is available for the image 
- Return type:
 - Gets the size in pixels that is available for the image. Stock icons and named icons adapt their size automatically if the size of the notification area changes. For other storage types, the size-changed signal can be used to react to size changes. - Note that the returned size is only meaningful while the status icon is embedded (see - Gtk.StatusIcon.is_embedded()).- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, as the representation of a notification is left to the platform
 - get_stock()[source]¶
- Returns:
- stock id of the displayed stock icon, or - Noneif the image is empty.
- Return type:
 - Gets the id of the stock icon being displayed by the - Gtk.StatusIcon. The storage type of the status icon must be- Gtk.ImageType.EMPTYor- Gtk.ImageType.STOCK(see- Gtk.StatusIcon.get_storage_type()). The returned string is owned by the- Gtk.StatusIconand should not be freed or modified.- New in version 2.10. - Deprecated since version 3.10: Use - Gtk.StatusIcon.get_icon_name() instead.
 - get_storage_type()[source]¶
- Returns:
- the image representation being used 
- Return type:
 - Gets the type of representation being used by the - Gtk.StatusIconto store image data. If the- Gtk.StatusIconhas no image data, the return value will be- Gtk.ImageType.EMPTY.- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, and- Gio.Notificationonly supports- Gio.Iconinstances
 - get_title()[source]¶
- Returns:
- the title of the status icon 
- Return type:
 - Gets the title of this tray icon. See - Gtk.StatusIcon.set_title().- New in version 2.18. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_tooltip_markup()[source]¶
- Returns:
- the tooltip text, or - None. You should free the returned string with- GLib.free() when done.
- Return type:
 - Gets the contents of the tooltip for self. - New in version 2.16. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_tooltip_text()[source]¶
- Returns:
- the tooltip text, or - None. You should free the returned string with- GLib.free() when done.
- Return type:
 - Gets the contents of the tooltip for self. - New in version 2.16. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_visible()[source]¶
- 
Returns whether the status icon is visible or not. Note that being visible does not guarantee that the user can actually see the icon, see also Gtk.StatusIcon.is_embedded().New in version 2.10. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; there is no direct replacement for this function
 - get_x11_window_id()[source]¶
- Returns:
- An 32 bit unsigned integer identifier for the underlying X11 Window 
- Return type:
 - This function is only useful on the X11/freedesktop.org platform. - It returns a window ID for the widget in the underlying status icon implementation. This is useful for the Galago notification service, which can send a window ID in the protocol in order for the server to position notification windows pointing to a status icon reliably. - This function is not intended for other use cases which are more likely to be met by one of the non-X11 specific methods, such as - Gtk.StatusIcon.position_menu().- New in version 2.14. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - is_embedded()[source]¶
- 
Returns whether the status icon is embedded in a notification area. New in version 2.10. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; there is no direct replacement for this function
 - set_from_file(filename)[source]¶
- Parameters:
- filename ( - str) – a filename
 - Makes self display the file filename. See - Gtk.StatusIcon.new_from_file() for details.- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; you can use- Gio.Notification.set_icon() to associate a- Gio.Iconwith a notification
 - set_from_gicon(icon)[source]¶
- 
Makes self display the Gio.Icon. SeeGtk.StatusIcon.new_from_gicon() for details.New in version 2.14. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; you can useGio.Notification.set_icon() to associate aGio.Iconwith a notification
 - set_from_icon_name(icon_name)[source]¶
- Parameters:
- icon_name ( - str) – an icon name
 - Makes self display the icon named icon_name from the current icon theme. See - Gtk.StatusIcon.new_from_icon_name() for details.- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; you can use- Gio.Notification.set_icon() to associate a- Gio.Iconwith a notification
 - set_from_pixbuf(pixbuf)[source]¶
- Parameters:
- pixbuf ( - GdkPixbuf.Pixbufor- None) – a- GdkPixbuf.Pixbufor- None
 - Makes self display pixbuf. See - Gtk.StatusIcon.new_from_pixbuf() for details.- New in version 2.10. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; you can use- Gio.Notification.set_icon() to associate a- Gio.Iconwith a notification
 - set_from_stock(stock_id)[source]¶
- Parameters:
- stock_id ( - str) – a stock icon id
 - Makes self display the stock icon with the id stock_id. See - Gtk.StatusIcon.new_from_stock() for details.- New in version 2.10. - Deprecated since version 3.10: Use - Gtk.StatusIcon.set_from_icon_name() instead.
 - set_has_tooltip(has_tooltip)[source]¶
- Parameters:
- has_tooltip ( - bool) – whether or not self has a tooltip
 - Sets the has-tooltip property on self to has_tooltip. See - Gtk.StatusIcon- :has-tooltipfor more information.- New in version 2.16. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, but notifications can display an arbitrary amount of text using- Gio.Notification.set_body()
 - set_name(name)[source]¶
- Parameters:
- name ( - str) – the name
 - Sets the name of this tray icon. This should be a string identifying this icon. It is may be used for sorting the icons in the tray and will not be shown to the user. - New in version 2.20. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, as notifications are associated with a unique application identifier by- Gio.Application
 - set_screen(screen)[source]¶
- Parameters:
- screen ( - Gdk.Screen) – a- Gdk.Screen
 - Sets the - Gdk.Screenwhere self is displayed; if the icon is already mapped, it will be unmapped, and then remapped on the new screen.- New in version 2.12. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function, as GTK typically only has one- Gdk.Screenand notifications are managed by the platform
 - set_title(title)[source]¶
- Parameters:
- title ( - str) – the title
 - Sets the title of this tray icon. This should be a short, human-readable, localized string describing the tray icon. It may be used by tools like screen readers to render the tray icon. - New in version 2.18. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; you should use- Gio.Notification.set_title() and- Gio.Notification.set_body() to present text inside your notification
 - set_tooltip_markup(markup)[source]¶
- 
Sets markup as the contents of the tooltip, which is marked up with the Pango text markup language. This function will take care of setting Gtk.StatusIcon:has-tooltiptoTrueand of the default handler for theGtk.StatusIcon::query-tooltipsignal.See also the Gtk.StatusIcon:tooltip-markupproperty andGtk.Tooltip.set_markup().New in version 2.16. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; there is no direct replacement for this function
 - set_tooltip_text(text)[source]¶
- Parameters:
- text ( - str) – the contents of the tooltip for self
 - Sets text as the contents of the tooltip. - This function will take care of setting - Gtk.StatusIcon- :has-tooltipto- Trueand of the default handler for the- Gtk.StatusIcon- ::query-tooltipsignal.- See also the - Gtk.StatusIcon- :tooltip-textproperty and- Gtk.Tooltip.set_text().- New in version 2.16. - Deprecated since version 3.14: Use - Gio.Notificationand- Gtk.Applicationto provide status notifications; there is no direct replacement for this function
 - set_visible(visible)[source]¶
- 
Shows or hides a status icon. New in version 2.10. Deprecated since version 3.14: Use Gio.NotificationandGtk.Applicationto provide status notifications; there is no direct replacement for this function, as notifications are managed by the platform
 - do_activate() virtual¶
 - do_button_press_event(event) virtual¶
- Parameters:
- event ( - Gdk.EventButton) –
- Return type:
 
 - do_button_release_event(event) virtual¶
- Parameters:
- event ( - Gdk.EventButton) –
- Return type:
 
 - do_query_tooltip(x, y, keyboard_mode, tooltip) virtual¶
- Parameters:
- x ( - int) –
- y ( - int) –
- keyboard_mode ( - bool) –
- tooltip ( - Gtk.Tooltip) –
 
- Return type:
 
 - do_scroll_event(event) virtual¶
- Parameters:
- event ( - Gdk.EventScroll) –
- Return type:
 
 
Signal Details¶
- Gtk.StatusIcon.signals.activate(status_icon)¶
- Signal Name:
- activate
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
 - Gets emitted when the user activates the status icon. If and how status icons can activated is platform-dependent. - Unlike most - GObject.SignalFlags.ACTIONsignals, this signal is meant to be used by applications and should be wrapped by language bindings.- New in version 2.10. 
- Gtk.StatusIcon.signals.button_press_event(status_icon, event)¶
- Signal Name:
- button-press-event
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
- event ( - Gdk.EventButton) – the- Gdk.EventButtonwhich triggered this signal
 
- Returns:
- Trueto stop other handlers from being invoked for the event.- Falseto propagate the event further.
- Return type:
 - The - ::button-press-eventsignal will be emitted when a button (typically from a mouse) is pressed.- Whether this event is emitted is platform-dependent. Use the - ::activateand- ::popup-menusignals in preference.- New in version 2.14. 
- Gtk.StatusIcon.signals.button_release_event(status_icon, event)¶
- Signal Name:
- button-release-event
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
- event ( - Gdk.EventButton) – the- Gdk.EventButtonwhich triggered this signal
 
- Returns:
- Trueto stop other handlers from being invoked for the event.- Falseto propagate the event further.
- Return type:
 - The - ::button-release-eventsignal will be emitted when a button (typically from a mouse) is released.- Whether this event is emitted is platform-dependent. Use the - ::activateand- ::popup-menusignals in preference.- New in version 2.14. 
- Signal Name:
- popup-menu
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
- button ( - int) – the button that was pressed, or 0 if the signal is not emitted in response to a button press event
- activate_time ( - int) – the timestamp of the event that triggered the signal emission
 
 - Gets emitted when the user brings up the context menu of the status icon. Whether status icons can have context menus and how these are activated is platform-dependent. - The button and activate_time parameters should be passed as the last to arguments to - Gtk.Menu.popup().- Unlike most - GObject.SignalFlags.ACTIONsignals, this signal is meant to be used by applications and should be wrapped by language bindings.- New in version 2.10. 
- Gtk.StatusIcon.signals.query_tooltip(status_icon, x, y, keyboard_mode, tooltip)¶
- Signal Name:
- query-tooltip
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
- x ( - int) – the x coordinate of the cursor position where the request has been emitted, relative to status_icon
- y ( - int) – the y coordinate of the cursor position where the request has been emitted, relative to status_icon
- keyboard_mode ( - bool) –- Trueif the tooltip was trigged using the keyboard
- tooltip ( - Gtk.Tooltip) – a- Gtk.Tooltip
 
- Returns:
- Return type:
 - Emitted when the hover timeout has expired with the cursor hovering above status_icon; or emitted when status_icon got focus in keyboard mode. - Using the given coordinates, the signal handler should determine whether a tooltip should be shown for status_icon. If this is the case - Trueshould be returned,- Falseotherwise. Note that if keyboard_mode is- True, the values of x and y are undefined and should not be used.- The signal handler is free to manipulate tooltip with the therefore destined function calls. - Whether this signal is emitted is platform-dependent. For plain text tooltips, use - Gtk.StatusIcon- :tooltip-textin preference.- New in version 2.16. 
- Gtk.StatusIcon.signals.scroll_event(status_icon, event)¶
- Signal Name:
- scroll-event
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
- event ( - Gdk.EventScroll) – the- Gdk.EventScrollwhich triggered this signal
 
- Returns:
- Trueto stop other handlers from being invoked for the event.- Falseto propagate the event further.
- Return type:
 - The - ::scroll-eventsignal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.- Whether this event is emitted is platform-dependent. - New in version 2.16. 
- Gtk.StatusIcon.signals.size_changed(status_icon, size)¶
- Signal Name:
- size-changed
- Flags:
- Parameters:
- status_icon ( - Gtk.StatusIcon) – The object which received the signal
- size ( - int) – the new size
 
- Returns:
- Trueif the icon was updated for the new size. Otherwise, GTK+ will scale the icon as necessary.
- Return type:
 - Gets emitted when the size available for the image changes, e.g. because the notification area got resized. - New in version 2.10. 
Property Details¶
- Gtk.StatusIcon.props.embedded¶
- 
Trueif the statusicon is embedded in a notification area.New in version 2.12. 
- Gtk.StatusIcon.props.file¶
- 
Filename to load and display 
- Gtk.StatusIcon.props.gicon¶
- 
The Gio.Icondisplayed in theGtk.StatusIcon. For themed icons, the image will be updated automatically if the theme changes.New in version 2.14. 
- Gtk.StatusIcon.props.has_tooltip¶
- Name:
- has-tooltip
- Type:
- Default Value:
- Flags:
 - Enables or disables the emission of - Gtk.StatusIcon- ::query-tooltipon status_icon. A value of- Trueindicates that status_icon can have a tooltip, in this case the status icon will be queried using- Gtk.StatusIcon- ::query-tooltipto determine whether it will provide a tooltip or not.- Note that setting this property to - Truefor the first time will change the event masks of the windows of this status icon to include leave-notify and motion-notify events. This will not be undone when the property is set to- Falseagain.- Whether this property is respected is platform dependent. For plain text tooltips, use - Gtk.StatusIcon- :tooltip-textin preference.- New in version 2.16. 
- Gtk.StatusIcon.props.icon_name¶
- 
The name of the icon from the icon theme 
- Gtk.StatusIcon.props.orientation¶
- Name:
- orientation
- Type:
- Default Value:
- Flags:
 - The orientation of the tray in which the statusicon is embedded. - New in version 2.12. 
- Gtk.StatusIcon.props.pixbuf¶
- Name:
- pixbuf
- Type:
- Default Value:
- Flags:
 - A - GdkPixbuf.Pixbufto display
- Gtk.StatusIcon.props.screen¶
- Name:
- screen
- Type:
- Default Value:
- Flags:
 - The screen where this status icon will be displayed 
- Gtk.StatusIcon.props.size¶
- 
The size of the icon 
- Gtk.StatusIcon.props.stock¶
- Name:
- stock
- Type:
- Default Value:
- Flags:
 - Stock ID for a stock image to display - Deprecated since version 3.10: Use - Gtk.StatusIcon- :icon-nameinstead.
- Gtk.StatusIcon.props.storage_type¶
- Name:
- storage-type
- Type:
- Default Value:
- Flags:
 - The representation being used for image data 
- Gtk.StatusIcon.props.title¶
- 
The title of this tray icon. This should be a short, human-readable, localized string describing the tray icon. It may be used by tools like screen readers to render the tray icon. New in version 2.18. 
- Gtk.StatusIcon.props.tooltip_markup¶
- 
Sets the text of tooltip to be the given string, which is marked up with the Pango text markup language. Also see Gtk.Tooltip.set_markup().This is a convenience property which will take care of getting the tooltip shown if the given string is not None.Gtk.StatusIcon:has-tooltipwill automatically be set toTrueand the default handler for theGtk.StatusIcon::query-tooltipsignal will take care of displaying the tooltip.On some platforms, embedded markup will be ignored. New in version 2.16. 
- Gtk.StatusIcon.props.tooltip_text¶
- 
Sets the text of tooltip to be the given string. Also see Gtk.Tooltip.set_text().This is a convenience property which will take care of getting the tooltip shown if the given string is not None.Gtk.StatusIcon:has-tooltipwill automatically be set toTrueand the default handler for theGtk.StatusIcon::query-tooltipsignal will take care of displaying the tooltip.Note that some platforms have limitations on the length of tooltips that they allow on status icons, e.g. Windows only shows the first 64 characters. New in version 2.16.