XklConfigItem

XklConfigItem —

Synopsis




#define     XKL_MAX_CI_NAME_LENGTH
#define     XKL_MAX_CI_SHORT_DESC_LENGTH
#define     XKL_MAX_CI_DESC_LENGTH
            XklConfigItem;
XklConfigItem* xkl_config_item_new          (void);
void        (*ConfigItemProcessFunc)        (XklConfigRegistry *config,
                                             const XklConfigItem *item,
                                             gpointer data);

Description

Details

XKL_MAX_CI_NAME_LENGTH

#define XKL_MAX_CI_NAME_LENGTH 32


XKL_MAX_CI_SHORT_DESC_LENGTH

#define XKL_MAX_CI_SHORT_DESC_LENGTH 10


XKL_MAX_CI_DESC_LENGTH

#define XKL_MAX_CI_DESC_LENGTH 192


XklConfigItem

typedef struct {
/**
 * The superclass object
 */
		GObject parent;
/**
 * The configuration item name. Corresponds to XML element "name".
 */
		gchar name[XKL_MAX_CI_NAME_LENGTH];

/**
 * The configuration item short description. Corresponds to XML element "shortDescription".
 */
		gchar short_description[XKL_MAX_CI_DESC_LENGTH];

/**
 * The configuration item description. Corresponds to XML element "description".
 */
		gchar description[XKL_MAX_CI_DESC_LENGTH];
} XklConfigItem;


xkl_config_item_new ()

XklConfigItem* xkl_config_item_new          (void);

Create new XklConfigItem

Returns : new instance

ConfigItemProcessFunc ()

void        (*ConfigItemProcessFunc)        (XklConfigRegistry *config,
                                             const XklConfigItem *item,
                                             gpointer data);

Callback type used for enumerating keyboard models, layouts, variants, options

config : the config registry
item : the item from registry
data : anything which can be stored into the pointer