~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to capplets/keyboard/gnome-keyboard-properties-xkb.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c; style: linux -*- */
2
 
 
3
 
/* gnome-keyboard-properties-xkb.h
4
 
 * Copyright (C) 2003-2007 Sergey V Udaltsov
5
 
 *
6
 
 * Written by Sergey V. Udaltsov <svu@gnome.org>
7
 
 *
8
 
 * This program is free software; you can redistribute it and/or modify
9
 
 * it under the terms of the GNU General Public License as published by
10
 
 * the Free Software Foundation; either version 2, or (at your option)
11
 
 * any later version.
12
 
 *
13
 
 * This program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU General Public License
19
 
 * along with this program; if not, write to the Free Software
20
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21
 
 * 02111-1307, USA.
22
 
 */
23
 
 
24
 
#ifndef __GNOME_KEYBOARD_PROPERTY_XKB_H
25
 
#define __GNOME_KEYBOARD_PROPERTY_XKB_H
26
 
 
27
 
#include <gconf/gconf-client.h>
28
 
 
29
 
#include "libgnomekbd/gkbd-keyboard-config.h"
30
 
 
31
 
G_BEGIN_DECLS
32
 
#define CWID(s) GTK_WIDGET (gtk_builder_get_object (chooser_dialog, s))
33
 
extern XklEngine *engine;
34
 
extern XklConfigRegistry *config_registry;
35
 
extern GConfClient *xkb_gconf_client;
36
 
extern GkbdKeyboardConfig initial_config;
37
 
 
38
 
extern void setup_xkb_tabs (GtkBuilder * dialog,
39
 
                            GConfChangeSet * changeset);
40
 
 
41
 
extern void xkb_layouts_fill_selected_tree (GtkBuilder * dialog);
42
 
 
43
 
extern void xkb_layouts_register_buttons_handlers (GtkBuilder * dialog);
44
 
 
45
 
extern void xkb_layouts_register_gconf_listener (GtkBuilder * dialog);
46
 
 
47
 
extern void xkb_options_register_gconf_listener (GtkBuilder * dialog);
48
 
 
49
 
extern void xkb_layouts_prepare_selected_tree (GtkBuilder * dialog,
50
 
                                               GConfChangeSet * changeset);
51
 
 
52
 
extern void xkb_options_load_options (GtkBuilder * dialog);
53
 
 
54
 
extern void xkb_options_popup_dialog (GtkBuilder * dialog);
55
 
 
56
 
extern void clear_xkb_elements_list (GSList * list);
57
 
 
58
 
extern char *xci_desc_to_utf8 (XklConfigItem * ci);
59
 
 
60
 
extern gchar *xkb_layout_description_utf8 (const gchar * visible);
61
 
 
62
 
extern void enable_disable_restoring (GtkBuilder * dialog);
63
 
 
64
 
extern void preview_toggled (GtkBuilder * dialog, GtkWidget * button);
65
 
 
66
 
extern void choose_model (GtkBuilder * dialog);
67
 
 
68
 
extern void xkb_layout_choose (GtkBuilder * dialog);
69
 
 
70
 
extern GSList *xkb_layouts_get_selected_list (void);
71
 
 
72
 
extern GSList *xkb_options_get_selected_list (void);
73
 
 
74
 
#define xkb_layouts_set_selected_list(list) \
75
 
        gconf_client_set_list (gconf_client_get_default (), \
76
 
                               GKBD_KEYBOARD_CONFIG_KEY_LAYOUTS, \
77
 
                               GCONF_VALUE_STRING, (list), NULL)
78
 
 
79
 
#define xkb_options_set_selected_list(list) \
80
 
        gconf_client_set_list (gconf_client_get_default (), \
81
 
                               GKBD_KEYBOARD_CONFIG_KEY_OPTIONS, \
82
 
                               GCONF_VALUE_STRING, (list), NULL)
83
 
 
84
 
extern GtkWidget *xkb_layout_preview_create_widget (GtkBuilder *
85
 
                                                    chooser_dialog);
86
 
 
87
 
extern void xkb_layout_preview_update (GtkBuilder * chooser_dialog);
88
 
 
89
 
extern void xkb_layout_preview_set_drawing_layout (GtkWidget * kbdraw,
90
 
                                                   const gchar * id);
91
 
 
92
 
extern gchar *xkb_layout_chooser_get_selected_id (GtkBuilder *
93
 
                                                  chooser_dialog);
94
 
 
95
 
extern void xkb_save_default_group (gint group_no);
96
 
 
97
 
extern gint xkb_get_default_group (void);
98
 
 
99
 
G_END_DECLS
100
 
#endif                          /* __GNOME_KEYBOARD_PROPERTY_XKB_H */