Index

Package: Status_Icon

Description

package Gtk.Status_Icon is

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.Status_Icon.Gtk_Status_Icon object 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. Critical information should not solely be displayed in a Gtk.Status_Icon.Gtk_Status_Icon, since it may not be visible (e.g. when the user doesn't have a notification area on his panel). This can be checked with Gtk.Status_Icon.Is_Embedded.

On X11, the implementation follows the freedesktop.org "System Tray" <ulink url="http://www.freedesktop.org/wiki/Specifications/systemtray-spec">specification</ulink>.

Implementations of the "tray" side of this specification can be found e.g. in the GNOME 2 and KDE panel applications.

Note that a GtkStatusIcon is *not* a widget, but just a Glib.Object.GObject. Making it a widget would be impractical, since the system tray on Win32 doesn't allow to embed arbitrary widgets.

Classes

Gtk_Status_Icon_Record

type Gtk_Status_Icon_Record is new GObject_Record with null record;

Ancestors:

Primitive operations:

Get_Has_Tooltip
Get_Icon_Name
Get_Storage_Type
Get_Tooltip_Markup
Get_Tooltip_Text
Get_X11_Window_Id
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
On_Button_Press_Event
On_Button_Press_Event
On_Button_Release_Event
On_Button_Release_Event
On_Popup_Menu
On_Popup_Menu
On_Query_Tooltip
On_Query_Tooltip
On_Scroll_Event
On_Scroll_Event
On_Size_Changed
On_Size_Changed
Set_From_File
Set_From_Gicon
Set_From_Icon_Name
Set_From_Pixbuf
Set_From_Stock
Set_Has_Tooltip
Set_Tooltip_Markup
Set_Tooltip_Text

Types

Gtk_Status_Icon

type Gtk_Status_Icon is access all Gtk_Status_Icon_Record'Class;

Cb_Gtk_Status_Icon_Void

type Cb_Gtk_Status_Icon_Void is not null access procedure
     (Self : access Gtk_Status_Icon_Record'Class);

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
     (Self : access Glib.Object.GObject_Record'Class);

Cb_Gtk_Status_Icon_Gdk_Event_Button_Boolean

type Cb_Gtk_Status_Icon_Gdk_Event_Button_Boolean is not null access function
     (Self  : access Gtk_Status_Icon_Record'Class;
      Event : Gdk.Event.Gdk_Event_Button) return Boolean;

Cb_GObject_Gdk_Event_Button_Boolean

type Cb_GObject_Gdk_Event_Button_Boolean is not null access function
     (Self  : access Glib.Object.GObject_Record'Class;
      Event : Gdk.Event.Gdk_Event_Button) return Boolean;

Cb_Gtk_Status_Icon_Guint_Guint_Void

type Cb_Gtk_Status_Icon_Guint_Guint_Void is not null access procedure
     (Self          : access Gtk_Status_Icon_Record'Class;
      Button        : Guint;
      Activate_Time : Guint);

Cb_GObject_Guint_Guint_Void

type Cb_GObject_Guint_Guint_Void is not null access procedure
     (Self          : access Glib.Object.GObject_Record'Class;
      Button        : Guint;
      Activate_Time : Guint);

Cb_Gtk_Status_Icon_Gint_Gint_Boolean_Gtk_Tooltip_Boolean

type Cb_Gtk_Status_Icon_Gint_Gint_Boolean_Gtk_Tooltip_Boolean is not null access function
     (Self          : access Gtk_Status_Icon_Record'Class;
      X             : Gint;
      Y             : Gint;
      Keyboard_Mode : Boolean;
      Tooltip       : not null access Gtk.Tooltip.Gtk_Tooltip_Record'Class)
   return Boolean;

Cb_GObject_Gint_Gint_Boolean_Gtk_Tooltip_Boolean

type Cb_GObject_Gint_Gint_Boolean_Gtk_Tooltip_Boolean is not null access function
     (Self          : access Glib.Object.GObject_Record'Class;
      X             : Gint;
      Y             : Gint;
      Keyboard_Mode : Boolean;
      Tooltip       : not null access Gtk.Tooltip.Gtk_Tooltip_Record'Class)
   return Boolean;

Cb_Gtk_Status_Icon_Gdk_Event_Scroll_Boolean

type Cb_Gtk_Status_Icon_Gdk_Event_Scroll_Boolean is not null access function
     (Self  : access Gtk_Status_Icon_Record'Class;
      Event : Gdk.Event.Gdk_Event_Scroll) return Boolean;

Cb_GObject_Gdk_Event_Scroll_Boolean

type Cb_GObject_Gdk_Event_Scroll_Boolean is not null access function
     (Self  : access Glib.Object.GObject_Record'Class;
      Event : Gdk.Event.Gdk_Event_Scroll) return Boolean;

Cb_Gtk_Status_Icon_Gint_Boolean

type Cb_Gtk_Status_Icon_Gint_Boolean is not null access function
     (Self : access Gtk_Status_Icon_Record'Class;
      Size : Gint) return Boolean;

Cb_GObject_Gint_Boolean

type Cb_GObject_Gint_Boolean is not null access function
     (Self : access Glib.Object.GObject_Record'Class;
      Size : Gint) return Boolean;

Constants & Global variables

Embedded_Property (Glib.Properties.Property_Boolean)

Embedded_Property : constant Glib.Properties.Property_Boolean;
True if the statusicon is embedded in a notification area.

File_Property (Glib.Properties.Property_String)

File_Property : constant Glib.Properties.Property_String;
Flags: write

G_Icon_Property (Glib.Properties.Property_Boxed)

G_Icon_Property : constant Glib.Properties.Property_Boxed;
Type: Glib.G_Icon.G_Icon The Glib.G_Icon.G_Icon displayed in the Gtk.Status_Icon.Gtk_Status_Icon. For themed icons, the image will be updated automatically if the theme changes.

Has_Tooltip_Property (Glib.Properties.Property_Boolean)

Has_Tooltip_Property : constant Glib.Properties.Property_Boolean;
Enables or disables the emission of Gtk.Status_Icon.Gtk_Status_Icon::query-tooltip on Status_Icon. A value of True indicates that Status_Icon can have a tooltip, in this case the status icon will be queried using Gtk.Status_Icon.Gtk_Status_Icon::query-tooltip to determine whether it will provide a tooltip or not. Note that setting this property to True for 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 False again. Whether this property is respected is platform dependent. For plain text tooltips, use Gtk.Status_Icon.Gtk_Status_Icon:tooltip-text in preference.

Orientation_Property (Gtk.Enums.Property_Gtk_Orientation)

Orientation_Property : constant Gtk.Enums.Property_Gtk_Orientation;
The orientation of the tray in which the statusicon is embedded.

Title_Property (Glib.Properties.Property_String)

Title_Property : constant Glib.Properties.Property_String;
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.

Tooltip_Markup_Property (Glib.Properties.Property_String)

Tooltip_Markup_Property : constant Glib.Properties.Property_String;
Sets the text of tooltip to be the given string, which is marked up with the <link linkend="PangoMarkupFormat">Pango text markup language</link>. 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 null. Gtk.Status_Icon.Gtk_Status_Icon:has-tooltip will automatically be set to True and the default handler for the Gtk.Status_Icon.Gtk_Status_Icon::query-tooltip signal will take care of displaying the tooltip. On some platforms, embedded markup will be ignored.

Tooltip_Text_Property (Glib.Properties.Property_String)

Tooltip_Text_Property : constant Glib.Properties.Property_String;
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 null. Gtk.Status_Icon.Gtk_Status_Icon:has-tooltip will automatically be set to True and the default handler for the Gtk.Status_Icon.Gtk_Status_Icon::query-tooltip signal 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.

Signal_Activate (Glib.Signal_Name)

Signal_Activate : constant Glib.Signal_Name := "activate";

Signal_Button_Press_Event (Glib.Signal_Name)

Signal_Button_Press_Event : constant Glib.Signal_Name := "button-press-event";

Signal_Button_Release_Event (Glib.Signal_Name)

Signal_Button_Release_Event : constant Glib.Signal_Name := "button-release-event";

Signal_Popup_Menu (Glib.Signal_Name)

Signal_Popup_Menu : constant Glib.Signal_Name := "popup-menu";

Signal_Query_Tooltip (Glib.Signal_Name)

Signal_Query_Tooltip : constant Glib.Signal_Name := "query-tooltip";

Signal_Scroll_Event (Glib.Signal_Name)

Signal_Scroll_Event : constant Glib.Signal_Name := "scroll-event";

Signal_Size_Changed (Glib.Signal_Name)

Signal_Size_Changed : constant Glib.Signal_Name := "size-changed";

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Status_Icon: out Gtk_Status_Icon);

Initialize

procedure Initialize 
(Status_Icon: not null access Gtk_Status_Icon_Record'Class);
Creates an empty status icon object. Since: gtk+ 2.10

Gtk_Status_Icon_New

function Gtk_Status_Icon_New return Gtk_Status_Icon;
Creates an empty status icon object. Since: gtk+ 2.10

Gtk_New_From_File

procedure Gtk_New_From_File 
(Status_Icon: out Gtk_Status_Icon;
Filename: UTF8_String);

Initialize_From_File

procedure Initialize_From_File 
(Status_Icon: not null access Gtk_Status_Icon_Record'Class;
Filename: UTF8_String);
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. Since: gtk+ 2.10 "filename": a filename

Gtk_Status_Icon_New_From_File

function Gtk_Status_Icon_New_From_File 
(Filename: UTF8_String) return Gtk_Status_Icon;
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. Since: gtk+ 2.10 "filename": a filename

Gtk_New_From_Gicon

procedure Gtk_New_From_Gicon 
(Status_Icon: out Gtk_Status_Icon;
Icon: Glib.G_Icon.G_Icon);

Initialize_From_Gicon

procedure Initialize_From_Gicon 
(Status_Icon: not null access Gtk_Status_Icon_Record'Class;
Icon: Glib.G_Icon.G_Icon);
Creates a status icon displaying a Glib.G_Icon.G_Icon. If the icon is a themed icon, it will be updated when the theme changes. Since: gtk+ 2.14 "icon": a Glib.G_Icon.G_Icon

Gtk_Status_Icon_New_From_Gicon

function Gtk_Status_Icon_New_From_Gicon 
(Icon: Glib.G_Icon.G_Icon) return Gtk_Status_Icon;
Creates a status icon displaying a Glib.G_Icon.G_Icon. If the icon is a themed icon, it will be updated when the theme changes. Since: gtk+ 2.14 "icon": a Glib.G_Icon.G_Icon

Gtk_New_From_Icon_Name

procedure Gtk_New_From_Icon_Name 
(Status_Icon: out Gtk_Status_Icon;
Icon_Name: UTF8_String);

Initialize_From_Icon_Name

procedure Initialize_From_Icon_Name 
(Status_Icon: not null access Gtk_Status_Icon_Record'Class;
Icon_Name: UTF8_String);
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. Since: gtk+ 2.10 "icon_name": an icon name

Gtk_Status_Icon_New_From_Icon_Name

function Gtk_Status_Icon_New_From_Icon_Name 
(Icon_Name: UTF8_String) return Gtk_Status_Icon;
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. Since: gtk+ 2.10 "icon_name": an icon name

Gtk_New_From_Pixbuf

procedure Gtk_New_From_Pixbuf 
(Status_Icon: out Gtk_Status_Icon;
Pixbuf: not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class);

Initialize_From_Pixbuf

procedure Initialize_From_Pixbuf 
(Status_Icon: not null access Gtk_Status_Icon_Record'Class;
Pixbuf: not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class);
Creates a status icon displaying Pixbuf. The image will be scaled down to fit in the available space in the notification area, if necessary. Since: gtk+ 2.10 "pixbuf": a Gdk.Pixbuf.Gdk_Pixbuf

Gtk_Status_Icon_New_From_Pixbuf

function Gtk_Status_Icon_New_From_Pixbuf 
(Pixbuf: not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class) return Gtk_Status_Icon;
Creates a status icon displaying Pixbuf. The image will be scaled down to fit in the available space in the notification area, if necessary. Since: gtk+ 2.10 "pixbuf": a Gdk.Pixbuf.Gdk_Pixbuf

Gtk_New_From_Stock

procedure Gtk_New_From_Stock 
(Status_Icon: out Gtk_Status_Icon;
Stock_Id: UTF8_String);

Initialize_From_Stock

procedure Initialize_From_Stock 
(Status_Icon: not null access Gtk_Status_Icon_Record'Class;
Stock_Id: UTF8_String);
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.Icon_Factory.Add_Default and Gtk.Icon_Factory.Add. Since: gtk+ 2.10 "stock_id": a stock icon id

Gtk_Status_Icon_New_From_Stock

function Gtk_Status_Icon_New_From_Stock 
(Stock_Id: UTF8_String) return Gtk_Status_Icon;
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.Icon_Factory.Add_Default and Gtk.Icon_Factory.Add. Since: gtk+ 2.10 "stock_id": a stock icon id

Get_Type

function Get_Type return Glib.GType;

Get_Gicon

function Get_Gicon 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Glib.G_Icon.G_Icon;
Retrieves the Glib.G_Icon.G_Icon being displayed by the Gtk.Status_Icon.Gtk_Status_Icon. The storage type of the status icon must be Gtk.Image.Image_Empty or Gtk.Image.Image_Gicon (see Gtk.Status_Icon.Get_Storage_Type). The caller of this function does not own a reference to the returned Glib.G_Icon.G_Icon. If this function fails, Icon is left unchanged; Since: gtk+ 2.14

Set_From_Gicon

procedure Set_From_Gicon 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Icon: Glib.G_Icon.G_Icon);
Makes Status_Icon display the Glib.G_Icon.G_Icon. See Gtk.Status_Icon.Gtk_New_From_Gicon for details. Since: gtk+ 2.14 "icon": a GIcon

Get_Has_Tooltip

function Get_Has_Tooltip 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Boolean;
Returns the current value of the has-tooltip property. See Gtk.Status_Icon.Gtk_Status_Icon:has-tooltip for more information. Since: gtk+ 2.16

Set_Has_Tooltip

procedure Set_Has_Tooltip 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Has_Tooltip: Boolean);
Sets the has-tooltip property on Status_Icon to Has_Tooltip. See Gtk.Status_Icon.Gtk_Status_Icon:has-tooltip for more information. Since: gtk+ 2.16 "has_tooltip": whether or not Status_Icon has a tooltip

Get_Icon_Name

function Get_Icon_Name 
(Status_Icon: not null access Gtk_Status_Icon_Record) return UTF8_String;
Gets the name of the icon being displayed by the Gtk.Status_Icon.Gtk_Status_Icon. The storage type of the status icon must be Gtk.Image.Image_Empty or Gtk.Image.Image_Icon_Name (see Gtk.Status_Icon.Get_Storage_Type). The returned string is owned by the Gtk.Status_Icon.Gtk_Status_Icon and should not be freed or modified. Since: gtk+ 2.10

Set_From_Icon_Name

procedure Set_From_Icon_Name 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Icon_Name: UTF8_String);
Makes Status_Icon display the icon named Icon_Name from the current icon theme. See Gtk.Status_Icon.Gtk_New_From_Icon_Name for details. Since: gtk+ 2.10 "icon_name": an icon name

Get_Pixbuf

function Get_Pixbuf 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Gdk.Pixbuf.Gdk_Pixbuf;
Gets the Gdk.Pixbuf.Gdk_Pixbuf being displayed by the Gtk.Status_Icon.Gtk_Status_Icon. The storage type of the status icon must be Gtk.Image.Image_Empty or Gtk.Image.Image_Pixbuf (see Gtk.Status_Icon.Get_Storage_Type). The caller of this function does not own a reference to the returned pixbuf. Since: gtk+ 2.10

Set_From_Pixbuf

procedure Set_From_Pixbuf 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Pixbuf: access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class);
Makes Status_Icon display Pixbuf. See Gtk.Status_Icon.Gtk_New_From_Pixbuf for details. Since: gtk+ 2.10 "pixbuf": a Gdk.Pixbuf.Gdk_Pixbuf or null

Get_Screen

function Get_Screen 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Gdk.Screen.Gdk_Screen;
Returns the Gdk.Screen.Gdk_Screen associated with Status_Icon. Since: gtk+ 2.12

Set_Screen

procedure Set_Screen 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Screen: not null access Gdk.Screen.Gdk_Screen_Record'Class);
Sets the Gdk.Screen.Gdk_Screen where Status_Icon is displayed; if the icon is already mapped, it will be unmapped, and then remapped on the new screen. Since: gtk+ 2.12 "screen": a Gdk.Screen.Gdk_Screen

Get_Size

function Get_Size 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Gint;
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.Status_Icon.Is_Embedded). Since: gtk+ 2.10

