MatePanelApplet: Panel Applet Library Reference Manual

## MatePanelApplet MatePanelApplet |

## Functions

gboolean | (*MatePanelAppletFactoryCallback) ()
GtkWidget * | mate_panel_applet_new ()
MatePanelAppletOrient | mate_panel_applet_get_orient ()
guint | mate_panel_applet_get_size ()
MatePanelAppletBackgroundType | mate_panel_applet_get_background ()
MatePanelAppletFlags | mate_panel_applet_get_flags ()
void | mate_panel_applet_set_flags ()
void | mate_panel_applet_set_size_hints ()
gboolean | mate_panel_applet_get_locked_down ()
void | mate_panel_applet_request_focus ()
void | mate_panel_applet_setup_menu ()
void | mate_panel_applet_setup_menu_from_file ()
int | mate_panel_applet_factory_main ()

## Types and Values

struct | MatePanelApplet
enum | MatePanelAppletOrient
enum | MatePanelAppletBackgroundType
enum | MatePanelAppletFlags

## Includes

    #include <mate-panel-applet.h>

## Description

## Functions

### MatePanelAppletFactoryCallback ()

    gboolean
    (*MatePanelAppletFactoryCallback) (MatePanelApplet *applet,
                                       const gchar *iid,
                                       gpointer user_data);

### mate_panel_applet_new ()

    GtkWidget *
    mate_panel_applet_new (void);

### mate_panel_applet_get_orient ()

    MatePanelAppletOrient
    mate_panel_applet_get_orient (MatePanelApplet *applet);

### mate_panel_applet_get_size ()

    guint
    mate_panel_applet_get_size (MatePanelApplet *applet);

### mate_panel_applet_get_background ()

    MatePanelAppletBackgroundType
    mate_panel_applet_get_background (MatePanelApplet *applet,
                                      GdkRGBA *color,
                                      cairo_pattern_t **pattern);

### mate_panel_applet_get_flags ()

    MatePanelAppletFlags
    mate_panel_applet_get_flags (MatePanelApplet *applet);

### mate_panel_applet_set_flags ()

    void
    mate_panel_applet_set_flags (MatePanelApplet *applet,
                                 MatePanelAppletFlags flags);

### mate_panel_applet_set_size_hints ()

    void
    mate_panel_applet_set_size_hints (MatePanelApplet *applet,
                                      const int *size_hints,
                                      int n_elements,
                                      int base_size);

### mate_panel_applet_get_locked_down ()

    gboolean
    mate_panel_applet_get_locked_down (MatePanelApplet *applet);

### mate_panel_applet_request_focus ()

    void
    mate_panel_applet_request_focus (MatePanelApplet *applet,
                                     guint32 timestamp);

### mate_panel_applet_setup_menu ()

    void
    mate_panel_applet_setup_menu (MatePanelApplet *applet,
                                  const gchar *xml,
                                  GtkActionGroup *action_group);

### mate_panel_applet_setup_menu_from_file ()

    void
    mate_panel_applet_setup_menu_from_file
                                   (MatePanelApplet *applet,
                                    const gchar *filename,
                                    GtkActionGroup *action_group);

### mate_panel_applet_factory_main ()

    int
    mate_panel_applet_factory_main (const gchar *factory_id,
                                    gboolean out_process,
                                    GType applet_type,
                                    MatePanelAppletFactoryCallback callback,
                                    gpointer data);

#### Parameters

factory_id | Factory ID. |
out_process | If the factory is on a separate process or not. |
applet_type | GType of the applet this factory creates. |
callback | Callback to be called when a new applet is to be created. | [scope call]
data | Callback data. | [closure]

#### Returns

0 on success, 1 if there is an error.

## Types and Values

### struct MatePanelApplet

    struct MatePanelApplet {
    	GtkEventBox event_box;

    	MatePanelAppletPrivate* priv;
    };

### enum MatePanelAppletOrient

#### Members

MATE_PANEL_APPLET_ORIENT_UP |  |
MATE_PANEL_APPLET_ORIENT_DOWN |  |
MATE_PANEL_APPLET_ORIENT_LEFT |  |

### enum MatePanelAppletBackgroundType

#### Members

PANEL_NO_BACKGROUND |  |
PANEL_COLOR_BACKGROUND |  |
PANEL_PIXMAP_BACKGROUND |  |

### enum MatePanelAppletFlags

#### Members

MATE_PANEL_APPLET_FLAGS_NONE |  |
MATE_PANEL_APPLET_EXPAND_MAJOR |  |
MATE_PANEL_APPLET_EXPAND_MINOR |  |