~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-client-gnome/src/shortcuts.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#ifndef SHORTCUTS_H_
32
32
#define SHORTCUTS_H_
33
33
 
34
 
typedef struct
35
 
{
36
 
  gchar *action;
37
 
  GdkModifierType mask;
38
 
  guint value;
39
 
  void
40
 
  (*callback) (void);
 
34
typedef struct {
 
35
    gchar *action;
 
36
    guint key;
 
37
    GdkModifierType mask;
 
38
    void
 
39
    (*callback) (void);
41
40
} Accelerator;
42
41
 
43
 
static void
44
 
grab_key (int key_code, GdkWindow *root);
45
 
 
46
 
static void
47
 
ungrab_key (int key_code, GdkWindow *root);
48
 
 
49
 
static GdkFilterReturn
50
 
filter_keys (GdkXEvent *xevent, GdkEvent *event, gpointer data);
51
 
 
52
 
static void
53
 
remove_bindings ();
54
 
 
55
 
static void
56
 
create_bindings ();
57
 
 
58
 
static void
59
 
pick_up_callback ();
60
 
 
61
 
static void
62
 
hang_up_callback ();
63
 
 
64
 
static void
65
 
toggle_pick_up_hang_up_callback ();
66
 
 
67
 
static void
68
 
toggle_hold_callback ();
69
 
 
70
 
static void
71
 
initialize_binding (const gchar* action, const guint code);
72
 
 
73
 
static void
74
 
initialize_shortcuts_keys ();
75
 
 
76
 
static void*
77
 
get_action_callback (const gchar* action);
78
 
 
79
 
static void
80
 
update_bindings_data (const guint index, const guint code);
81
 
 
82
 
/*
83
 
 * "Public" functions
84
 
 */
85
 
 
86
42
void
87
43
shortcuts_initialize_bindings ();
88
44
 
89
45
void
90
 
shortcuts_update_bindings (const guint index, const guint code);
 
46
shortcuts_update_bindings (guint index, guint key, GdkModifierType mask);
91
47
 
92
48
void
93
49
shortcuts_destroy_bindings ();