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

« back to all changes in this revision

Viewing changes to panels/keyboard/eggcellrendererkeys.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
/* gtkcellrendererkeybinding.h
 
2
 * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Library General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Library General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef __EGG_CELL_RENDERER_KEYS_H__
 
21
#define __EGG_CELL_RENDERER_KEYS_H__
 
22
 
 
23
#include <gtk/gtk.h>
 
24
#include "eggaccelerators.h"
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define EGG_TYPE_CELL_RENDERER_KEYS             (egg_cell_renderer_keys_get_type ())
 
29
#define EGG_CELL_RENDERER_KEYS(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeys))
 
30
#define EGG_CELL_RENDERER_KEYS_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeysClass))
 
31
#define EGG_IS_CELL_RENDERER_KEYS(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_CELL_RENDERER_KEYS))
 
32
#define EGG_IS_CELL_RENDERER_KEYS_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_CELL_RENDERER_KEYS))
 
33
#define EGG_CELL_RENDERER_KEYS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeysClass))
 
34
 
 
35
typedef struct _EggCellRendererKeys      EggCellRendererKeys;
 
36
typedef struct _EggCellRendererKeysClass EggCellRendererKeysClass;
 
37
 
 
38
 
 
39
typedef enum
 
40
{
 
41
  EGG_CELL_RENDERER_KEYS_MODE_GTK,
 
42
  EGG_CELL_RENDERER_KEYS_MODE_X
 
43
} EggCellRendererKeysMode;
 
44
 
 
45
struct _EggCellRendererKeys
 
46
{
 
47
  GtkCellRendererText parent;
 
48
  guint accel_key;
 
49
  guint keycode;
 
50
  EggVirtualModifierType accel_mask;
 
51
  GtkWidget *edit_widget;
 
52
  GtkWidget *grab_widget;
 
53
  guint edit_key;
 
54
  GtkWidget *sizing_label;
 
55
  EggCellRendererKeysMode accel_mode;
 
56
};
 
57
 
 
58
struct _EggCellRendererKeysClass
 
59
{
 
60
  GtkCellRendererTextClass parent_class;
 
61
 
 
62
  void (* accel_edited) (EggCellRendererKeys    *keys,
 
63
                         const char             *path_string,
 
64
                         guint                   keyval,
 
65
                         EggVirtualModifierType  mask,
 
66
                         guint                   hardware_keycode);
 
67
 
 
68
  void (* accel_cleared) (EggCellRendererKeys    *keys,
 
69
                          const char             *path_string);
 
70
};
 
71
 
 
72
GType            egg_cell_renderer_keys_get_type        (void);
 
73
GtkCellRenderer *egg_cell_renderer_keys_new             (void);
 
74
 
 
75
void             egg_cell_renderer_keys_set_accelerator (EggCellRendererKeys     *keys,
 
76
                                                         guint                    keyval,
 
77
                                                         guint                    keycode,
 
78
                                                         EggVirtualModifierType   mask);
 
79
void             egg_cell_renderer_keys_get_accelerator (EggCellRendererKeys     *keys,
 
80
                                                         guint                   *keyval,
 
81
                                                         EggVirtualModifierType  *mask);
 
82
void             egg_cell_renderer_keys_set_accel_mode  (EggCellRendererKeys     *keys,
 
83
                                                         EggCellRendererKeysMode  accel_mode);
 
84
 
 
85
 
 
86
G_END_DECLS
 
87
 
 
88
 
 
89
#endif /* __GTK_CELL_RENDERER_KEYS_H__ */