Get_Stock

function Get_Stock 
(Status_Icon: not null access Gtk_Status_Icon_Record) return UTF8_String;
Gets the id of the stock icon being displayed by the Gtk.Status_Icon.Gtk_Status_Icon. The storage type of the status icon must be Gtk.Image.Image_Empty or Gtk.Image.Image_Stock (see Gtk.Status_Icon.Get_Storage_Type). The returned string is owned by the Gtk.Status_Icon.Gtk_Status_Icon and should not be freed or modified. Since: gtk+ 2.10

Set_From_Stock

procedure Set_From_Stock 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Stock_Id: UTF8_String);
Makes Status_Icon display the stock icon with the id Stock_Id. See Gtk.Status_Icon.Gtk_New_From_Stock for details. Since: gtk+ 2.10 "stock_id": a stock icon id

Get_Storage_Type

function Get_Storage_Type 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Gtk.Image.Gtk_Image_Type;
Gets the type of representation being used by the Gtk.Status_Icon.Gtk_Status_Icon to store image data. If the Gtk.Status_Icon.Gtk_Status_Icon has no image data, the return value will be Gtk.Image.Image_Empty. Since: gtk+ 2.10

Get_Title

function Get_Title 
(Status_Icon: not null access Gtk_Status_Icon_Record) return UTF8_String;
Gets the title of this tray icon. See Gtk.Status_Icon.Set_Title. Since: gtk+ 2.18

