GfGtkTrayIcon

GfGtkTrayIcon — GfGtkTrayIcon Object API

Synopsis




            GfGtkTrayIcon;
GtkOrientation gf_gtk_tray_icon_get_orientation
                                            (const GfGtkTrayIcon *tray_icon);
GtkWidget*  gf_gtk_tray_icon_new            ();
GtkWidget*  gf_gtk_tray_icon_new_from_pixbuf
                                            (GdkPixbuf *pixbuf);
GtkWidget*  gf_gtk_tray_icon_new_from_stock (const gchar *stock_id);
GtkWidget*  gf_gtk_tray_icon_new_from_file  (const gchar *filename);
void        gf_gtk_tray_icon_set_from_pixbuf
                                            (GfGtkTrayIcon *tray_icon,
                                             GdkPixbuf *pixbuf);
void        gf_gtk_tray_icon_set_from_stock (GfGtkTrayIcon *tray_icon,
                                             const gchar *stock_id);
void        gf_gtk_tray_icon_set_from_file  (GfGtkTrayIcon *tray_icon,
                                             const gchar *filename);
void        gf_gtk_tray_icon_position_menu  (GfGtkTrayIcon *tray_icon,
                                             GtkMenu *menu,
                                             gint *x,
                                             gint *y,
                                             gboolean *push_in);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkEventBox
                                 +----GfGtkTrayIcon

Implemented Interfaces

GfGtkTrayIcon implements AtkImplementorIface.

Properties


  "orientation"          GtkOrientation        : Read

Description

GfGtkTrayIcon is a widget that implements a "tray" (notification area) icon. While other implementations of this exist, more often than not they derive from GtkPlug. However, this implementation derives from GtkEventBox and contains a GtkPlug.

Details

GfGtkTrayIcon

typedef struct _GfGtkTrayIcon GfGtkTrayIcon;

GfGtkTrayIcon is an opaque structure and should not be used directly.


gf_gtk_tray_icon_get_orientation ()

GtkOrientation gf_gtk_tray_icon_get_orientation
                                            (const GfGtkTrayIcon *tray_icon);

Gets the orientation of tray_icon.

tray_icon : The GfGtkTrayIcon instance.
Returns : The orientation of tray_icon.

gf_gtk_tray_icon_new ()

GtkWidget*  gf_gtk_tray_icon_new            ();

Creates a new GfGtkTrayIcon.

Returns : A new GfGtkTrayIcon.

gf_gtk_tray_icon_new_from_pixbuf ()

GtkWidget*  gf_gtk_tray_icon_new_from_pixbuf
                                            (GdkPixbuf *pixbuf);

Creates a new GfGtkTrayIcon with pixbuf.

pixbuf : The GdkPixbuf to use as an image.
Returns : A new GfGtkTrayIcon with pixbuf.

gf_gtk_tray_icon_new_from_stock ()

GtkWidget*  gf_gtk_tray_icon_new_from_stock (const gchar *stock_id);

Creates a new GfGtkTrayIcon with stock_id.

stock_id : The GtkStockItem id to use for an image.
Returns : A new GfGtkTrayIcon with stock_id.

gf_gtk_tray_icon_new_from_file ()

GtkWidget*  gf_gtk_tray_icon_new_from_file  (const gchar *filename);

Creates a new GfGtkTrayIcon with an image from filename.

filename : The filename of an image to use.
Returns : A new GfGtkTrayIcon with an image from filename.

gf_gtk_tray_icon_set_from_pixbuf ()

void        gf_gtk_tray_icon_set_from_pixbuf
                                            (GfGtkTrayIcon *tray_icon,
                                             GdkPixbuf *pixbuf);

Sets the image of tray_icon to pixbuf.

tray_icon : The GfGtkTrayIcon instance.
pixbuf : The new GdkPixbuf.

gf_gtk_tray_icon_set_from_stock ()

void        gf_gtk_tray_icon_set_from_stock (GfGtkTrayIcon *tray_icon,
                                             const gchar *stock_id);

Sets the image of tray_icon to the image of stock_id.

tray_icon : The GfGtkTrayIcon instance.
stock_id : The GtkStockItem id to use as an image.

gf_gtk_tray_icon_set_from_file ()

void        gf_gtk_tray_icon_set_from_file  (GfGtkTrayIcon *tray_icon,
                                             const gchar *filename);

Sets the image of tray_icon to the image from filename.

tray_icon : The GfGtkTrayIcon instance.
filename : The filename of an image to set.

gf_gtk_tray_icon_position_menu ()

void        gf_gtk_tray_icon_position_menu  (GfGtkTrayIcon *tray_icon,
                                             GtkMenu *menu,
                                             gint *x,
                                             gint *y,
                                             gboolean *push_in);

Gets the position for menu.

tray_icon : The GfGtkTrayIcon instance.
menu : The GtkMenu instance.
x : The return address for the x position.
y : The return address for the y position.
push_in : The return address for whether or not to "push" the menu in.

Properties

The "orientation" property

  "orientation"          GtkOrientation        : Read

The orientation of the tray.

Default value: GTK_ORIENTATION_HORIZONTAL