diff options
author | Perberos <[email protected]> | 2011-12-01 20:53:10 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-01 20:53:10 -0300 |
commit | 916e2eafe251b44f9d0339282f5d00723899caec (patch) | |
tree | d650ca8c97d834499ca107a2a59a41c86c1fc4a9 /libmatekbd/matekbd-indicator-config.h | |
download | libmatekbd-916e2eafe251b44f9d0339282f5d00723899caec.tar.bz2 libmatekbd-916e2eafe251b44f9d0339282f5d00723899caec.tar.xz |
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libmatekbd/matekbd-indicator-config.h')
-rw-r--r-- | libmatekbd/matekbd-indicator-config.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/libmatekbd/matekbd-indicator-config.h b/libmatekbd/matekbd-indicator-config.h new file mode 100644 index 0000000..d01cadc --- /dev/null +++ b/libmatekbd/matekbd-indicator-config.h @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2006 Sergey V. Udaltsov <[email protected]> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __MATEKBD_INDICATOR_CONFIG_H__ +#define __MATEKBD_INDICATOR_CONFIG_H__ + +#include <gtk/gtk.h> + +#include "libmatekbd/matekbd-keyboard-config.h" + +/* + * Indicator configuration + */ +typedef struct _MatekbdIndicatorConfig { + int secondary_groups_mask; + gboolean show_flags; + + gchar *font_family; + int font_size; + gchar *foreground_color; + gchar *background_color; + + GSList *enabled_plugins; + + /* private, transient */ + MateConfClient *conf_client; + GSList *image_filenames; + GtkIconTheme *icon_theme; + int config_listener_id; + XklEngine *engine; +} MatekbdIndicatorConfig; + +/** + * MatekbdIndicatorConfig functions - + * some of them require MatekbdKeyboardConfig as well - + * for loading approptiate images + */ +extern void matekbd_indicator_config_init (MatekbdIndicatorConfig * + applet_config, + MateConfClient * conf_client, + XklEngine * engine); +extern void matekbd_indicator_config_term (MatekbdIndicatorConfig * + applet_config); + +extern void matekbd_indicator_config_load_from_mateconf (MatekbdIndicatorConfig + * applet_config); +extern void matekbd_indicator_config_save_to_mateconf (MatekbdIndicatorConfig * + applet_config); + +extern void matekbd_indicator_config_refresh_style (MatekbdIndicatorConfig * + applet_config); + +extern gchar + * matekbd_indicator_config_get_images_file (MatekbdIndicatorConfig * + applet_config, + MatekbdKeyboardConfig * + kbd_config, int group); + +extern void matekbd_indicator_config_load_image_filenames (MatekbdIndicatorConfig + * applet_config, + MatekbdKeyboardConfig + * kbd_config); +extern void matekbd_indicator_config_free_image_filenames (MatekbdIndicatorConfig + * applet_config); + +/* Should be updated on Indicator/MateConf configuration change */ +extern void matekbd_indicator_config_activate (MatekbdIndicatorConfig * + applet_config); + +extern void matekbd_indicator_config_start_listen (MatekbdIndicatorConfig * + applet_config, + MateConfClientNotifyFunc + func, gpointer user_data); + +extern void matekbd_indicator_config_stop_listen (MatekbdIndicatorConfig * + applet_config); + +#endif |