Set_Title

procedure Set_Title 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Title: UTF8_String);
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. Since: gtk+ 2.18 "title": the title

Get_Tooltip_Markup

function Get_Tooltip_Markup 
(Status_Icon: not null access Gtk_Status_Icon_Record) return UTF8_String;
Gets the contents of the tooltip for Status_Icon. Since: gtk+ 2.16

Set_Tooltip_Markup

procedure Set_Tooltip_Markup 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Markup: UTF8_String := "");
Sets Markup as the contents of the tooltip, which is marked up with the <link linkend="PangoMarkupFormat">Pango text markup language</link>. This function will take care of setting Gtk.Status_Icon.Gtk_Status_Icon:has-tooltip to True and of the default handler for the Gtk.Status_Icon.Gtk_Status_Icon::query-tooltip signal. See also the Gtk.Status_Icon.Gtk_Status_Icon:tooltip-markup property and Gtk.Tooltip.Set_Markup. Since: gtk+ 2.16 "markup": the contents of the tooltip for Status_Icon, or null

Get_Tooltip_Text

function Get_Tooltip_Text 
(Status_Icon: not null access Gtk_Status_Icon_Record) return UTF8_String;
Gets the contents of the tooltip for Status_Icon. Since: gtk+ 2.16

Set_Tooltip_Text

