2
Copyright 2010 Canonical Ltd.
5
Conor Curran <conor.curran@canonical.com>
7
This program is free software: you can redistribute it and/or modify it
8
under the terms of the GNU General Public License version 3, as published
9
by the Free Software Foundation.
11
This program is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranties of
13
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
PURPOSE. See the GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License along
17
with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef __MUTE_MENU_ITEM_H__
21
#define __MUTE_MENU_ITEM_H__
24
#include <glib-object.h>
25
#include <libdbusmenu-glib/menuitem.h>
29
#define MUTE_MENU_ITEM_TYPE (mute_menu_item_get_type ())
30
#define MUTE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MUTE_MENU_ITEM_TYPE, MuteMenuItem))
31
#define MUTE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MUTE_MENU_ITEM_TYPE, MuteMenuItemClass))
32
#define IS_MUTE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MUTE_MENU_ITEM_TYPE))
33
#define IS_MUTE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MUTE_MENU_ITEM_TYPE))
34
#define MUTE_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MUTE_MENU_ITEM_TYPE, MuteMenuItemClass))
36
typedef struct _MuteMenuItem MuteMenuItem;
37
typedef struct _MuteMenuItemClass MuteMenuItemClass;
39
struct _MuteMenuItemClass {
40
GObjectClass parent_class;
43
struct _MuteMenuItem {
47
GType mute_menu_item_get_type (void);
49
MuteMenuItem* mute_menu_item_new ();
51
void mute_menu_item_update (MuteMenuItem* item, gboolean update);
52
void mute_menu_item_enable (MuteMenuItem* item, gboolean active);
53
gboolean mute_menu_item_is_muted (MuteMenuItem* item);
55
DbusmenuMenuitem* mute_menu_item_get_button (MuteMenuItem* item);
b'\\ No newline at end of file'