File: brightness-button.h

package info (click to toggle)
xfce4-power-manager 1.0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,000 kB
  • sloc: ansic: 12,642; sh: 11,381; makefile: 716; xml: 6
file content (57 lines) | stat: -rw-r--r-- 1,855 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * * Copyright (C) 2009-2011 Ali <aliov@xfce.org>
 *
 * Licensed under the GNU General Public License Version 2
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef __BRIGHTNESS_BUTTON_H
#define __BRIGHTNESS_BUTTON_H

#include <glib-object.h>
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-plugin.h>

G_BEGIN_DECLS

#define BRIGHTNESS_TYPE_BUTTON        (brightness_button_get_type () )
#define BRIGHTNESS_BUTTON(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), BRIGHTNESS_TYPE_BUTTON, BrightnessButton))
#define BRIGHTNESS_IS_BUTTON(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), BRIGHTNESS_TYPE_BUTTON))

typedef struct BrightnessButtonPrivate BrightnessButtonPrivate;

typedef struct
{
    GtkButton         		 parent;
    BrightnessButtonPrivate     *priv;
    
} BrightnessButton;

typedef struct
{
    GtkButtonClass 		 parent_class;
    
} BrightnessButtonClass;

GType        			 brightness_button_get_type        (void) G_GNUC_CONST;

GtkWidget       		*brightness_button_new             (XfcePanelPlugin *plugin);

void                             brightness_button_show            (BrightnessButton *button);

G_END_DECLS

#endif /* __BRIGHTNESS_BUTTON_H */