procedure Set_Tooltip_Text 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Text: UTF8_String);
Sets Text as the contents of the tooltip. This function will take care of setting Gtk.Status_Icon.Gtk_Status_Icon:has-tooltip to True and of the default handler for the Gtk.Status_Icon.Gtk_Status_Icon::query-tooltip signal. See also the Gtk.Status_Icon.Gtk_Status_Icon:tooltip-text property and Gtk.Tooltip.Set_Text. Since: gtk+ 2.16 "text": the contents of the tooltip for Status_Icon

Get_Visible

function Get_Visible 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Boolean;
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.Status_Icon.Is_Embedded. Since: gtk+ 2.10

Set_Visible

procedure Set_Visible 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Visible: Boolean);
Shows or hides a status icon. Since: gtk+ 2.10 "visible": True to show the status icon, False to hide it

Get_X11_Window_Id

function Get_X11_Window_Id 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Guint32;
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.Status_Icon.Position_Menu. Since: gtk+ 2.14

Is_Embedded

function Is_Embedded 
(Status_Icon: not null access Gtk_Status_Icon_Record) return Boolean;
Returns whether the status icon is embedded in a notification area. Since: gtk+ 2.10

Set_From_File

procedure Set_From_File 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Filename: UTF8_String);
Makes Status_Icon display the file Filename. See Gtk.Status_Icon.Gtk_New_From_File for details. Since: gtk+ 2.10 "filename": a filename

