summaryrefslogtreecommitdiff
path: root/capplets/keyboard/gnome-keyboard-properties-xkb.h
blob: c63be2e7a129b2beb648eff0e32039761822e8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* -*- 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>

G_BEGIN_DECLS
    extern void setup_xkb_tabs (GladeXML * dialog,
				GConfChangeSet * changeset);

extern void fill_available_layouts_tree (GladeXML * dialog);

extern void fill_available_options_tree (GladeXML * dialog);

extern void fill_selected_layouts_tree (GladeXML * dialog);

extern void fill_selected_options_tree (GladeXML * dialog);

extern void register_layouts_buttons_handlers (GladeXML * dialog);

extern void register_options_buttons_handlers (GladeXML * dialog);

extern void register_layouts_gconf_listener (GladeXML * dialog);

extern void register_options_gconf_listener (GladeXML * dialog);

extern void prepare_selected_layouts_tree (GladeXML * dialog);

extern void prepare_selected_options_tree (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);

extern void enable_disable_restoring (GladeXML * dialog);

extern void preview_toggled (GladeXML * dialog, GtkWidget * button);

extern void choose_model (GladeXML * dialog);

#define get_selected_layouts_list() \
        gconf_client_get_list (gconf_client_get_default (), \
                                      GSWITCHIT_CONFIG_XKB_KEY_LAYOUTS, \
                                      GCONF_VALUE_STRING, NULL)

#define set_selected_layouts_list(list) \
        gconf_client_set_list (gconf_client_get_default (), \
                               GSWITCHIT_CONFIG_XKB_KEY_LAYOUTS, \
                               GCONF_VALUE_STRING, (list), NULL)

#define get_selected_options_list() \
        gconf_client_get_list (gconf_client_get_default (), \
                                      GSWITCHIT_CONFIG_XKB_KEY_OPTIONS, \
                                      GCONF_VALUE_STRING, NULL)

#define set_selected_options_list(list) \
        gconf_client_set_list (gconf_client_get_default (), \
                               GSWITCHIT_CONFIG_XKB_KEY_OPTIONS, \
                               GCONF_VALUE_STRING, (list), NULL)

G_END_DECLS
#endif				/* __GNOME_KEYBOARD_PROPERTY_XKB_H */