2 * simple-brightness-applet - simple statusarea applet that allows the user to select the brightness from a range of 1-5
4 * Copyright (c) 2009-2010 Faheem Pervez <trippin1@gmail.com>
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.
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.
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,
23 #ifndef __SIMPLE_BRIGHTNESS_APPLET_H__
24 #define __SIMPLE_BRIGHTNESS_APPLET_H__
27 #include <glib-object.h>
28 #include <libhildondesktop/libhildondesktop.h>
32 #define SIMPLE_TYPE_BRIGHTNESS_APPLET (simple_brightness_applet_get_type ())
34 #define SIMPLE_BRIGHTNESS_APPLET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
35 SIMPLE_TYPE_BRIGHTNESS_APPLET, SimpleBrightnessApplet))
37 #define SIMPLE_BRIGHTNESS_APPLET_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
38 SIMPLE_TYPE_BRIGHTNESS_APPLET, SimpleBrightnessAppletClass))
40 #define SIMPLE_IS_BRIGHTNESS_APPLET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
41 SIMPLE_TYPE_BRIGHTNESS_APPLET))
43 #define SIMPLE_IS_BRIGHTNESS_APPLET_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
44 SIMPLE_TYPE_BRIGHTNESS_APPLET))
46 #define SIMPLE_BRIGHTNESS_APPLET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47 SIMPLE_TYPE_BRIGHTNESS_APPLET, SimpleBrightnessAppletClass))
49 typedef struct _SimpleBrightnessApplet SimpleBrightnessApplet;
50 typedef struct _SimpleBrightnessAppletClass SimpleBrightnessAppletClass;
51 typedef struct _SimpleBrightnessAppletPrivate SimpleBrightnessAppletPrivate;
53 struct _SimpleBrightnessApplet
55 HDStatusMenuItem hitem;
57 SimpleBrightnessAppletPrivate *priv;
60 struct _SimpleBrightnessAppletClass
62 HDStatusMenuItemClass parent_class;
65 GType simple_brightness_applet_get_type (void);
69 #endif /* __SIMPLE_BRIGHTNESS_APPLET_H__ */