Set_Name

procedure Set_Name 
(Status_Icon: not null access Gtk_Status_Icon_Record;
Name: UTF8_String);
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. Since: gtk+ 2.20 "name": the name

Position_Menu

procedure Position_Menu 
(Menu: not null access Gtk.Menu.Gtk_Menu_Record'Class;
X: in out Gint;
Y: in out Gint;
Push_In: out Boolean;
Icon: Glib.Object.GObject);
Menu positioning function to use with Gtk.Menu.Popup to position Menu aligned to the status icon User_Data. Since: gtk+ 2.10 "menu": the Gtk.Menu.Gtk_Menu "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). "Icon": the status icon to position the menu on

On_Activate

procedure On_Activate 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Void;
After: Boolean := False);

On_Activate

procedure On_Activate 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Gets emitted when the user activates the status icon. If and how status icons can activated is platform-dependent. Unlike most G_SIGNAL_ACTION signals, this signal is meant to be used by applications and should be wrapped by language bindings.

On_Button_Press_Event

procedure On_Button_Press_Event 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Gdk_Event_Button_Boolean;
After: Boolean := False);

On_Button_Press_Event

procedure On_Button_Press_Event 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Gdk_Event_Button_Boolean;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed. Whether this event is emitted is platform-dependent. Use the ::activate and ::popup-menu signals in preference. Callback parameters: -- "event": the Gdk.Event.Gdk_Event_Button which triggered this signal -- Returns True to stop other handlers from being invoked for the event. False to propagate the event further.

