~ubuntu-branches/ubuntu/trusty/indicator-sound-gtk2/trusty-proposed

« back to all changes in this revision

Viewing changes to src/mute-menu-item.h

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-09-10 00:09:01 UTC
  • Revision ID: package-import@ubuntu.com-20120910000901-q6469svv5d3pmn0y
Tags: upstream-12.10.0.1
ImportĀ upstreamĀ versionĀ 12.10.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2010 Canonical Ltd.
 
3
 
 
4
Authors:
 
5
    Conor Curran <conor.curran@canonical.com>
 
6
 
 
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.
 
10
 
 
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.
 
15
 
 
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/>.
 
18
*/
 
19
 
 
20
#ifndef __MUTE_MENU_ITEM_H__
 
21
#define __MUTE_MENU_ITEM_H__
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
#include <libdbusmenu-glib/menuitem.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
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))
 
35
 
 
36
typedef struct _MuteMenuItem      MuteMenuItem;
 
37
typedef struct _MuteMenuItemClass MuteMenuItemClass;
 
38
 
 
39
struct _MuteMenuItemClass {
 
40
  GObjectClass parent_class;
 
41
};
 
42
 
 
43
struct _MuteMenuItem {
 
44
  GObject parent;
 
45
};
 
46
 
 
47
GType mute_menu_item_get_type (void);
 
48
 
 
49
MuteMenuItem* mute_menu_item_new ();
 
50
 
 
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);
 
54
 
 
55
DbusmenuMenuitem* mute_menu_item_get_button (MuteMenuItem* item);
 
56
 
 
57
G_END_DECLS
 
58
 
 
59
#endif
 
 
b'\\ No newline at end of file'