X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon-hvolumebar.h;h=08f51e1ac1dafbe350e90685716c4153e27a392d;hb=18690688d547892afa172e33eec9311c1bb5da2b;hp=1b13432dbb38cb79c4c2529f01a79cbec3e4a5b6;hpb=f6302d17784a0020efc9faef31b8d8c773b1ba44;p=hildon diff --git a/src/hildon-hvolumebar.h b/src/hildon-hvolumebar.h index 1b13432..08f51e1 100644 --- a/src/hildon-hvolumebar.h +++ b/src/hildon-hvolumebar.h @@ -1,5 +1,5 @@ /* - * This file is part of hildon-libs + * This file is a part of hildon * * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved. * @@ -8,7 +8,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of - * the License. + * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -22,37 +22,51 @@ * */ -#ifndef __HILDON_HVOLUMEBAR_H__ -#define __HILDON_HVOLUMEBAR_H__ +#ifndef __HILDON_HVOLUMEBAR_H__ +#define __HILDON_HVOLUMEBAR_H__ -#include +#include "hildon-volumebar.h" G_BEGIN_DECLS -#define HILDON_TYPE_HVOLUMEBAR ( hildon_hvolumebar_get_type() ) -#define HILDON_HVOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\ - HILDON_TYPE_HVOLUMEBAR, HildonHVolumebar)) -#define HILDON_HVOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass),\ - HILDON_TYPE_HVOLUMEBAR, HildonHVolumebarClass)) -#define HILDON_IS_HVOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\ - HILDON_TYPE_HVOLUMEBAR)) -#define HILDON_IS_HVOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass),\ - HILDON_TYPE_HVOLUMEBAR)) - -typedef struct _HildonHVolumebar HildonHVolumebar; -typedef struct _HildonHVolumebarClass HildonHVolumebarClass; - -struct _HildonHVolumebar { - /* This is our parent class */ - HildonVolumebar volumebar; +#define HILDON_TYPE_HVOLUMEBAR (hildon_hvolumebar_get_type()) + +#define HILDON_HVOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\ + HILDON_TYPE_HVOLUMEBAR, HildonHVolumebar)) + +#define HILDON_HVOLUMEBAR_CLASS(klass) \ + (GTK_CHECK_CLASS_CAST ((klass),\ + HILDON_TYPE_HVOLUMEBAR, HildonHVolumebarClass)) + +#define HILDON_IS_HVOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\ + HILDON_TYPE_HVOLUMEBAR)) + +#define HILDON_IS_HVOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass),\ + HILDON_TYPE_HVOLUMEBAR)) + +#define HILDON_HVOLUMEBAR_GET_CLASS(obj) \ + ((HildonHVolumebarClass *) G_OBJECT_GET_CLASS(obj)) + +typedef struct _HildonHVolumebar HildonHVolumebar; + +typedef struct _HildonHVolumebarClass HildonHVolumebarClass; + +struct _HildonHVolumebar +{ + HildonVolumebar parent; }; -struct _HildonHVolumebarClass { +struct _HildonHVolumebarClass +{ HildonVolumebarClass parent_class; }; -GType hildon_hvolumebar_get_type(void) G_GNUC_CONST; -GtkWidget *hildon_hvolumebar_new(void); +GType G_GNUC_CONST +hildon_hvolumebar_get_type (void); + +GtkWidget* +hildon_hvolumebar_new (void); G_END_DECLS -#endif /* __HILDON_HVOLUMEBAR_H__ */ + +#endif /* __HILDON_HVOLUMEBAR_H__ */