/usr/include/libgnomekbd/gkbd-configuration.h is in libgnomekbd-dev 3.26.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | /*
* Copyright (C) 2010 Canonical Ltd.
* Copyright (C) 2010-2011 Sergey V. Udaltsov <svu@gnome.org>
*
* Authors: Jan Arne Petersen <jpetersen@openismus.com>
* Sergey V. Udaltsov <svu@gnome.org>
*
* 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 __GKBD_CONFIGURATION_H__
#define __GKBD_CONFIGURATION_H__
#include <glib-object.h>
#include <libxklavier/xklavier.h>
#include <libgnomekbd/gkbd-indicator-config.h>
G_BEGIN_DECLS typedef struct _GkbdConfiguration GkbdConfiguration;
typedef struct _GkbdConfigurationPrivate GkbdConfigurationPrivate;
typedef struct _GkbdConfigurationClass GkbdConfigurationClass;
#define GKBD_TYPE_CONFIGURATION (gkbd_configuration_get_type ())
#define GKBD_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GKBD_TYPE_CONFIGURATION, GkbdConfiguration))
#define GKBD_INDCATOR_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GKBD_TYPE_CONFIGURATION, GkbdConfigurationClass))
#define GKBD_IS_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GKBD_TYPE_CONFIGURATION))
#define GKBD_IS_CONFIGURATION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), GKBD_TYPE_CONFIGURATION))
#define GKBD_CONFIGURATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GKBD_TYPE_CONFIGURATION, GkbdConfigurationClass))
struct _GkbdConfiguration {
GObject parent;
GkbdConfigurationPrivate *priv;
};
struct _GkbdConfigurationClass {
GObjectClass parent_class;
};
extern GType gkbd_configuration_get_type (void);
extern GkbdConfiguration *gkbd_configuration_get (void);
extern XklEngine *gkbd_configuration_get_xkl_engine (GkbdConfiguration *
configuration);
extern gchar **gkbd_configuration_get_group_names (GkbdConfiguration *
configuration);
extern gchar **gkbd_configuration_get_short_group_names (GkbdConfiguration
* configuration);
extern gchar *gkbd_configuration_get_image_filename (GkbdConfiguration *
configuration,
guint group);
extern gchar *gkbd_configuration_get_current_tooltip (GkbdConfiguration *
configuration);
extern gboolean gkbd_configuration_if_flags_shown (GkbdConfiguration *
configuration);
extern gchar *gkbd_configuration_extract_layout_name (GkbdConfiguration *
configuration,
int group);
extern void gkbd_configuration_lock_next_group (GkbdConfiguration *
configuration);
extern void gkbd_configuration_lock_group (GkbdConfiguration *
configuration, guint group);
extern guint gkbd_configuration_get_current_group (GkbdConfiguration *
configuration);
extern gchar *gkbd_configuration_get_group_name (GkbdConfiguration *
configuration,
guint group);
extern void gkbd_configuration_start_listen (GkbdConfiguration *
configuration);
extern void gkbd_configuration_stop_listen (GkbdConfiguration *
configuration);
extern GkbdIndicatorConfig
* gkbd_configuration_get_indicator_config (GkbdConfiguration *
configuration);
extern GkbdKeyboardConfig
* gkbd_configuration_get_keyboard_config (GkbdConfiguration *
configuration);
extern GSList *gkbd_configuration_get_all_objects (GkbdConfiguration *
configuration);
extern gboolean gkbd_configuration_if_any_object_exists (GkbdConfiguration
* configuration);
extern void gkbd_configuration_append_object (GkbdConfiguration *
configuration,
GObject * obj);
extern void gkbd_configuration_remove_object (GkbdConfiguration *
configuration,
GObject * obj);
#define ForAllObjects(config) \
{ \
GSList* cur; \
for (cur = gkbd_configuration_get_all_objects (config); cur != NULL; cur = cur->next) { \
GObject* gki = (GObject*)cur->data;
#define NextObject() \
} \
}
extern GSList *gkbd_configuration_load_images (GkbdConfiguration *
configuration);
extern void gkbd_configuration_free_images (GkbdConfiguration *
configuration,
GSList * images);
extern gchar *gkbd_configuration_create_label_title (int group,
GHashTable **
ln2cnt_map,
gchar * layout_name);
extern gboolean gkbd_configuration_get_caps_lock_state (GkbdConfiguration *
configuration);
extern gboolean gkbd_configuration_get_num_lock_state (GkbdConfiguration *
configuration);
extern gboolean gkbd_configuration_get_scroll_lock_state (GkbdConfiguration
* configuration);
G_END_DECLS
#endif
|