On_Button_Release_Event

procedure On_Button_Release_Event 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Gdk_Event_Button_Boolean;
After: Boolean := False);

On_Button_Release_Event

procedure On_Button_Release_Event 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Gdk_Event_Button_Boolean;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
The ::button-release-event signal will be emitted when a button (typically from a mouse) is released. Whether this event is emitted is platform-dependent. Use the ::activate and ::popup-menu signals in preference. Callback parameters: -- "event": the Gdk.Event.Gdk_Event_Button which triggered this signal -- Returns True to stop other handlers from being invoked for the event. False to propagate the event further.

On_Popup_Menu

procedure On_Popup_Menu 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Guint_Guint_Void;
After: Boolean := False);

On_Popup_Menu

procedure On_Popup_Menu 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Guint_Guint_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
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 G_SIGNAL_ACTION signals, this signal is meant to be used by applications and should be wrapped by language bindings. Callback parameters: -- "button": the button that was pressed, or 0 if the signal is not -- emitted in response to a button press event -- "activate_time": the timestamp of the event that triggered the signal -- emission

On_Query_Tooltip

procedure On_Query_Tooltip 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Gint_Gint_Boolean_Gtk_Tooltip_Boolean;
After: Boolean := False);

On_Query_Tooltip

procedure On_Query_Tooltip 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Gint_Gint_Boolean_Gtk_Tooltip_Boolean;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Emitted when the Gtk.Settings.Gtk_Settings:gtk-tooltip-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 True should be returned, False otherwise. 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.Status_Icon.Gtk_Status_Icon:tooltip-text in preference. Callback parameters: -- "x": the x coordinate of the cursor position where the request has been -- emitted, relative to Status_Icon -- "y": the y coordinate of the cursor position where the request has been -- emitted, relative to Status_Icon -- "keyboard_mode": True if the tooltip was trigged using the keyboard -- "tooltip": a Gtk.Tooltip.Gtk_Tooltip -- Returns True if Tooltip should be shown right now, False otherwise.

On_Scroll_Event

procedure On_Scroll_Event 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Gdk_Event_Scroll_Boolean;
After: Boolean := False);

On_Scroll_Event

procedure On_Scroll_Event 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Gdk_Event_Scroll_Boolean;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
The ::scroll-event signal 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. Callback parameters: -- "event": the Gdk.Event.Gdk_Event_Scroll which triggered this signal -- Returns True to stop other handlers from being invoked for the event. False to propagate the event further.

On_Size_Changed

procedure On_Size_Changed 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_Gtk_Status_Icon_Gint_Boolean;
After: Boolean := False);

On_Size_Changed

procedure On_Size_Changed 
(Self: not null access Gtk_Status_Icon_Record;
Call: Cb_GObject_Gint_Boolean;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Gets emitted when the size available for the image changes, e.g. because the notification area got resized. Callback parameters: -- "size": the new size -- Returns True if the icon was updated for the new size. Otherwise, GTK+ will scale the icon as necessary.