~ubuntu-branches/ubuntu/wily/mate-settings-daemon/wily

« back to all changes in this revision

Viewing changes to .pc/0010_move_a11y_keybindings_to_media_keys.patch/plugins/media-keys/acme.h

  • Committer: Package Import Robot
  • Author(s): John Paul Adrian Glaubitz, Martin Wimpress, John Paul Adrian Glaubitz
  • Date: 2015-08-16 16:35:32 UTC
  • mfrom: (10.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20150816163532-34zcev57w1c1bbv6
Tags: 1.10.1-1
[ Martin Wimpress ]
* debian/rules:
  + Remove obsolete build options.

[ John Paul Adrian Glaubitz ]
* Fix minor typo in debian/control (missing hyphen).
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2001 Bastien Nocera <hadess@hadess.net>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
18
 
 * USA.
19
 
 */
20
 
 
21
 
#ifndef __ACME_H__
22
 
#define __ACME_H__
23
 
 
24
 
#include "msd-keygrab.h"
25
 
 
26
 
#define BINDING_SCHEMA "org.mate.SettingsDaemon.plugins.media-keys"
27
 
 
28
 
enum {
29
 
        TOUCHPAD_KEY,
30
 
        MUTE_KEY,
31
 
        VOLUME_DOWN_KEY,
32
 
        VOLUME_UP_KEY,
33
 
        POWER_KEY,
34
 
        EJECT_KEY,
35
 
        HOME_KEY,
36
 
        MEDIA_KEY,
37
 
        CALCULATOR_KEY,
38
 
        SEARCH_KEY,
39
 
        EMAIL_KEY,
40
 
        SCREENSAVER_KEY,
41
 
        HELP_KEY,
42
 
        WWW_KEY,
43
 
        PLAY_KEY,
44
 
        PAUSE_KEY,
45
 
        STOP_KEY,
46
 
        PREVIOUS_KEY,
47
 
        NEXT_KEY,
48
 
        HANDLED_KEYS
49
 
};
50
 
 
51
 
static struct {
52
 
        int key_type;
53
 
        const char *settings_key;
54
 
        Key *key;
55
 
} keys[HANDLED_KEYS] = {
56
 
        { TOUCHPAD_KEY, "touchpad", NULL },
57
 
        { MUTE_KEY, "volume-mute",NULL },
58
 
        { VOLUME_DOWN_KEY, "volume-down", NULL },
59
 
        { VOLUME_UP_KEY, "volume-up", NULL },
60
 
        { POWER_KEY, "power", NULL },
61
 
        { EJECT_KEY, "eject", NULL },
62
 
        { HOME_KEY, "home", NULL },
63
 
        { MEDIA_KEY, "media", NULL },
64
 
        { CALCULATOR_KEY, "calculator", NULL },
65
 
        { SEARCH_KEY, "search", NULL },
66
 
        { EMAIL_KEY, "email", NULL },
67
 
        { SCREENSAVER_KEY, "screensaver", NULL },
68
 
        { HELP_KEY, "help", NULL },
69
 
        { WWW_KEY, "www", NULL },
70
 
        { PLAY_KEY, "play", NULL },
71
 
        { PAUSE_KEY, "pause", NULL },
72
 
        { STOP_KEY, "stop", NULL },
73
 
        { PREVIOUS_KEY, "previous", NULL },
74
 
        { NEXT_KEY, "next", NULL },
75
 
};
76
 
 
77
 
#endif /* __ACME_H__ */