![]() |
![]() |
![]() |
libawn Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
AwnAppletSimplePrivate; AwnAppletSimple; GtkWidget * awn_applet_simple_new (const gchar *uid, gint orient, gint height); void awn_applet_simple_set_icon (AwnAppletSimple *simple, GdkPixbuf *pixbuf); void awn_applet_simple_set_temp_icon (AwnAppletSimple *simple, GdkPixbuf *pixbuf); AwnEffects * awn_applet_simple_get_effects (AwnAppletSimple *simple);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkEventBox +----AwnApplet +----AwnAppletSimple
GtkWidget * awn_applet_simple_new (const gchar *uid, gint orient, gint height);
Creates a new AwnAppletSimple object. This applet will have awn-effects
effects applied to its icon automatically if awn_applet_simple_set_icon()
or
awn_applet_simple_set_temp_icon()
are used to specify the applet icon.
|
The unique identifier of the instance of the applet on the dock. |
|
The orientation of the applet - see AwnOrientation. |
|
The height of the applet. |
Returns : |
a new instance of an applet. |
void awn_applet_simple_set_icon (AwnAppletSimple *simple, GdkPixbuf *pixbuf);
Sets the applet icon to the pixbuf provided as an argument. A private copy
of the pixbuf argument is made by awn_applet_simple_set_icon()
and the
original argument is left unchanged. The caller retains ownership of pixbuf
and is required to unref it when it is no longer required.
|
The applet whose icon is being set. |
|
The pixbuf image to use as the icon. |
void awn_applet_simple_set_temp_icon (AwnAppletSimple *simple, GdkPixbuf *pixbuf);
A convenience function that sets the applet icon to the pixbuf provided as an
argument. A private copy of the pixbuf argument is made by the function, and
the argument is unreferenced. The caller should not reference pixbuf after
calling this function. If the pixbuf needs to be retained, then
awn_applet_simple_set_icon()
should be used.
|
The applet whose icon is being set. |
|
The pixbuf image to use as the icon. |
AwnEffects * awn_applet_simple_get_effects (AwnAppletSimple *simple);
Retrieves the AwnEffects object associated with the applet.
|
The applet whose properties are being queried. |
Returns : |
a pointer to an AwnEffects object associated with the applet. The caller does not own this object. |