56ecd51bf73e8022e48d0a7e01ddbb077dede778
[hildon] / hildon-widgets / hildon-volumebar-private.h
1 /*
2  * This file is part of hildon-libs
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
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.
12  *
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.
17  *
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
21  * 02110-1301 USA
22  *
23  */
24 #ifndef __HILDON_VOLUMEBAR_PRIVATE__
25 #define __HILDON_VOLUMEBAR_PRIVATE__
26
27 #include <gtk/gtktogglebutton.h>
28 #include <hildon-widgets/hildon-volumebar-range.h>
29
30 G_BEGIN_DECLS
31 #define HILDON_VOLUMEBAR_GET_PRIVATE(obj) \
32         (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
33         HILDON_TYPE_VOLUMEBAR, HildonVolumebarPrivate));
34
35 typedef struct _HildonVolumebarPrivate HildonVolumebarPrivate;
36
37 struct _HildonVolumebarPrivate {
38   HildonVolumebarRange *volumebar;
39   GtkToggleButton      *tbutton;
40   gboolean              is_toolbar; /* is inside toolbar (for horizontal volumebar) */
41 };
42
43 void _hildon_volumebar_mute_toggled(HildonVolumebar * self);
44
45 G_END_DECLS
46 #endif /* __HILDON_VOLUMEBAR_PRIVATE__ */