Details
applet_widget_set_tooltip ()
void applet_widget_set_tooltip (AppletWidget *applet,
const char *text); |
Set a tooltip on the entire applet that will follow the
tooltip setting from the panel configuration.
applet_widget_set_widget_tooltip ()
void applet_widget_set_widget_tooltip
(AppletWidget *applet,
GtkWidget *widget,
const char *text); |
Set a tooltip on the widget that will follow the tooltip
setting from the panel configuration.
enum GNOME_Panel_OrientType
typedef enum
{
GNOME_Panel_ORIENT_UP,
GNOME_Panel_ORIENT_DOWN,
GNOME_Panel_ORIENT_LEFT,
GNOME_Panel_ORIENT_RIGHT
}
GNOME_Panel_OrientType; |
PanelOrientType
typedef GNOME_Panel_OrientType PanelOrientType; |
applet_widget_get_panel_orient ()
Gets the orientation of the panel this widget is on.
it can be one of ORIENT_UP, ORIENT_DOWN, ORIENT_LEFT and ORIENT_RIGHT.
applet_widget_get_panel_pixel_size ()
int applet_widget_get_panel_pixel_size
(AppletWidget *applet); |
Gets the width of the panel in pixels. This is not the
actual size, but the recomended one. The panel may be streched if the
applets use larger sizes then this.
applet_widget_get_free_space ()
int applet_widget_get_free_space (AppletWidget *applet); |
Gets the free space left that you can use for your applet.
This is the number of pixels around your applet to both sides. If you
strech by this amount you will not disturb any other applets. If you
are on a packed panel 0 will be returned.
applet_widget_send_position ()
void applet_widget_send_position (AppletWidget *applet,
gboolean enable); |
If you need to get a signal everytime this applet changes
position relative to the screen, you need to run this function with TRUE
for enable and bind the change_position signal on the applet. This signal
can be quite CPU/bandwidth consuming so only applets which need it should
use it. By default change_position is not sent.
applet_widget_send_draw ()
void applet_widget_send_draw (AppletWidget *applet,
gboolean enable); |
If you are using rgb background drawing, call this function
with TRUE for enable, and then bind the do_draw signal. Inside that
signal you can get an RGB buffer to draw on with applet_widget_get_rgb_bg.
The do_draw signal will only be sent when the RGB truly changed.
applet_widget_get_rgb_bg ()
void applet_widget_get_rgb_bg (AppletWidget *applet,
guchar **rgb,
int *w,
int *h,
int *rowstride); |
Gets an rgb buffer that you can draw your applet on. Useful
in conjunction with the do_draw signal and the applet_widget_send_draw
method. The rgb should be freed after use with g_free.