Fix rating menu.
[gmpc.git] / src / Tools / mm-keys.h
blob543e1bdfe6b6cdb3a1c552e8f5e270ee258a9276
1 /* Gnome Music Player Client (GMPC)
2 * Copyright (C) 2004-2012 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/
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.
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.
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.
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/gtk.h>
28 #include "main.h"
30 #ifndef __MM_KEYS_H
31 #define __MM_KEYS_H
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))
40 typedef struct _MmKeys MmKeys;
41 typedef struct _MmKeysClass MmKeysClass;
43 struct _MmKeys
45 GObject parent;
48 struct _MmKeysClass
50 GObjectClass parent_class;
53 MmKeys *mmkeys_new (void);
55 void grab_key(int key, int keycode, unsigned int mask);
56 extern gmpcPlugin mmkeys_plug;
57 #endif /* __MM_KEYS_H */