Note that some platforms do not allow GTK+ to provide Obtains information about the location of the status icon ( bool, screen: Gdk.Screen, area: Gdk.Rectangle, orientation: Gtk.Orientation) Horizontal, a panel at the left or right is vertical. A panel at the top or bottom of the screen is Orientation of the panel in which the status icon is embedded, The screen, or None if the information is not needed area classmethod new ( ) ¶ Returnsĭeprecated since version 3.14: Use Gio.Notification and Gtk.Application to provide status notifications notifications do not have menus, but can have buttons, and actions associated with each button get_geometry ( ) ¶ Returns Platforms and environments, and should be the preferred mechanism to notify The Gio.Notification API which works well with Gtk.Application on multiple Notifications or more modern platform-specific APIs instead. Gtk.StatusIcon has been deprecated in 3.14. Widget would be impractical, since the system tray on Windows doesn’t allow Note that a Gtk.StatusIcon is not a widget, but just a GObject.Object. in the GNOME 2 and KDE panel applications. Implementations of the “tray” side of this specification canīe found e.g. You should always check that a status icon has been embedded intoĪ notification area by using _embedded(), and gracefully Icons as the only way to convey critical information regarding your application,Īs the notification area may not exist on the user’s environment, or may haveīeen removed. Of a notification area being available to the user you should not use status It is very important to notice that status icons depend on the existence The icon can have a tooltip, and the user can interact with it byĪctivating it or popping up a context menu. Icon in the notification area is less annoying than popping up a dialog.Ī Gtk.StatusIcon object can be used to display an icon in a “system tray”. ![]() For example, a system tray icon mightĪppear to tell the user that they have new mail, or have an incoming instant The “system tray” or notification area is normally used for transient icons Gets emitted when the size available for the image changes, e.g.Ĭlass Details ¶ class Gtk. The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Gets emitted when the user brings up the context menu of the status icon.Įmitted when the hover timeout has expired with the cursor hovering above status_icon or emitted when status_icon got focus in keyboard mode. The ::button-release-event signal will be emitted when a button (typically from a mouse) is released. The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed. Gets emitted when the user activates the status icon. ![]() The contents of the tooltip for this widget The contents of the tooltip for this tray icon The representation being used for image data Stock ID for a stock image to display deprecated The screen where this status icon will be displayed G GObject.Object GObject.Object Gtk.StatusIcon Gtk.StatusIcon GObject.Object->Gtk.StatusIcon Subclassesĭo_query_tooltip (x, y, keyboard_mode, tooltip)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |