1 /* Gnome Music Player Client (GMPC)
2  * Copyright (C) 2004-2011 Qball Cow <qball@gmpclient.org>
3  * Borrowed from Lee Willis <lee@leewillis.co.uk> that
4  * Borrowed heavily from code by Jan Arne Petersen <jpetersen@uni-bonn.de>
5  * This projects' homepage is: http://gmpclient.org/
6 
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21 
22 #include <X11/Xlib.h>
23 #include <X11/XF86keysym.h>
24 #include <gdk/gdk.h>
25 #include <gdk/gdkx.h>
26 #include <stdio.h>
27 #include <gtk/gtktogglebutton.h>
28 #include "main.h"
29 
30 #ifndef __MM_KEYS_H
31 #define __MM_KEYS_H
32 
33 #define TYPE_MMKEYS            (mmkeys_get_type ())
34 #define MMKEYS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MMKEYS, MmKeys))
35 #define MMKEYS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MMKEYS, MmKeysClass))
36 #define IS_MMKEYS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MMKEYS))
37 #define IS_MMKEYS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MMKEYS))
38 #define MMKEYS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MMKEYS, MmKeysClass))
39 
40 typedef struct _MmKeys      MmKeys;
41 typedef struct _MmKeysClass MmKeysClass;
42 
43 struct _MmKeys
44 {
45 		GObject parent;
46 };
47 
48 struct _MmKeysClass
49 {
50 		GObjectClass parent_class;
51 };
52 
53 MmKeys *mmkeys_new      (void);
54 
55 void grab_key(int key, int keycode, unsigned int mask);
56 extern gmpcPlugin mmkeys_plug;
57 #endif /* __MM_KEYS_H */
58 
59 
60