~ubuntu-branches/ubuntu/precise/libgnomekbd/precise

« back to all changes in this revision

Viewing changes to libgnomekbd/gkbd-desktop-config.h

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-03-21 13:22:31 UTC
  • mfrom: (1.3.6 upstream) (3.2.13 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321132231-zoay06noilk1thky
Tags: 2.91.91-2
* debian/libgnomekbd-common.install:
  - Install /usr/share/GConf/gsettings and /usr/share/libgnomekbd/icons
  - Add libatk1.0-dev (>= 1.32.0-2~) build-dep to be sure we have .gir file

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <X11/Xlib.h>
24
24
#include <glib.h>
25
 
#include <gconf/gconf-client.h>
 
25
#include <gio/gio.h>
26
26
#include <libxklavier/xklavier.h>
27
27
 
28
 
extern const gchar GKBD_DESKTOP_CONFIG_DIR[];
 
28
#define GKBD_DESKTOP_SCHEMA "org.gnome.libgnomekbd.desktop"
 
29
 
29
30
extern const gchar GKBD_DESKTOP_CONFIG_KEY_DEFAULT_GROUP[];
30
31
extern const gchar GKBD_DESKTOP_CONFIG_KEY_GROUP_PER_WINDOW[];
31
32
extern const gchar GKBD_DESKTOP_CONFIG_KEY_HANDLE_INDICATORS[];
34
35
/*
35
36
 * General configuration
36
37
 */
37
 
typedef struct _GkbdDesktopConfig {
 
38
typedef struct _GkbdDesktopConfig GkbdDesktopConfig;
 
39
struct _GkbdDesktopConfig {
38
40
        gint default_group;
39
41
        gboolean group_per_app;
40
42
        gboolean handle_indicators;
42
44
        gboolean load_extra_items;
43
45
 
44
46
        /* private, transient */
45
 
        GConfClient *conf_client;
 
47
        GSettings *settings;
46
48
        int config_listener_id;
47
49
        XklEngine *engine;
48
 
} GkbdDesktopConfig;
 
50
};
49
51
 
50
52
/**
51
53
 * GkbdDesktopConfig functions
52
54
 */
53
55
extern void gkbd_desktop_config_init (GkbdDesktopConfig * config,
54
 
                                      GConfClient * conf_client,
55
56
                                      XklEngine * engine);
56
57
extern void gkbd_desktop_config_term (GkbdDesktopConfig * config);
57
58
 
58
 
extern void gkbd_desktop_config_load_from_gconf (GkbdDesktopConfig *
59
 
                                                 config);
 
59
extern void gkbd_desktop_config_load (GkbdDesktopConfig * config);
60
60
 
61
 
extern void gkbd_desktop_config_save_to_gconf (GkbdDesktopConfig * config);
 
61
extern void gkbd_desktop_config_save (GkbdDesktopConfig * config);
62
62
 
63
63
extern gboolean gkbd_desktop_config_activate (GkbdDesktopConfig * config);
64
64
 
84
84
extern void gkbd_desktop_config_restore_group (GkbdDesktopConfig * config);
85
85
 
86
86
extern void gkbd_desktop_config_start_listen (GkbdDesktopConfig * config,
87
 
                                              GConfClientNotifyFunc func,
 
87
                                              GCallback func,
88
88
                                              gpointer user_data);
89
89
 
90
90
extern void gkbd_desktop_config_stop_listen (GkbdDesktopConfig * config);