~noskcaj/ubuntu/saucy/xfce4-power-manager/1.2.0-2ubuntu1

« back to all changes in this revision

Viewing changes to src/xfpm-button-xf86.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-09 18:28:34 UTC
  • mfrom: (2.3.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101209182834-efb7dinmf9ssp3es
Tags: 1.0.1-0ubuntu1
Upload to natty (pkg-xfce svn r4665), no Ubuntu changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * * Copyright (C) 2008-2009 Ali <aliov@xfce.org>
3
 
 *
4
 
 * Licensed under the GNU General Public License Version 2
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef __XFPM_BUTTON_XF86_H
22
 
#define __XFPM_BUTTON_XF86_H
23
 
 
24
 
#include <glib-object.h>
25
 
 
26
 
#include "xfpm-enum-glib.h"
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
#define XFPM_TYPE_BUTTON_XF86   (xfpm_button_xf86_get_type () )
31
 
#define XFPM_BUTTON_XF86(o)     (G_TYPE_CHECK_INSTANCE_CAST((o), XFPM_TYPE_BUTTON_XF86, XfpmButtonXf86))
32
 
#define XFPM_IS_BUTTON_XF86(o)  (G_TYPE_CHECK_INSTANCE_TYPE((o), XFPM_TYPE_BUTTON_XF86))
33
 
 
34
 
typedef struct XfpmButtonXf86Private XfpmButtonXf86Private;
35
 
 
36
 
typedef struct
37
 
{
38
 
    GObject                     parent;
39
 
    XfpmButtonXf86Private      *priv;
40
 
    
41
 
} XfpmButtonXf86;
42
 
 
43
 
typedef struct
44
 
{
45
 
    GObjectClass                parent_class;
46
 
     
47
 
    void                        (*xf86_button_pressed)                 (XfpmButtonXf86 *button,
48
 
                                                                        XfpmButtonKey type);
49
 
    
50
 
} XfpmButtonXf86Class;
51
 
 
52
 
GType                           xfpm_button_xf86_get_type               (void) G_GNUC_CONST;
53
 
XfpmButtonXf86                 *xfpm_button_xf86_new                    (void);
54
 
 
55
 
guint8                          xfpm_button_xf86_get_mapped_buttons     (XfpmButtonXf86 *button) G_GNUC_PURE;
56
 
 
57
 
G_END_DECLS
58
 
 
59
 
#endif /* __XFPM_BUTTON_XF86_H */