gnome-control-center/capplets/keyboard/gnome-keyboard-properties-xkb.h

108 lines
3.6 KiB
C
Raw Normal View History

/* -*- mode: c; style: linux -*- */
/* gnome-keyboard-properties-xkb.h
* Copyright (C) 2003 Udaltsoft
*
* Written by Sergey V. Oudaltsov <svu@users.sf.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
#ifndef __GNOME_KEYBOARD_PROPERTY_XKB_H
#define __GNOME_KEYBOARD_PROPERTY_XKB_H
#include <libxklavier/xklavier_config.h>
#include <gconf/gconf-client.h>
2005-07-26 20:38:25 +00:00
#include "libgswitchit/gswitchit_config.h"
G_BEGIN_DECLS
2005-01-02 02:01:31 +00:00
#define SEL_LAYOUT_TREE_COL_DESCRIPTION 0
#define SEL_LAYOUT_TREE_COL_DEFAULT 1
#define SEL_LAYOUT_TREE_COL_ID 2
#define AVAIL_LAYOUT_TREE_COL_DESCRIPTION 0
#define AVAIL_LAYOUT_TREE_COL_ID 1
#define CWID(s) glade_xml_get_widget (chooserDialog, s)
extern GConfClient *xkbGConfClient;
2005-07-26 20:38:25 +00:00
extern GSwitchItKbdConfig initialConfig;
extern void setup_xkb_tabs (GladeXML * dialog,
GConfChangeSet * changeset);
extern void xkb_layouts_fill_available_tree (GladeXML * dialog);
extern void xkb_options_fill_available_tree (GladeXML * dialog);
extern void xkb_layouts_fill_selected_tree (GladeXML * dialog);
extern void xkb_options_fill_selected_tree (GladeXML * dialog);
extern void xkb_layouts_register_buttons_handlers (GladeXML * dialog);
extern void xkb_options_register_buttons_handlers (GladeXML * dialog);
extern void xkb_layouts_register_gconf_listener (GladeXML * dialog);
extern void xkb_options_register_gconf_listener (GladeXML * dialog);
extern void xkb_layouts_prepare_selected_tree (GladeXML * dialog,
GConfChangeSet * changeset);
extern void xkb_options_prepare_selected_tree (GladeXML * dialog);
2005-07-26 20:38:25 +00:00
extern void xkb_options_load_options (GladeXML * dialog);
extern void clear_xkb_elements_list (GSList * list);
extern char *xci_desc_to_utf8 (XklConfigItem * ci);
extern void sort_tree_content (GtkWidget * treeView);
2004-07-26 23:07:03 +00:00
extern void enable_disable_restoring (GladeXML * dialog);
2004-07-26 23:07:03 +00:00
extern void preview_toggled (GladeXML * dialog, GtkWidget * button);
2004-07-13 23:11:34 +00:00
2004-07-26 23:07:03 +00:00
extern void choose_model (GladeXML * dialog);
extern void xkb_layout_choose (GladeXML * dialog);
extern void xkb_layouts_enable_disable_default (GladeXML * dialog,
gboolean enable);
2005-07-26 20:38:25 +00:00
extern GSList *xkb_layouts_get_selected_list (void);
extern GSList *xkb_options_get_selected_list (void);
2004-08-28 00:02:42 +00:00
#define xkb_layouts_set_selected_list(list) \
2004-08-28 00:02:42 +00:00
gconf_client_set_list (gconf_client_get_default (), \
2004-12-18 04:38:49 +00:00
GSWITCHIT_KBD_CONFIG_KEY_LAYOUTS, \
2004-08-28 00:02:42 +00:00
GCONF_VALUE_STRING, (list), NULL)
#define xkb_options_set_selected_list(list) \
2004-08-28 00:02:42 +00:00
gconf_client_set_list (gconf_client_get_default (), \
2004-12-18 04:38:49 +00:00
GSWITCHIT_KBD_CONFIG_KEY_OPTIONS, \
2004-08-28 00:02:42 +00:00
GCONF_VALUE_STRING, (list), NULL)
2005-01-02 02:01:31 +00:00
extern GtkWidget * xkb_layout_preview_create_widget (GladeXML * chooserDialog);
extern void xkb_layout_preview_update (GladeXML * chooserDialog);
2004-12-31 00:52:49 +00:00
G_END_DECLS
#endif /* __GNOME_KEYBOARD_PROPERTY_XKB_H */