| Guifications Gtk+ Library Reference Manual |
|---|
GfGtkTrayIconGfGtkTrayIcon — GfGtkTrayIcon Object API |
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);
GObject
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkEventBox
+----GfGtkTrayIcon
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.
typedef struct _GfGtkTrayIcon GfGtkTrayIcon;
GfGtkTrayIcon is an opaque structure and should not be used directly.
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.
|
GtkWidget* gf_gtk_tray_icon_new ();
Creates a new GfGtkTrayIcon.
| Returns : | A new GfGtkTrayIcon. |
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.
|
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.
|
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.
|
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. |
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. |
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. |
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. |
| << Menu Utilities |