2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
6 * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #ifndef HILDON_DISABLE_DEPRECATED
27 #ifndef __HILDON_VOLUMEBAR_H__
28 #define __HILDON_VOLUMEBAR_H__
32 #include "hildon-helper.h"
36 #define HILDON_TYPE_VOLUMEBAR \
37 (hildon_volumebar_get_type())
39 #define HILDON_VOLUMEBAR(obj) \
40 (G_TYPE_CHECK_INSTANCE_CAST (obj,\
41 HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
43 #define HILDON_VOLUMEBAR_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_CAST ((klass),\
45 HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
47 #define HILDON_IS_VOLUMEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj,\
48 HILDON_TYPE_VOLUMEBAR))
50 #define HILDON_IS_VOLUMEBAR_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
53 #define HILDON_VOLUMEBAR_GET_CLASS(obj) \
54 ((HildonVolumebarClass *) G_OBJECT_GET_CLASS(obj))
56 typedef struct _HildonVolumebar HildonVolumebar;
58 typedef struct _HildonVolumebarClass HildonVolumebarClass;
60 struct _HildonVolumebar
65 struct _HildonVolumebarClass
67 GtkContainerClass parent_class;
70 void (*mute_toggled) (HildonVolumebar * self);
71 void (*level_changed) (HildonVolumebar * self);
75 hildon_volumebar_get_type (void);
78 hildon_volumebar_get_level (HildonVolumebar *self);
81 hildon_volumebar_set_level (HildonVolumebar *self,
85 hildon_volumebar_get_mute (HildonVolumebar *self);
88 hildon_volumebar_set_mute (HildonVolumebar *self,
92 hildon_volumebar_get_adjustment (HildonVolumebar *self);
94 #ifndef HILDON_DISABLE_DEPRECATED
96 hildon_volumebar_set_range_insensitive_message (HildonVolumebar *widget,
97 const gchar *message);
100 hildon_volumebar_set_range_insensitive_messagef (HildonVolumebar *widget,
107 #endif /* __HILDON_VOLUMEBAR_H__ */
109 #endif /* HILDON_DISABLE_DEPRECATED */